You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added checks for the data passed to bufferData and bufferSubData to the webgl helper I'm working on. If the data is a Float32Array then I check for NaN.
The NaN values are produces for the last two very large text geometries that have a scale of 1.135e21 and 9.46e23. BufferGeometry.computeVertexNormals() is not able to compute proper normal data and thus produces unusable values.
A simple fix is to remove the last two labels since they are not rendered correctly anyway. I don't think there is a sensible way to fix this in computeVertexNormals().
Description of the problem
This might not be a bug just passing it on.
I added checks for the data passed to
bufferData
andbufferSubData
to the webgl helper I'm working on. If the data is aFloat32Array
then I check for NaN.It found some NaNs are being passed for the font geometry in https://threejs.org/examples/webgl_camera_logarithmicdepthbuffer.html.
Three.js version
Browser
OS
The text was updated successfully, but these errors were encountered: