A complete 3-D game development suite written in Java.
BSD 3-Clause "New" or "Revised" License
3.8k
stars
1.12k
forks
source link
Invalid-matrix4f-for-worldviewprojectionmatrix assertion is hard to diagose #2275
Closed
richardTingle closed 4 months ago
As seen in https://hub.jmonkeyengine.org/t/solved-error-invalid-matrix4f-for-worldviewprojectionmatrix/47680 and https://hub.jmonkeyengine.org/t/jmonkeyengine-v3-7-0-beta1-release/47653/12 the new assertion in GLRenderer catches incorrect setting of an objects position to infinity or NaN. However the assertion doesn't give much of a clue where the mistake was made. Just that it has.
I'm proposing adding some assertions to the Transform class in order to catch these mistakes "when they go in".