Re: [osg-users] Is it possible to render in one RTT two cameras?

2014-04-23 Thread Anton
Thanks!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59117#59117





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Is it possible to render in one RTT two cameras?

2014-04-22 Thread Sebastian Messerschmidt

Hi Anton

For example: I have the first camera - this is the main scene and the second 
camera - screenspace 2d otho menu.

Can I render them consistently in one RTT (for future postprocessing)?
Your terminology is a bit confusing. RTT means render-to-texture. So 
what you want is to render to one texture using RTT.
To answer your question: Yes. This is how RTT is used in most of the 
cases; Binding a texture to a camera with FBO/Pixelbuffer via RTT and 
modifying it. The resulting texture then can be bound to the next camera 
etc.


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59084#59084





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Is it possible to render in one RTT two cameras?

2014-04-21 Thread Anton
For example: I have the first camera - this is the main scene and the second 
camera - screenspace 2d otho menu.

Can I render them consistently in one RTT (for future postprocessing)?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59084#59084





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Is it possible to render in one RTT two cameras?

2014-04-20 Thread Anton
Is it possible to render in one RTT two cameras?
The first camera is the 'main scene', and the second camera - '2d menu'.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59074#59074





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Is it possible to render in one RTT two cameras?

2014-04-20 Thread Sebastian Messerschmidt

Hi Anton,

Is it possible to render in one RTT two cameras?
The first camera is the 'main scene', and the second camera - '2d menu'.
Your question is hard to understand, but I guess you want to draw two 
passes into one render target.
This can be done in many ways, but as the second pass seems to be 
screenspace anyways, you could draw the second camera on top of you 
fullscreen-quad in the final pass.
If you need to do it really via RTT, create a second pass which binds 
the first output, displays it on a quad and add the 2d stuff as a second 
camera drawing to the rendertarget via blending.


cheers
Sebastian



--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59074#59074





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org