Hi.
I was getting similar result when I was using custom camera. The revision
that introduced the change in SVN was 13604 (July 2 2013), version 3.1.9 or
3.1.10.
If these versions don't break rendering for you, you should simply hunt the
necessary revision in SVN. That's what I did.


2014-04-09 18:43 GMT+07:00 alexis pierre <[email protected]>:

> Hi,
>
> I saw this issue while reading the forum. I don't use a custom camera.
> Even if I try to call setGlobalDefaults() I still get the same problem.
>
> Here is my code:
>
>
>
> Code:
>
> //Creating the viewer
>         osgViewer::Viewer viewer;
>
>         viewer.setUpViewInWindow(200, 200, 800, 600);
>
>         osg::ref_ptr<KeyboardHandler> keyboardEvent(new KeyboardHandler());
>
>         viewer.addEventHandler(keyboardEvent.get());
>
>         // Camera
>         osg::ref_ptr<osg::Camera> camera = viewer.getCamera();
>
>         //Tried With or Without this line
>         camera->getOrCreateStateSet()->setGlobalDefaults();
>
>         viewer.setSceneData(root.get());
>
>         viewer.realize();
>
>         if (!viewer.getCameraManipulator()
>                         && viewer.getCamera()->getAllowEventFocus()) {
>                 viewer.setCameraManipulator(new
> osgGA::TrackballManipulator());
>         }
>
>         viewer.setReleaseContextAtEndOfFrameHint(false);
>
>
>
>
>
> Thank you!
>
> Cheers,
> alexis
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=58848#58848
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to