Re: [osg-users] Real3D on LG Optimus with OpenSceneGraph 3.0.0

2012-09-11 Thread Oren Fromberg
Thanks Robert and Rafa, Looks I had set the display settings on the viewer correctly but I was not actually rendering with the main camera in the scene graph, I only had an ortho2d camera rendering a HUD underneath the root node. Once I had placed some geometry underneath the root node to be ren

Re: [osg-users] Real3D on LG Optimus with OpenSceneGraph 3.0.0

2012-09-07 Thread Rafa Gaitan
Hi Oren, I already developed something for LG Optimus 3D and the DisplaySetting worked as expected. Maybe you need assign the DisplaySettings to the Viewer if it's already realized. Some days ago I released osgAndroid (https://gitorious.org/osgandroid) to make life easier for android developers a

Re: [osg-users] Real3D on LG Optimus with OpenSceneGraph 3.0.0

2012-09-07 Thread Robert Osfield
Hi Oren, The env vars just provide the default settings from DisplaySettings so setting them programmatically will achieve the same end. As to why it's not working on your phone I can't say as I know nothing about the specifics of the phone or what you are seeing on screen or what the phone is ex

Re: [osg-users] Real3D on LG Optimus with OpenSceneGraph 3.0.0

2012-09-07 Thread Oren Fromberg
well, I stepped through the code in DisplaySettings.cpp and setting those environment variables does the exact same thing as the function calls. also, I am not sure how to set environment variables in android so I don't know how to test it. I want to understand how the rendering changes at the

Re: [osg-users] Real3D on LG Optimus with OpenSceneGraph 3.0.0

2012-09-07 Thread Sergey Polischuk
Hi I know for sure it does work if you set it with env variables (like OSG_STEREO=ON OSG_STEREO_MODE=HORIZONTAL_SPLIT), didn't used to set it up in code. Cheers. 07.09.2012, 18:56, "Oren Fromberg" : > I am trying to enable stereoscopic rendering in the osg display settings in > order to use t

[osg-users] Real3D on LG Optimus with OpenSceneGraph 3.0.0

2012-09-07 Thread Oren Fromberg
I am trying to enable stereoscopic rendering in the osg display settings in order to use the stereoscopic display on the LG optimus. The LG Real3D API expects the framebuffer to be split horizontally so I am enabling stereo rendering like this: Code: osg::DisplaySettings::instance()->setStereo