I was having an issue in my app which led me to poking around with the bounding boxes of the various nodes in Horde, and I came across something which I don't fully understand.
The MeshNode (in onPreUpdate) calculates its bounding box as the bounding box of all the vertices in its parent model. I.e. it iterates through all the vertices in the geometry resource, rather than just its own batch of vertices. Does this not mean that all meshes in a given model have the same bounding box (that of the model and not the mesh itself), which means any mesh culling isn't actually working (and when the model culling is done using the union AABB - this is in actual fact just making a union of a group of boxes that are identical?)
Could anyone clarify this for me?
Thanks!
|