Hi,
your geometry and ortho projection should match if you want to view the
complete geometry. So either make both 1920x1080 or both 1.92x1.2.
jp
Akilan Thangamani wrote:
Hi,
My screen resolution is 1920*1200 and I rendered a texture with the geometry as
top_left(0.0,1.2), top_right(1.92, 1.2), bottom_left(0.0, 0.0) and
bottom_right(1.92, 0.0). Camera is set as,
...
..
camera->setViewPort(0,0, 1920, 1200);
camera->setProjectionMatrix(osg::Matrix::Ortho2D(0,1920,0,1200));
...
..
But I dont understand why the texture is not fitting exactly onto the screen?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26172#26172
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org