Re: [osg-users] Material Properties to Change the Normal Intensity

2016-12-28 Thread Rômulo Cerqueira
Hi Sebastian, I followed your tip and passed the reflectance as float-uniform. Each object has a different reflectance passed by individual statesets. ... Thank you! Cheers, Rômulo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69791#69791

Re: [osg-users] Capture image on iOS get black image

2016-12-28 Thread duc nguyen
hartwigw wrote: > Hi, > > glReadPixels is not supported by iOS. > > Cheers, > Hartwig But my iOS device use Open GLES 2.0 an it support glReadPixels function -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69789#69789

Re: [osg-users] Check if sampler2D is valid in fragment shader

2016-12-28 Thread Rômulo Cerqueira
Hi Sebastian, > > There is no direct way. If you need shaders with and without texturing > you should bind different programs to the affected geometries. > I think my problem is a little bit different. I will receive the final scene with or without textures and process it properly. I

Re: [osg-users] Capture image on iOS get black image

2016-12-28 Thread Sebastian Messerschmidt
Hi, it is hard to tell what is going wrong without further information. For instance it is crucial to call the glReadPixel function in the right moment. Could you provide some example that shows the problem? Also: is the osgscreencapture or the osgviewers screenshot-functionality working? Cheers

Re: [osg-users] Capture image on iOS get black image

2016-12-28 Thread Raymond de Vries
Dear Duc, If you read your own first mail with the code snippet you pasted: virtual void operator () (osg::RenderInfo& renderInfo) const { #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) glReadBuffer(_readBuffer); #else

Re: [osg-users] Capture image on iOS get black image

2016-12-28 Thread Hartwig Wiesmann
Hi, glReadPixels is not supported by iOS. Cheers, Hartwig -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69782#69782 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Custom camera manipulator

2016-12-28 Thread Joe Kindle
Hi, I'm building a terrain viewer. Using the "Terrain Manipulator" as the camera Manipulator works fine, except that the movement with the middle mouse key 'sticks' to the ground (by the height) which makes little jumps when I.move How can I solve that jumps.? Thank you! Cheers, Joe

Re: [osg-users] Capture image on iOS get black image

2016-12-28 Thread duc nguyen
I can't get data for image with this function Code: glReadPixels(x,y,width,height,format,type,_data); the _data is always return "" Cheers, duc -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69780#69780

Re: [osg-users] looking for a terrain database building toolchain

2016-12-28 Thread Daniel Schmid
Hi Raizel Proland Looks pretty interesting. Is there an exising OSG Integration available somewhere? Cheers, Daniel -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69781#69781 ___ osg-users

[osg-users] System requirements for OpenSceneGraph

2016-12-28 Thread Nikita Petrov
Hi, I'm trying to run OSG and osgEarth on very old PC. nVidia GeForce MX440 with latest drivers (93.71_forceware_winxp2k_english_whql.exe) - OpenGL 1.5 Pentium 4 2.4GHz WinXP x86 I've successfully built OSG in Visual Studio 2010. osgversion.exe - works fine. But when I run anything like

Re: [osg-users] System requirements for OpenSceneGraph

2016-12-28 Thread Alberto Luaces
"Nikita Petrov" writes: > I've googled a lot and I can't find any info about OpenGL or graphic card > requirements for OSG. > Yes, because it pretty much depends on what your code is doing and in which hardware it is executing. I would dare to say that there are not any minimum requirements

[osg-users] mixing Direct3D and OSG...

2016-12-28 Thread Shayne Tueller
Hello, I have a Direct3D app in where I need to render a background image using OSG. The approach I was thinking of using is to use off-screen memory or context to render the OSG imagery and then try to load the results into a Direct3D surface somehow. Perhaps a render-to-texture sort of

[osg-users] mixing Direct3D and OSG...

2016-12-28 Thread Shayne Tueller
Hello, I have a Direct3D app in where I need to render a background image using OSG. The approach I was thinking of using is to use off-screen memory or context to render the OSG imagery and then try to load the results into a Direct3D surface somehow. Perhaps a render-to-texture sort of