[osg-users] setViewMatrixAsLookAt not working to set the initial camera position
sam
brkopac at gmail.com
Mon Jan 7 19:39:36 PST 2019
After you set the home position try:
viewer.getCameraManipulator()->home(1);
Sorry I'm not right in front of my computer right now.
On Mon, Jan 7, 2019 at 7:26 PM Rodrigo Dias <rodrigo1406 at gmail.com> wrote:
> Hi Sam,
>
> By "home" I think you mean
>
>
> Code:
> viewer.getCameraManipulator()->setHomePosition( eye, center, up );
>
>
>
>
> This really changed camera's position, though it's totally freaking out
> now (I'm still fiddling with the values in eye, center and up).
>
> But I have no idea what you meant by "delta time", something to go inside
> the loop?
>
> Thank you!
>
> Cheers,
> Rodrigo
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75413#75413
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190107/b32c67b8/attachment.html>
More information about the osg-users
mailing list