Hi, viewer.getCamera()->setViewMatrixAsLookAt
On Thu, Jan 31, 2019 at 10:01 AM Rodrigo Dias <rodrigo1...@gmail.com> wrote: > I want to change the camera direction with the mouse, and position with > the keyboard. I've found an example on how to change the position, but > still couldn't find anything explaining how to change the direction (and > not sure if the position will change correctly when the direction changes). > All I find is "take a look at the manipulator source code, it will give > inspiration" etc. But I just don't get how can I implement that from the > source code I saw. > > Considering this is such a trivial task, why is it virtually impossible to > find a simple source code showing how it's done? > > Thanks, > Rodrigo > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=75567#75567 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org