[osg-users] Rotation of a node starts clockwise and ends counter-clockwise.
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Thu Nov 17 04:37:19 PST 2016
Hi Rambabu,
> Hi,Iam not asking about model rotation.Iam asking about how to rotate the nodes in a model.Like in cessna left and right fans rotation.
In this case, again: think about the perception of your questions before
shooting them out.
Depending on the model and its structure you have 3 options:
1.) The model has osgSim::DOFTransform/osg::Transform-based-nodes with
geometry below it. You can use a visitor to find the respective nodes
and apply any transform you like (scale, rotate, translate)
2.) The model doesn't have the above, but geometry is separated for
parts that could be transformed: Use a visitor to find the appropriate
nodes and insert some transform above those geometries to manipulate them.
3.) The model has external references which form the (articulated)
parts. In this case they are decorated with a transform in most cases,
so simply modify those or use the pattern at 2).
I'm not sure about the cessna however, I don't think it has any parts
that you could manipulate. I'd need to take a look into the model.
Cheers
Sebastian
>
> ...
>
> Thank you!
>
> Cheers,
> Rambabu
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69426#69426
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list