Hi,

I have found my object finally by turning off by NOT relying on 
setAutoComputeHomePosition, and these other "set" creatures.


Code:

osgGA::NodeTrackerManipulator* nt = new osgGA::NodeTrackerManipulator();
nt->setNode(trackedNode); 
nt->setTrackNode(trackedNode); 
nt->setTrackerMode(osgGA::NodeTrackerManipulator::NODE_CENTER_AND_AZIM); 
nt->setAutoComputeHomePosition(true); 
nt->setMinimumDistance(100); 
nt->setDistance(100); 
nt->setElevation(100); 




What HAS worked for me is the (apparently) more direct route...


Code:

nt->setHomePosition( osg::Vec3f(0.f,-40.f,40.f), 
osg::Vec3f(0.f,20.f,20.f)+osg::Vec3f(0.f,1.f,0.f), osg::Vec3f(0,0,1) );




where ever I was being placed in autocompute wether I set position or not... 
they were obviously fighting with each other and placed me at the edge of the 
universe and also upset the scaling of mouse controls. The mouse stabilized 
somewhat when approaching the object, but was pretty wild for a time on the 
edge. 

I might note that, at the (perceived) edge of the universe, shapes that might 
relate themselves to the islands would take on darkness, invert themselves and 
leave remnants behind for the other manipulators to deal with even with their 
more proper positioning. Like an upside down black mountain over the scene. 
More stable when positioned first, though... but interesting non-the-less.

Still want to know about the setviewmatrix and such...

Thank you!

Cheers,
tim

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37794#37794





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to