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

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:

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

[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