I have an interesting problem. I need to set the bounds of a
BranchGroup that I've loaded via ObjectFile to the bounds already used
by the BranchGroup it's being loaded into. For this purpose, I'm
using a custom Map class that extends BranchGroup. For some reason,
the bounds do not change. I looked into what was happening, and it
turns out that my Map bounds that are retrieved through getBounds()
are always a BoundingSphere with center (0, 0, 0) and radius -1, even
after I have set them to something more useful. It looked to me like
ALLOW_BOUNDS_READ and ALLOW_BOUNDS_WRITE hadn't been set, but this
behavior persisted even after I set them within the Map constructor.
Revelations, anyone?


|