Hello,
I've written a C++ library that reads in this 3d model file (collada DAE). uptil now, I would output a list of triangles and handle each of them at rendering stage.
But now, I need to attach some Bounding sphere information with the imported model. I need some advice on how should I organize this in code. Here are some specs of the 3D file format: - 3D model is represented as a Tree consisting of nodes - each node can contain other nodes, geometry information, transformations etc
My requirements: - a bounding sphere associated with each node, thereby yielding a tree of bounding sphere hierarchy for the model itself. - actual vertex information
So, how should I ouput this ? Should I just output the triangles as it is and a tree of bounding spheres ? Or should I output the Geometry hierarchy as well ?
What would be the recommended way to deal with this situation?
Thanks