Hi Aurelien,

On 21 November 2012 22:57, Aurelien Albert <[email protected]>wrote:

> Hi,
>
>
> > Is there a reason why you can't just use a osg::Camera that is drawn
> after the main scene?
>
>
> I'm facing the same problem : in my OSG graph, I render data from physical
> simulations using a RTT camera and I need to postprocess the rendered
> texture before display it.
>

The osgprerender does some processing on a image that is rendered.  Have a
look at the --image pathway in examples/osgprerender.cpp, while it's not
exactly what you are wanting it's sounds pretty close.  In you case I'd
multiple cameras for each pass, or use the traversal order, the osgoit
examples illustrates this.


> I think this should work only if subgraph cameras are RTT cameras. And
> maybe the rendering should be really simple : no event / update traversal,
> maybe not even culling, just draw all objects[/quote]
>

The cull traversal does more than just cull, it builds the entire rendering
backend and manges all the arrangement of state for the final rendering
pass.  Potentially you can use callbacks and just call
draw->drawImplementation() but given all the power that the core OSG
provides w.r.t controlling rendering order I would have thought it possible
to most things without need to customize heavily.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to