Re: [osg-users] Update to Depth Patitioner

2017-05-23 Thread Raymond de Vries
Hi Ravi, It is hard not to be interested, after your enthousiast mail. So yes! Cheers, Raymond On 23-5-2017 23:04, Ravi Mathur wrote: Hi all, A looong time ago I had created the DepthPartitionNode, which split up an OSG scene into multiple depth partitions and rendered them with multiple

[osg-users] Update to Depth Patitioner

2017-05-23 Thread Ravi Mathur
Hi all, A looong time ago I had created the DepthPartitionNode, which split up an OSG scene into multiple depth partitions and rendered them with multiple cameras. This turned into the original osgdepthpartition example. My implementation created nested cameras, which worked fine at the time, b

[osg-users] How to set the near clip only?

2017-05-23 Thread Glenn Waldron
Hello friends, I would like to configure the OSG CullVisitor to automatically calculate the far plane, but to use a manually selected near plane. Things I have tried include: - Cull callback that reads and updates the projection matrix with my near plane value - Cull callback that calls CullVisi

Re: [osg-users] Render to texture with GL3.

2017-05-23 Thread Nickolai Medvedev
I found problem. HUD-Camera does not work when i create OpenGL 3.3 core context. Only clear color is visible. If not create context, all is worked. Code: const int width(1920), height(1080); const std::string version("3.3"); osg::ref_ptr< osg::GraphicsContext::Traits > traits = new osg::Graph

Re: [osg-users] Render to texture with GL3.

2017-05-23 Thread Nickolai Medvedev
Hi, Robert. All right, now i see. Probably, something wrong with my code. I'm use new OSG 3.5.6, trying to port deferred renderer with light system to OpenGL 3.3. Thank you for your answer. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70964#709

Re: [osg-users] Render to texture with GL3.

2017-05-23 Thread Robert Osfield
HI Nickolai, There are no differences between RTT setup in the OSG for GL2 and GL3, or any other GL/GLES combinations for that matter. The osgprerender or osgprerendercubemap examples are decent places to start to learn what you need to do. Robert. On 23 May 2017 at 11:33, Nickolai Medvedev wr

[osg-users] Render to texture with GL3.

2017-05-23 Thread Nickolai Medvedev
Hi, community! How to correctly create a render to texture in GL3 context? What is the difference between RTT GL2 and GL3 in OSG. Thank you! Cheers, Nickolai -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70962#70962

Re: [osg-users] Draw instance quads not working

2017-05-23 Thread Raymond de Vries
Thanks for the feedback. Cheers Raymond On 23-5-2017 10:44, Bruno Oliveira wrote: I found out what my problem was. Since I was adding to vectors, I needed to set vec.w = 1; Thanks anyway! 2017-05-22 20:31 GMT+01:00 Raymond de Vries >: Hi Bruno, Can you p

Re: [osg-users] Draw instance quads not working

2017-05-23 Thread Bruno Oliveira
I found out what my problem was. Since I was adding to vectors, I needed to set vec.w = 1; Thanks anyway! 2017-05-22 20:31 GMT+01:00 Raymond de Vries : > Hi Bruno, > > Can you provide more information about your setup? Platform, gfx card, osg > version, etc. Have you seen and tried the osg examp

Re: [osg-users] How to use openscenegraph to realize approaching zero driver overhead

2017-05-23 Thread Sebastian Messerschmidt
Hi Qiaokun, Hi, Approaching Zero Driver Overhead (Presented by NVIDIA) can substantially improved efficiency in OpenGL. But, I don't find any interface to call AZDO in the osg source code. Can we realize it in osg finally? If you encountered this problem, please tell me how to combine osg and