JOML-CI / JOML

A Java math library for OpenGL rendering calculations
MIT License
726 stars 104 forks source link

Any reason for differences between LWJGL 3.2.3 and 3.3.0 #298

Closed TrevorCow closed 3 years ago

TrevorCow commented 3 years ago

I am currently developing a game in LWJGL using JOML as a math library. Recently I wanted to incorporate support for m1 and other arm chips and needed to upgrade to LWJGL 3.3.0. Upon updating my application no longer rendered anything but threw no error and I have tracked it down to the camera matrices having weird and undefined numbers(0 and NaN). Rolling back to LWJGL 3.2.3 makes everything work again and if I force the float buffer to work (copied values from the working version) it renders. I'm not changing the JOML version at all and don't know why this would be the case but my camera class is almost all JOML. Does anyone have any advice or knowledge on why this is happening? Thank you.

TrevorCow commented 3 years ago

I figured it out, LWJGL 3.3.0 has some differences in when it defines its window size making the viewport sizes set to 0 causing 0's and NaNs.