models.c and cheatSheet #5302
SourceOfDeath
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use Raylib 4.5 and try to add resource: *.vox model made myself in MagicaVoxel 0.99.7.2. Off course, this resource at runtime cause error. I try to open chr_knight.vox in MagicaVoxel 0.99.7.2 and reexport them in file with other name:
INFO: FILEIO: [chr_knight_new3.vox] File loaded successfully
WARNING: MODEL: [chr_knight_new3.vox] Failed to load VOX data
WARNING: MESH: [chr_knight_new3.vox] Failed to load mesh data, default to cube mesh
INFO: VAO: [ID 2] Mesh uploaded successfully to VRAM (GPU)
WARNING: MATERIAL: [chr_knight_new3.vox] Failed to load material data, default to white material
Ready!
INFO: VAO: [ID 3] Mesh uploaded successfully to VRAM (GPU)
INFO: TEXTURE: [ID 3] Texture loaded successfully (2x2 | R8G8B8A8 | 1 mipmaps)
I try to open chr_knight.vox from raylib examples with my code - it works! But chr_knight.vox from MagicaVoxel 0.99.7.2 bundle - isn't.
I download older MagicaVoxel 0.99.6.4, reexport my model with it - and my model successfully loaded and displayed!!!
To avoid all of this troubles just write comments to functions in models.c (and header!) and comment to LoadModel() in CheatSheet with software name and versions to create models.
Beta Was this translation helpful? Give feedback.
All reactions