Mark Hurry
2007-05-10 07:34:14 UTC
Hi,
Im 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 geodes bounding box.
I am not getting the results I would expect. Do I need to maintain the
transform matrices and apply them to the geodes bounding box before I
expand my resultant bounding box? Or is there an easier way?
Cheers
Mark
HYPERLINK "mailto:mark-y8BOj97i/***@public.gmane.org"mark-y8BOj97i/***@public.gmane.org
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
Im 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 geodes bounding box.
I am not getting the results I would expect. Do I need to maintain the
transform matrices and apply them to the geodes bounding box before I
expand my resultant bounding box? Or is there an easier way?
Cheers
Mark
HYPERLINK "mailto:mark-y8BOj97i/***@public.gmane.org"mark-y8BOj97i/***@public.gmane.org
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