[osg-users] setViewMatrixAsLookAt not working to set the initial camera position

Rodrigo Dias rodrigo1406 at gmail.com
Mon Jan 7 19:54:59 PST 2019


I just tried it, but still the camera is messed up. No matter which numbers I choose to eye, center and up, it never behaves as default. I have not even a clue about the difference between 10, 100 and 1000, which one should I use? (I'm using osgEarth's Map and MapNode, btw, which are displaying a whole flat white Earth, with only the desired country drawn with a texture) I tried using getViewMatrixAsLookAt with the default values, but it's still a mess. I've looked at many questions here, and in some of the source code, but nothing clears this up.

Thank you!

Cheers,
Rodrigo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75415#75415







More information about the osg-users mailing list