viewer.run() -- это почти тоже самое, что и
viewer.realize(); while( !viewer.done() ) { viewer.frame() }
там только TrackballManipulator добавляется, если никакого не было.
Можешь посмотреть в OpenSceneGraph/src/osgViewer/Viewer.cpp

2007/5/3, Роман Григорьев <[EMAIL PROTECTED]>:


Hi guys!
I'm learning OSG and have a question how to move camera now because in
examples I see this


while( !viewer.done() )

{

viewer.getCamera()->setViewMatrix(seh->getCameraPosition());

// fire off the cull and draw traversals of the scene.

viewer.frame();



}

but now OSG use different approach

viewer.run();

so as I got I have to use callbacks - so my question how to use
updatecallbacks to move camera?

Thanx in advance
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to