<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>viewer.getCamera()->setViewMatrixAsLookAt<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 31, 2019 at 10:01 AM Rodrigo Dias <<a href="mailto:rodrigo1406@gmail.com">rodrigo1406@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br>
<br>
Considering this is such a trivial task, why is it virtually impossible to find a simple source code showing how it's done?<br>
<br>
Thanks,<br>
Rodrigo<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=75567#75567" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=75567#75567</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">trajce nikolov nick<br></div>