Re: [osg-users] lighting not consistent across images in osgprerendercubemap

2012-11-07 Thread Andrew Straw
Dear Robert, Thanks for your suggestion, but that does not fix the issue. (Diff to osgprerendercubemap.cpp attached.) Any other ideas? -Andrew On 11/05/2012 10:37 AM, Robert Osfield wrote: HI Andrew, Try putting an osg::LightSource with a positional light into the scene. Robert. On 3

Re: [osg-users] Problem with perspective and depth value

2012-11-07 Thread Peterakos
Hello again. Forgot to mention this picture is the result of float depth_value = gl_FragCoord.z; gl_FragData[0] = vec4(depth_value, depth_value, depth_value, 1); This is how i try to export the depth texture. thnx again. ___ osg-users mailing list

Re: [osg-users] lighting not consistent across images in osgprerendercubemap

2012-11-07 Thread Farshid Lashkari
Hi Andrew, Try applying an osg::LightModel state attribute to your scene graph with setLocalViewer set to true. I use this to get consistent specular highlights across walls in our CAVE setups. Hope this helps. Cheers, Farshid On Wed, Nov 7, 2012 at 5:22 AM, Andrew Straw straw...@astraw.com

Re: [osg-users] lighting not consistent across images in osgprerendercubemap

2012-11-07 Thread Andrew Straw
That's it! Many thanks! That had been a source of frustration for some time. -Andrew On 07-Nov-12 17:52, Farshid Lashkari wrote: Hi Andrew, Try applying an osg::LightModel state attribute to your scene graph with setLocalViewer set to true. I use this to get consistent specular highlights

Re: [osg-users] Problem with perspective and depth value

2012-11-07 Thread Thrall, Bryan
Peterakos wrote on 2012-11-07: Hello. I use the following to render a cessna. Viewer viewer; viewer.setSceneData(group); Camera* camera = viewer.getCamera(); camera-setProjectionMatrixAsPerspective(45, 1, 1, 30); viewer.setUpViewInWindow(40,40,width,height); return viewer.run();

[osg-users] [build] How to play Video on Android

2012-11-07 Thread Koduri Lakshmi
Hi, I build OSG for Android with GLES1. I loaded models successfully on my mobile. Now I want to play video instead of model (like the one in Windows desktop). Is it possible to play a video using OSG on Android. Can you please help me how to build plugins for these if possible. I searched