const SbViewVolume & viewVol =
SoViewVolumeElement::get(action->getState());
const SbMatrix & viewMat =
SoViewingMatrixElement::get(action->getState());
The separator reports that the bounding box cache (used for
render culling) is being invalidated. If I comment out these
lines of code, it's fine.
Why?
The ViewingMatrix and ViewVolume change whenever the camera moves, so if
your GetBoundingBox method relies on them, then the bbox cache SHOULD be
invalidated.
Does the bbox cache get invalidated if you don't move the camera (or resize
the window, which also changes the ViewVolume), but instead just have a
fixed camera with an animated object NOT underneath that Separator?
|