[osg-users] Viewer slaves and RTTs

Johny Canes psijsma at gmail.com
Sat Feb 18 10:39:37 PST 2017


Ah someone that thinks with me instead of trolling me (XD Robert)

I understand the idea of an FBO etc, but if I tell my camera to use an FBO, it goes black. This is because this camera is not an rrt-pbuffer, but a regular gc added to a camera that serves as a viewer slave.

I understand there can be many color attachments, but although I tell my camera to render to its only color buffer, it also renders to the screen. Is this a limitation of using a non pbuffer gc? Must be, because I've hit this problem with all my might yesterday and got nowhere :( So a bit frustrated lol

I am working on render passes right now, which means I can add an eye adaptation / adaptive tone mapping / bloom pass and more.

Is it correct that I have to add ortographic viewer slaves with their own master scene graphs with a quad to achieve them rendering in succession?


SMesserschmidt wrote:
> Hi Johny,
> 
> > Hi,
> > 
> > Might I add it was quite nontrivial to port threejs, but it all works. Now only one thing remains, which is either using a pbuffer gc or to somehow prevent my camera from drawing directly to its window.
> > 
> Well, then simply render to a FBO and pass the texture to your final 
> camera which will render to the framebuffer. The multiplerendertargets 
> example might give you some pointers.
> 
> 
> Cheers
> Sebastian
> 
> > 
> > Thank you!
> > 
> > Cheers,
> > Johny
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=70259#70259
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


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








More information about the osg-users mailing list