Horde3D
http://horde3d.org/forums/

MeshNode bounding box question
http://horde3d.org/forums/viewtopic.php?f=2&t=638
Page 1 of 1

Author:  Manny [ 03.02.2009, 20:16 ]
Post subject:  MeshNode bounding box question

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!

Author:  Volker [ 03.02.2009, 21:27 ]
Post subject:  Re: MeshNode bounding box question

The bounding box is only calculated for the vertices between _vertRStart and _vertREnd so it shouldn't be the whole model.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/