Re: 【NEWBIE】Question about osg::MatrixTransform::getMatrix().getTrans() and getRotate()

2017-05-30 Thread Jiechang Guo
two > matrix transforms above loaded model.  > > > MatrixTransformTranslate->MatrixTransformRotate->Object. > > > Apply only rotations to MatrixTransformRotate > and translations to MatrixTransformTranslate. > > > Cheers, > Wojtek > >

Re: 【NEWBIE】Question about osg::MatrixTransform::getMatrix().getTrans() and getRotate()

2017-05-30 Thread Jiechang Guo
two > matrix transforms above loaded model.  > > > MatrixTransformTranslate->MatrixTransformRotate->Object. > > > Apply only rotations to MatrixTransformRotate > and translations to MatrixTransformTranslate. > > > Cheers, > Wojtek > >

Re: 【NEWBIE】Question about osg::MatrixTransform::getMatrix().getTrans() and getRotate()

2017-05-06 Thread Jiechang Guo
Hi Wojtek, First, Thank you very much for your detailed reply. 1. It's my mistake to say rotation around Y axis, I always think the z axis is actually the y axis. 2. The origin variable is osg::Matrix origin = model1->getMatrix(); I update this variable everytime when I translate or rotate the

【NEWBIE】Question about osg::MatrixTransform::getMatrix().getTrans() and getRotate()

2017-05-05 Thread Jiechang Guo
Hi, I'm a newbie and not good at math. Please I'm so confused with osg::MatrixTransform::getMatrix().getTrans() and getRotate(). I use the code below to rotate an object around y axis about 45 degrees.

Re: [osg-users] My cow.osg just become different in a hello world pragram

2017-04-25 Thread Jiechang Guo
Thank you,Rambabu. I made a misteak, after check my lib, I can't find osgdb_rgbd.dll, that's the problem. The problem was solved~ Thank you,any way! Cheers, Jiechang -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70830#70830

[osg-users] My cow.osg just become different in a hello world pragram

2017-04-24 Thread Jiechang Guo
Hi, I'm a newbie. I found that the osg cow I read from node file is different. The color of the cow become white, it seems like the texture is gone. The code is as simple as a helloworld pragram. osg::ref_ptr viewer = new osgViewer::Viewer; osg::ref_ptr gp = new osg::Group; osg::ref_ptr node =

Re: [osg-users] How to get the orientation of 3d object?

2017-04-20 Thread Jiechang Guo
Thank you Alberto! I'll try it. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70791#70791 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] How to get the orientation of 3d object?

2017-04-12 Thread Jiechang Guo
Hi, I am dealing with a task of orienting and positioning one object relative to another(the same object as the manipulated one,but has different position and orientation). And when the task is finished, I wanna compute the deviation(both position and orienting). For the orientation, I want