Hi Robert,
Thanks for your quick answer.
> I wouldn't implement this type of management by reassigning a single
> osg::Camera with different setting but use a different Camera. I
> would also leave alone the master Camera and instead prefer to
> add/remove slave Cameras.
>From your answer I understand that I should have a slave camera which render
>the scene to texture and then doing my post processing from this slave camera.
>To disable my post-process I should only remove slave cameras.
By this mean I'm not modifying my master camera (which render to framebuffer)
but what I have is a black screen.
Am I using osg correctly?
> My guess to why you haven't been able to do what you want is the
> rendering backend data structure that is assigned to the osg::Camera
> to manage the the data accumulated during the cull traversal and which
> is that traversed in the draw traversal. The osg::Camera methods
> relating to this data structure is:
>
> /** Set the Rendering cache that is used for cached objects
> associated with rendering of subgraphs.*/
> void setRenderingCache(osg::Object* rc) { _renderingCache = rc; }
>
> /** Get the Rendering cache that is used for cached objects
> associated with rendering of subgraphs.*/
> osg::Object* getRenderingCache() { return _renderingCache.get(); }
>
> Perhaps resetting this RenderCache to 0 would do the trick.
Also I had tested to set rendering cache to 0, but it doesn't work. My main
camera seems not using rendering cache as it is already set to 0.
Thanks,
Kenzo
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50569#50569
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org