Hi,

I'm able now to move my camera  left and right as the keyboard event.  
waht i'm doing is taking current camera matrix by camera->getViewMatrix();

Then multiply this matrix with transaction matrix having X(0,4) = 1 for moving 
right and -1 ny moving left. 

any setting new camera location matrix by camera->setViewMatrix(result);
 
This works fine, but my problem is that every ten step my objects are blinking 
(or kind of refreshing) and animation is not smooth. 

I'm running my viewer with the loop 

viewer.realize();
    while( !viewer.done() )
    {
        viewer.frame();
    } 

How can I avoid this blinking and get smooth picture?
 
 

Thank you!

Cheers,
Danny

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to