On Wed, Aug 13, 2008 at 2:40 PM, Viggo Løvli <[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
> Yes, I can do that if I have an own camera to do the RTT. This particular
> case is about a node that will modify any camera that renders it.
>
> I assumed that I had stumbled over a bug in OSG when I discovered that
> turning off RTT does not work.

No bug, you are just trying to do something in a completely wrong
way....  As I said NodeMask works just fine, if you want another
alternative you can just put a Switch node above the RTT Camera.

> More explanation about why I am doing it this way:
>
> I have a node that will modify any camera that actually targets the node for
> rendering.
> The node will put any current render camera into RTT mode, and have
> post-render cameras as children that will post-process the result. I can
> thus add it to any scene-graph and get the post-processing I want without
> having to alter the scene-graph any further.
> Doing it with a new RTT camera means that I have to add it as a slave camera
> to every camera that renders the scene-graph, or to add it as a child camera
> of any camera that renders the scene-graph. A child camera would have to be
> inserted so that it severs the connection between old camera and scene-graph
> (to prevent the old camera to render the scene-graph itself). A slave camera
> would be complicated if the main camera already has a lot of slaves.
> The simulators we are creating will be used on a high variety of setups, it
> can be one camera or it can be 100 cameras. A generic solution is to make a
> node that modifies the current camera instead of inserting new cameras.
> Doing it this way is so far proving to be a benefit, except for the fact
> that I can not turn off the RTT mode.

??>##?

It really sounds like you are making a relatively straight forward
problem really complicated.  Have 100 RTT Camera's in the scene graph
is not a big issue for the OSG.  Trying to reuse Camera can be done
but it's really awkward, and is more likely to cause you more grief
than you solve anything.  Also you having more grief pushes the
mailing list to try and help you doing something which is in the end
rather counter-productive, personally I have better things to do.

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

Reply via email to