Horde3D

Next-Generation Graphics Engine
It is currently 24.06.2024, 14:12

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 03.02.2009, 20:16 
Offline

Joined: 20.12.2007, 00:18
Posts: 23
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!


Top
 Profile  
Reply with quote  
PostPosted: 03.02.2009, 21:27 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
The bounding box is only calculated for the vertices between _vertRStart and _vertREnd so it shouldn't be the whole model.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group