Re: [osg-users] Separate sub-graphs of the same scene

2009-03-17 Thread Robert Osfield
Hi Guy, Have you trying used osg::AutoTransform? Also osg::Camera allows you to disable clear of the either the depth or colour buffer. See osghud example. Robert. On Tue, Mar 17, 2009 at 6:14 AM, Guy wrote: > > Hi, > What I'm trying to accomplish is to draw a given pattern instead of the

Re: [osg-users] Separate sub-graphs of the same scene

2009-03-16 Thread Guy
Hi, What I'm trying to accomplish is to draw a given pattern instead of the projected object, on special condition. That pattern is no longer 3DWorld oriented, but instead, screen pixels oriented, with the exception of keeping the 3D distance of the 3DWorld object. Suppose I have a model of a

Re: [osg-users] Separate sub-graphs of the same scene

2009-03-16 Thread Peter Amstutz
I'm not sure I entirely understand what you're trying to accomplish, but perhaps you want to look into using a stencil buffer and/or pixel shader to control what gets rendered? Guy wrote: Hello, I'm trying to merge two sub-graphs to the same image. It doesn't work so well, so I'll try t

[osg-users] Separate sub-graphs of the same scene

2009-03-16 Thread Guy
Hello, I'm trying to merge two sub-graphs to the same image. It doesn't work so well, so I'll try to explain what in general I'm trying to achieve, then my not working so well solutions, and then the questions :-) So, in general I want to replace an object (A) in the scene with another o