I’m using three.js to load and display models that are uploaded by the user. I’m storing the geometry in a Redux store by using BufferGeometry.toJSON(). I verified that the models in the store have valid vertices and normals, but when I get them from the store in order to render them. The position and normal attributes are full of NaN values.
I know storing the models in Redux isn’t ideal, but this is for kinda a niche application where I think it’s the best option. I’ve also tried storing a plain BufferGeometry that I created from BoxGeometry, still doesn’t work. I’ve been trying to fix this for over a day now, so any help is appreciated.