[osg-users] round earth to ECEF

2017-05-05 Thread Trajce Nikolov NICK
Hi community, I have Round Earth database (origin set to some geo location on the ellipsoid) and I need it into ECEF (origin at the earth center). I havn't spend too much time thinking about possible conversion and I am asking here for some hints, suggestions what it would take to write some

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

2017-05-05 Thread Wojciech Lewandowski
Hi Jiechang, Few observations: 1. You write you want rotation around Y axis (0,1,0). But you rotate around Z axis (0,0,1). Btw there are osg::X_AXIS = (1,0,0) , osg::Y_AXIS = (0,1,0), osg::Z_AXIS = (0,0,1) constants defined in OSG which you may directly. 2. What is the origin variable in your

【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.