Randy Stiles (stiles++at++aic.lockheed.com)
Mon, 12 Aug 1996 09:21:32 -0700
You have to set up a traverser function that traverses the graph, and
calls its callback whenever it encounters geosets. I went through this.
> 2. Calculating the bounding sphere. Several problems with this method, the
> worst being that for some reason, the radius of the bounding sphere is MUCH
> larger than the object itself (the object is a plane (an F15) which is around
> 20 meters in length, but the bounding sphere I am getting has a radius of 501
> meters). Something isn't working here!
My experience is that if you ask Performer to calculate the bounding
sphere, it is pretty accurate. I think thats what they use in culling
tests for the frustum, so they would make that accurate/bug-free first
in order to get correct culling.
> Does anyone know of any other ways to do what I have in mind? Ideally, I'd
> like one bounding box around the entire plane, but if that isn't possible, a
> bounding sphere of the correct size would be fine.
--
// Randy Stiles mailto:stiles++at++aic.lockheed.com Orgn H142 Bldg 255
// Lockheed Martin Advanced Technology Center 3251 Hanover Street
// office: 415.354.5256 fax: 415.354.5235 Palo Alto, CA 94304-1192
// http://vet.parl.com/~vet/people/stiles/
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:20 PDT