Have you removed the Motion models that the ogs viewer creates by
default ,  

if not then this is overriding any changes you make 


Gordon
Product Manager 3d
__________________________________________________________
Gordon Tomlinson
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Danny
Lesnik
Sent: Tuesday, July 21, 2009 8:08 AM
To: [email protected]
Subject: Re: [osg-users] Camera Move example

Hi,

It looks like camera is not moving.

I have changed the order of matrix transformation, but there was no
result. 

I also changed  

      case(osgGA::GUIEventAdapter::KEYDOWN):
          {
             switch(ea.getKey())
             {
             case osgGA::GUIEventAdapter::KEY_Down:
        
viewer->getCamera()->setViewMatrixAsLookAt(osg::Vec3d(15.0, -25.0,
-25.0), osg::Vec3d(0.0, 0.0, -30.0), osg::Vec3d(0.0, 0.0, 1.0) );

But camera still freezes. 

I still believe that I'm doing something wrong, but am running out of
ideas what.

Thank you!

Cheers,
Danny

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





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

Reply via email to