Hi Mark,

The easist way would be to just on the culling
(Node::setCullingActive(false)) for that toplevel node (with the external
references) so all its children are alway traversed.  Alternatively you
could compute the bounding sphere yourself by using a custom
Node::ComputeBoundingSphereCallback.

On 5/10/07, Mark Hurry <[EMAIL PROTECTED]> wrote:

 Hi,



I'm trying to work out the best way to get a correct bounding box for a
complex model (terrain actually), not one based on a bounding sphere. My
model (openFlight) contains external references to other files and multiple
references to the same external files with transformation matrices. I have
tried walking the scenegraph nodes until I find a geode and then I expand my
bounding box with the results from the geode's bounding box.



I am not getting the results I would expect. Do I need to maintain the
transform matrices and apply them to the geode's bounding box before I
expand my resultant bounding box? Or is there an easier way?



Cheers



Mark



[EMAIL PROTECTED]

Tel   +61 (0)89335 1239

Mob +61 (0)405 095 104



No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.5/793 - Release Date: 07-May-07
2:55 PM

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to