Hi Akilan,
The matrix you created (rot), does rotate 90 degress around the X-axis. You
need to look at the resulting geometry position to determine if it's what you
really want.
BTW, There's a fantastic book for learning all about transforms and I think it
should be required reading for anyone working with OSG.
"Mathematical Elements for Computer Graphics", David Rogers and Alan Adams
Brian
> From: [email protected]
> Date: Fri, 11 Sep 2009 11:44:47 +0000
> To: [email protected]
> Subject: [osg-users] Transforming on coordinate system
>
> Hi,
>
> I have drawn a geometry normal to XY-plane and I would like to transform it
> in such a way that it must be normal to YZ-plane.I did rotation for 90 degree
> about X-axis. Will it do what I wanted to do? The corresponding code would
> seems to be ,
>
> ......
> ....
> osg::Matrix
> rot=osg::Matrix::rotate(osg::DegreesToRadians(90.),osg::Vec3f(1.0,0.0,0.0));
> ....
> ..
>
>
>
> Thank you!
>
> Cheers,
> Akilan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=17275#17275
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_________________________________________________________________
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org