Hi, I make a little Up of this topic for the problem : If I get the radius of a bounding sphere on a group, all is good. If I do it on a PAT, the BS radius is very higher. Of course the pat get children, so it is normal that the radius if 4 times more higher. But, the big difference is that the BS of the PAT seems to be in *world scale coordinates. * I need to divide it by the PAT's scale to have a good radius...
It seems very uncertain, so how can I get the BS radius, for a PAT or a node ? (these nodes are scaled in real time, so the BS radius have to be computed depending on it) Thanks a lot, Regards, Vincent. 2008/10/30 Vincent Bourdier <[EMAIL PROTECTED]> > Thanks Grodon. > > :-) > > 2008/10/30 Tomlinson, Gordon <[EMAIL PROTECTED]> > >> Hi >> >> Get bounds is the local coordinates of the node. >> >> So yes any scale in the tree above the node will need to be factored in if >> you matrices that apply a scale above the node >> >> >> *Gordon* >> >> __________________________________________________________ >> *Gordon Tomlinson* >> >> *Product Manager 3D >> **Email * : gtomlinson @ overwatch.textron.com >> __________________________________________________________ >> *(C): (+1) 571-265-2612 >> (W)**: (+1) 703-437-7651* >> >> "Self defence is not a function of learning tricks >> but is a function of how quickly and intensely one >> can arouse one's instinct for survival" >> - *Master Tambo Tetsura* >> >> >> >> ------------------------------ >> *From:* [EMAIL PROTECTED] [mailto: >> [EMAIL PROTECTED] *On Behalf Of *Vincent >> Bourdier >> *Sent:* Thursday, October 30, 2008 5:21 AM >> *To:* osg >> *Subject:* [osg-users] BS radius : world coordinate or local coordinate ? >> >> Hi, >> >> Just a simple question for you : >> >> When I get the Radius of a BS of a node, do I get the radius in World >> scale unit ? or is the raduis depending on the scale of the node ? >> >> for the moment I use : *node->getBound().radius() * >> node->getWorldMatrices()[0].getScale()[0] >> *But I am not sure of the result.* >> * >> >> Thanks a lot. >> >> Regards, >> >> Vincent. >> >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org