septag / rizz

Small C game development framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors with running examples on a fresh clone/build

alighazi opened this issue · comments

commented

DrawSprite
seems like there are some problems with loading the resources:

$ ./rizz --run ./lib03-drawsprite.so 
version: 0.4-17-gf9b8182
(init) vfs
(init) temp memory: 8x5120 kb
(init) jobs: threads=7, max_fibers=64, stack_size=1024kb
(init) asset system: hot-loading=1
(init) profiler (cpu): port=17815
(init) graphics: OpenGL 3.3
(init) coroutines: max_fibers=64, stack_size=2048kb
(init) http client
vfs: mounted '/cache' on '/d/code/game/rizz/rizz/bin/.cache'
(init) plugin: imgui (libimgui.so) - dear-imgui plugin - v1.77.0
(init) plugin: 2dtools (lib2dtools.so) - 2dtools plugin - v1.0.0
vfs: mounted '/assets' on '/d/code/game/rizz/rizz/examples/assets'
(init) plugin: drawsprite (lib03-drawsprite.so) -  - v0.0.0
ERROR: sg_image_desc.width must be > 0
ERROR: sg_image_desc.height must be > 0
ERROR: ^^^^  VALIDATION FAILED, TERMINATING ^^^^
rizz: /d/code/game/rizz/rizz/src/rizz/../../3rdparty/sokol/sokol_gfx.h:12819: _sg_validate_end: Assertion `0' failed.

NBody
Seems like is not built by default ?

Draw3d

$ ./rizz --run ./lib08-draw3d.so 
version: 0.4-17-gf9b8182
(init) vfs
(init) temp memory: 8x5120 kb
(init) jobs: threads=7, max_fibers=64, stack_size=1024kb
(init) asset system: hot-loading=1
(init) profiler (cpu): port=17815
(init) graphics: OpenGL 3.3
(init) coroutines: max_fibers=64, stack_size=2048kb
(init) http client
vfs: mounted '/cache' on '/d/code/game/rizz/rizz/bin/.cache'
(init) plugin: imgui (libimgui.so) - dear-imgui plugin - v1.77.0
ERROR: error: vertex shader output `f_color' specifies flat interpolation qualifier, but fragment shader input specifies no interpolation qualifier

ERROR: sg_pipeline_desc.shader missing or invalid
ERROR: ^^^^  VALIDATION FAILED, TERMINATING ^^^^
rizz: /d/code/game/rizz/rizz/src/rizz/../../3rdparty/sokol/sokol_gfx.h:12819: _sg_validate_end: Assertion `0' failed.
ERROR: plugin init failed: ./lib3dtools.so
ERROR: initializing plugins failed

Btw, I couldn't see the imgui windows in any of the examples (unlike the screenshots)

Thanks !

DrawSprite didn't showed any errors for me. could you debug it yourself and give me a callstack or more details ? (or just submit a PR)
NBody isn't available on linux yet. because I added compute-shader support for D3d11 backend only, so OpenGL/metal compute-shader support is currently lacking.
Draw3d is fixed with the latest commit

btw, what linux distro are you using ?

commented

Thank you for the response. I'm using latest version of Kubuntu

DrawSprite didn't showed any errors for me. could you debug it yourself and give me a callstack or more details ? (or just submit a PR)

will try to fix and send a PR 👍

Draw3d is fixed with the latest commit

Yes I saw it thanks 👍