Open andrewmcwatters opened 2 years ago
Hey, you ever managed to resolve this?
@PetriKiviniemi I think I just need to update the bindings, actually. I can try to schedule this for this evening. This just requires an update to https://github.com/Planimeter/lassimp.
Hmm sorry I got the threads confused. I am struggling with original assimp on my own custom game-engine. I have the same issue, of where 4 chars are being cut out, even with latest assimp. Was thinking of doing some patching to the assimp library itself, but is there some better way?
Ah I see, you're using lwjgl and it is suffering from the same issue. You may be better off not patching assimp, and writing your own utility function to expand the filenames expected instead.
I'm surprised that this would still be occurring with the latest version of assimp.
@PetriKiviniemi It looks like it should have been fixed. See https://github.com/assimp/assimp/issues/3264. The latest version is now 5.4.0. I assume this was addressed quite some time ago, but I haven't checked in the latest version since about 6 years ago, back when 4.1.0 had this issue.
Time flies! Let me know if I can help you, even though this isn't related to Planimeter Game Framework!
Describe the bug
getMaterialTexture
inmodel.lua:ln:105
fails to build correct filenames to material textures. This is caused by outdated assimp bindings causing the first 4 characters of filenames to be missing.To Reproduce Steps to reproduce the behavior:
./lgf
Expected behavior Running
./lgf
should not produce crashes.getMaterialTexture
should provide correct filenames.Additional context Stack traceback:
Filenames created:
Filenames expected:
See also https://github.com/LWJGL/lwjgl3/issues/516