-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError: Invalid Matrix4f value in GLRenderer.updateUniform() #2209
Comments
The bug was absent at f33d4a8 (17 August) but present at 7dfffb5 (19 August). |
Well, the assertion is working as expected here. If you disable assertions the engine will work, it is not a breaking bug, but we should figure out where these NaNs come from in the shadow renderer |
I suspect it might be related to this #2112 |
So, i've quickly debugged it, basically having an empty scene or a scene where caster and receiver are at the same position, will lead to the distance from caster-receiver being 0 causing a divide by zero in ShadowUtils causing the value to become infinite that will result in NaN values down stream. This PR should fix it #2210 . |
Nice work, @riccardobl, and much appreciated! |
I began testing JMonkeyEngine 3.7.0-alpha1 and soon encountered the following crash while rendering a scene with directional-light shadows:
The following test app crashes immediately when run with assertions enabled:
I plan to perform a bisection search for the commit that introduced this bug.
The text was updated successfully, but these errors were encountered: