Hi All!
I am trying to find out how to implement a trackball navigation so that
the camera turns around a puppet I have loaded via VRML-Loader into the
scene. For now I tried the set() function which is used in the
OSG:Navigator class to change the atx,aty,atz values. Afterwards I
checked the transformation matrix with the getMatrix() function. It
changed but if I do any mouse action inside the window nothing has
changed at all. The Camera looks still at the same point: Pnt3f(0,0,0).
This part I have added for testing into the main function:
>Navigator *nav = new Navigator;
>nav->set(Pnt3f(0,0,1),Pnt3f(0,0.414,0.910),Vec3f(0,1,0));
>nav->updateCameraTransformation();
>cout << "current Transformation" << nav->getMatrix() << endl;
Is there another way to get the camera turn all around the puppet?
regards,
Sadi
--
Sadi Tanis
University of Koblenz/Landau
Student of Computer Vision
Simmerner Straße 134
56075 Koblenz Germany
Tel. +49.261.208.98.73
E-mail [EMAIL PROTECTED]
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users