Hello Sanat,
However, both the spheres (1 and 2) have the same centre coordinates. When I
try the same thing using spheres that are bounds for the top-most PATNodes, I
again get the same result (i.e. centre coordinates are the same).
I find this confusing as both the nodes have different positions. Is this a
sensible approach to take though ?
getBound() returns the local bounding sphere. You need to transform it
by the matrices (transforms) from the root to each of your models
respectively, then you'll get the world-space bounding sphere for each
model.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org