Hi,
Thank you Nick!
it help a lot.
I found one more tip, so i introduce here.
(im in OSG 2.8.3)
When i put your code outside of while loop, then it didn't work.
Still trackball manipulator ignore assigned camera position.
(I don't know why)
So, i just put the code in while loop.
while(!viewer.done()){
cam->setViewMatrixAsLookAt(camPosition,osg::Vec3(0.0,0.0,0.0),osg::Vec3(0.0,0.0,1.0));
trackball->setByMatrix(osg::Matrix::inverse(cam->getViewMatrix()));
...
Then, it works :D:D
Cheers,
Soonchan
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=45502#45502
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org