Angus Dorbie (dorbie++at++sgi.com)
Thu, 05 Nov 1998 17:37:30 -0800
There are two distinct problems, first, your bounding box musn't change
after you set it, second, any animated children must either not cull or
have their bounds updated with the animation.
When you set bounds you could choose STATIC, not DYNAMIC behaviour,
unless you are animating stuff like DCS nodes below.
For the node below that you could turn off culling traversal by
setting a trivial accept cull result in the pre cull callback.
See the cullResult method.
pfNode <<< STATIC bound sphere
|
pfNode <<< trivial accept cull callback
|
pfEverythingElse
You can force a node to compute it's bounds by calling setBounds
with a NULL pfSphere. The trick is to ensure it has a chance
at the right answer. One simple solution to your whole problem is
to keep all bounds DYNAMIC in the scene graph and after you animate
the geoset call the geoset setBound method with a NULL box after
the update. This will recompute the bounds and cause the whole
tree to be updated. Probably not your fastest option.
Cheers,Angus.
-- "Only the mediocre are always at their best." -- Jean GiraudouxFor advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/
This archive was generated by hypermail 2.0b2 on Thu Nov 05 1998 - 17:37:35 PST