<div dir="ltr">You can make the view matrix:<div><br></div><div> osg::Matrix::lookAt(eye, center, up)</div><div><br></div><div>This has nothing to do with the projection matrix though; that doesn't depend on your look vector.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Glenn Waldron</div></div></div></div>
<br><div class="gmail_quote">On Tue, Sep 22, 2015 at 9:24 AM, Erik Hensens <span dir="ltr"><<a href="mailto:ehensens@hunter.com" target="_blank">ehensens@hunter.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone!<br>
<br>
How can I compute the view matrix and the projection matrix from a set of lookat parameters (eye, center, and up)?<br>
<br>
I'm asking because I need to compute the MVPW for a given lookat before the camera is actually at that lookat.<br>
<br>
I'm totally stumped and any help would be greatly appreciated!<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Erik[/list]<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=65173#65173" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=65173#65173</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">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></div>