You can make the view matrix: osg::Matrix::lookAt(eye, center, up)
This has nothing to do with the projection matrix though; that doesn't depend on your look vector. Glenn Waldron On Tue, Sep 22, 2015 at 9:24 AM, Erik Hensens <[email protected]> wrote: > Hi everyone! > > How can I compute the view matrix and the projection matrix from a set of > lookat parameters (eye, center, and up)? > > I'm asking because I need to compute the MVPW for a given lookat before > the camera is actually at that lookat. > > I'm totally stumped and any help would be greatly appreciated! > > Thank you! > > Cheers, > Erik[/list] > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=65173#65173 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

