Bounding volumes

New Message Reply Date view Thread view Subject view Author view

greg++at++ist.ucf.edu
Wed, 18 Dec 1996 15:26:52 -0500


Fellow pfUsers,

I have a geometry heirarchy like so:

             pfDCS
|
             pfGroup
|
             pfSequence
             / | \
            / | \
           / | \
    pfGeode pfGeode pfGeode
| | |
    pfGSet pfGSet pfGSet

The pfDCS moves about quite a bit in the simulation and its bounding
volume updates just fine. The bounding volume for the geometry below
it does not update as the DCS moves, though. But, the bounding volume
does change as the geometry cycles through the sequence.

I tried forcing the volumes to update:

            [pfGroup]->setBound( NULL, PFBOUND_DYNAMIC );

When that didn't work I went down a level further to force the gsets
to update:

           geode = (pfGeode *)[pfGroup]->getChild( i );
           gSet = geode->getGSet( 0 );
           gSet->setBound( NULL, PFBOUND_DYNAMIC );

How can I make the bounding volumes of the children reflect the new position
of the parent DCS? Do I have to grab the matrix from the DCS and apply it
with the bounding sphere of the geometry every frame?

Thanks in advance.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Greg Wiatroski
Army Research Institute Virtual Environment Testbed
Visual Systems Lab
Institute for Simulation and Training
University of Central Florida
http://www.vsl.ist.ucf.edu/~greg
greg++at++vsl.ist.ucf.edu
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:11 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.