Hi,
I am developing an application in iOS using openscenegraph.
I'd like to resize a viewer. Simply resizing the container view (which contains 
my osgViewController) resizes the viewer, but the model appears centered 
incorrectly and it is blurred and scaled up. Furthermore camera manipulator is 
not working perfectly.


In practice, I start with a view of size 150x150. Then in a toolbar there's a 
button to make this view go fullscreen, and hide the other ones.
When I press the button the view is correctly resized to fullscreen.
The graphics context appears to be update automatically because I checked the 
traits for width and height and they are updated correctly.

However when it goes full-screen the 3D model appears blurry and taller.

I am using a Camera Manipulator, specifically a 
osgGA::MultiTouchTrackballManipulator()

My update function execute only the following command:
    _viewer->getCamera()->setViewport(0, 0, frame.size.width, 
frame.size.height);

should I do something else?

Thank you very much!

Cheers,
John

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to