[osg-users] [3rdparty] How to change camera's yaw and pitch, and move front, back and sideways according to that?
Trajce Nikolov NICK
trajce.nikolov.nick at gmail.com
Thu Jan 31 03:30:53 PST 2019
Hi,
viewer.getCamera()->setViewMatrixAsLookAt
On Thu, Jan 31, 2019 at 10:01 AM Rodrigo Dias <rodrigo1406 at 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190131/8556c5ff/attachment.html>
More information about the osg-users
mailing list