Hi Ricardo,
On Mon, Nov 23, 2009 at 3:58 PM, Ricardo Ruiz <[email protected]> wrote:
> Thanks Rafa, but it does not work.
Try something like this:
Code:
double angle=0;
while (!viewer.done()) {
angle=viewer.getFrameStamp()->getReferenceTime();
viewer.getCamera()->setViewMatrixAsLookAt(osg::Vec3(0,-400,150),
osg::Vec3(0,0,0), osg::Vec3(0,0,1));
viewer.getCamera()->setViewMatrix(osg::Matrix::rotate(angle,0,0,1)*viewer.getCamera()->getViewMatrix());
viewer.frame();
}
return 0;
You can also use osg::Matrixd to configure the final View Matrix, it
has convenient methods to also configure view matrix.
>
> By the way Rafa, I'm also studing at UPV, a master in software engineering.
>
Nice!, If you need something you can find me in the CPI building. :)
Rafa.
--
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial http://www.ai2.upv.es
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org