From: christopher.g.dorosky++at++lmco.com
Date: 06/05/2000 11:48:21
Hello,
I have a geode that I need to add to the scene graph. I want to calculate
the bounding sphere ahead of time so that I don't get a hit in pfSync (it is
being added from an asynchronous process).
I tried
geode->setBound(NULL, PFBOUND_STATIC);
but this doesnt work. The object gets randomly culled out.
geode->setBound(NULL, PFBOUND_DYNAMIC);
works fine.
The bounds are done after all the geosets are attached.
When is the sphere calculated in this case? Immediately, or at pfSync?
I also tried
pfSphere *bs = new pfSphere;
pfBox *bx = new pfBox;
pfuTravCalcBBox(geode, bx);
bs->around(&bx);
geode->setBound(bs, PFBOUND_STATIC);
but that doesn't work either, unless it is set to dynamic.
So here are the question:
Does setting the sphere to NULL and STATIC do anything different than bs and
STATIC?
How about the dynamic case?
Why would the static case not work at all?
Thanks lots in advance,
Chris
Christopher Dorosky
Lead Electronic Systems Engineer - Real Time Simulation
Lockheed Martin Missiles and Fire Control - Dallas
christopher.g.dorosky++at++lmco.com
972-603-2349
This archive was generated by hypermail 2b29 : Mon Jun 05 2000 - 11:48:52 PDT