Tech: RenderAtom, RenderAtomInfo, ...
I'm currently fighting a weird bug inside RenderAtom that throws a NullPointerException (L:288) because of localToVworld becoming null.
That bug comes under weird conditions, i am actually not sure where it actually comes from. So, i'm trying to grasp the inner concepts of implementation, as they are not documented (or at least, i did not find that documentation ) and debug myself. The actual conditions are as follows:
i have an universe with two lights and a shape. That shape sometimes sees its geometry swapped to an other (IndexedTriangleFanArray to Text3D) and swapped back. Unless IndexedTriangleFanArray has normals, everything is fine. Once i add them, >beng< ... The error seems very unrelated to how i managed to make it come out.
As far as i understood, rendering takes places as a list of RenderAtom that represent a Shape and its geometries to be rendered. Is that right, even if too simplistic?