Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-06 Thread Robert Osfield
Hi James, The osg::PositionAttitudeTransform has a PivotPoint member that defaults to 0,0,0 (in the local coords of the subgraph) which you can set to anywhere on your object. The subgraph is then scaled/rotated about this PivotPoint before being placed as is final Position. See PositionAttitude

Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-04 Thread Jean-Sébastien Guay
Hello James, Thanks to all... 3 days ago I started looking into OSG to solve my latest computing problem. After looking the examples and getting a few answers from this e-mail service, I want to thank all who are responsible for this and for helping me. It's great to know you were able to

Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-04 Thread Jean-Sébastien Guay
Hello James, I suffer the curse of wanting to be lazy. Hehe, I understand all too well. :-) J-S -- __ Jean-Sebastien Guay[EMAIL PROTECTED] http://www.cm-labs.com/ http://whitestar02.

Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-04 Thread James Moliere
www.gordontomlinson.com __ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, October 04, 2008 4:15 PM To: OpenSceneGraph Users Subject: Re: [osg-users] rotation axis at beginning

Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-04 Thread Gordon Tomlinson
:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, October 04, 2008 4:15 PM To: OpenSceneGraph Users Subject: Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object Jean-Sebastien, I suffer the curse of wanting to be lazy. Thanks! James > Hello Ja

Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-04 Thread jmoliere
Jean-Sebastien, I suffer the curse of wanting to be lazy. Thanks! James > Hello James, > >> I placed 2 cylinder objects in a scene and rotated 1 of the 2 objects 90 >> degrees from the other (using radians). The 2nd object was rotated >> about the barycenter instead of the beginning position of

Re: [osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-04 Thread Jean-Sébastien Guay
Hello James, I placed 2 cylinder objects in a scene and rotated 1 of the 2 objects 90 degrees from the other (using radians). The 2nd object was rotated about the barycenter instead of the beginning position of the object. Is there a global variable I can set to force rotations about an end

[osg-users] rotation axis at beginning of object instead of the barycenter of object

2008-10-04 Thread James Moliere
Hello, I placed 2 cylinder objects in a scene and rotated 1 of the 2 objects 90 degrees from the other (using radians). The 2nd object was rotated about the barycenter instead of the beginning position of the object. Is there a global variable I can set to force rotations about an end of an