Ernie Smethurst wrote:
Code:
PositionAttitudeTransform *rotate_planetFive = new PositionAttitudeTransform;
rotate_planetFive->addChild( geode_planetFive );
rotate_planetFive->setUpdateCallback( new
AnimationPathCallback(osg::Vec3(0,0,0), osg::Z_AXIS, inDegrees(45.0f)) ); //ROTATE
AROUND THE SU
Thank you all for your replies, Much appreciated.
I understand about how 3D graphics works in regards to coordinate systems and
such and i understand how I want the scene to act and work, its just getting
the code to actually make this happen. Going about applying the two transforms
to my spher
Sent: Monday, February 15, 2010 6:26 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Two rotations on an object?
R Fritz wrote:
> 1. Put your sun at the origin of world co-ordinates.
> 2. Put the planet at the origin. Make its axis of rotation the z axis.
> 3. Use a rotate transform to rot
R Fritz wrote:
1. Put your sun at the origin of world co-ordinates.
2. Put the planet at the origin. Make its axis of rotation the z axis.
3. Use a rotate transform to rotate it around its axis. (You've got this part.)
4. Translate the planet along the x axis, to its orbital radius.
5. Use a rota
1. Put your sun at the origin of world co-ordinates.
2. Put the planet at the origin. Make its axis of rotation the z axis.
3. Use a rotate transform to rotate it around its axis. (You've got this part.)
4. Translate the planet along the x axis, to its orbital radius.
5. Use a rotation around the
Thanks for pointing me toward the PositonAttidudeTransform class.
Below is what im trying:
Code:
MatrixTransform *rotate_planetFive = new MatrixTransform;
rotate_planetFive->addChild( geode_planetFive );
rotate_planetFive->setUpdateCallback( new
AnimationPathCallback(osg::Vec3(2.0f, 0.0f,
Hi,
ups... ;) I have corrected it.
Thank you!
Cheers,
Torben
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24185#24185
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.op
Ernie Smethurst wrote:
a chain of PAT Notes
I'm not really sure what PAT notes are, I've checked the OSG quick start guide
and cant see anything regarding PAT Notes.
Thanks for any input.
PAT = PositionAttitudeTransform
Also I think he meant "nodes", not "notes" :-)
--"J"
> a chain of PAT Notes
I'm not really sure what PAT notes are, I've checked the OSG quick start guide
and cant see anything regarding PAT Notes.
Thanks for any input.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24182#24182
___
Hi,
you could to it as a chain of PAT Notes
1. rotate to the desired angle of the planet around sun
2. translate the planet to add you desired radius
3. Rotate the plane to rotate it around it own axis.
Cheers,
Torben
--
Read this topic online here:
http://forum.openscenegraph.o
So i am learning to use OSG and am currently learning the basics and am
currently creating little scenes to help me understand how it all works and
such.
I am trying to create a scene of a planetary system, using textures, lighting
and primitives and am currently stuck with a problem that I can
11 matches
Mail list logo