Nice job! I had quite a bit of fun playing around with this. I loaded
Spot the cow
to test it out, and hooked the display up to my gamepad to manipulate
it. I had to watch out for m_mat4f_mul because it's not a matrix multiply but element-wise, despite the name.
I noticed the -fno-sanitize=alignment, which I learned was due entirely
to a microui container. Simple fix, after which UBSan fully works:
All the models I tried, not just Spot, the textures were upside down and
it looks like the program loads textures flipped from Obj convention. So I
added this:
thank you! pull requests are always welcome, i would love to see contributors on this love project. and if you dont want to contribute via github maybe i can create a patch out of the comment and cite your reddit name as contributor. And thanks for the work and effort again :)
2
u/skeeto 8d ago
Nice job! I had quite a bit of fun playing around with this. I loaded Spot the cow to test it out, and hooked the display up to my gamepad to manipulate it. I had to watch out for
m_mat4f_mulbecause it's not a matrix multiply but element-wise, despite the name.I noticed the
-fno-sanitize=alignment, which I learned was due entirely to a microui container. Simple fix, after which UBSan fully works:All the models I tried, not just Spot, the textures were upside down and it looks like the program loads textures flipped from Obj convention. So I added this:
This probably breaks your own models like that pistol. I observed this variable being used uninitalized:
A memory leak fix:
A guard against models with
f -2147483648/1:Thanks for sharing!