Hi,

I can't easily some of the below paragraphs.  No doubt what you want
to do is possible with the OSG, I have pointed you in the direction I
think is useful, but beyond this I'm afraid you'll need to write your
own app.

Robert.

On 2/14/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
Hi Robert,

i've checked the osgdistortion example and the osgprerender/renderToTexture 
example again. Rendering a scene part following these examples will not work 
and i am not sure if i'am on the right way...

For a better understanding what i want to realize, here a short example what i 
will do:

Imagine a smal scene like a racing track. In this scene you have several cars 
moving on the track and some environment objects arround this track. During 
rendering this scene i want to create multiple views of this scene by using  
RTT's. In example for a tracking-cameras or rear/side-view projected as HUD 
elements on top of the scene/screen.

My problem is, if i create the RTT based on the examples, the object which is 
the child of RTT-Camera is projected to the RTT. But only the object no one of 
the objects arraound this object (in example some of the other cars in the 
camera field of view or the sky in the backround ect.).

If i add the scene to the camera or the group/translation where all Objects are 
attached, i only got an black screen or texture and sometimes a SIGFAULT.

Now i am not sure, if this is it the right way to realize multiple views? I 
know i could do this by using more openProducer cameras, but this bar me from 
using shaders for some special effects which i will use on the rtts ...

Best regards,
Chris






----- Original Message -----
From: [EMAIL PROTECTED] <Robert Osfield>
To: [email protected]
Date: 12.02.2007 21:07:03
Subject: Re: [osg-users] Render scene part to texture


> HI Chris,
>
> I don't of its what you are looking for by the osgdistortion example
> uses inheritance of the view and projection matrices for its RTT
> camera to capture the scene as it would have been seen using normal
> OSG camera manipualation.  The resulting texture is then distorted and
> applied to the screen.
>
> Robert.
>
> On 2/12/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > since some days i try to develop a tracking camera for my scene. The view 
of the camera should be rendered into a texture to show that texture as hud element 
combined with some shader effects.
> >
> > To realize that i've played arround with the render to texture example and 
the osgprerender example. So far so good. Rendering a single object to texture should 
not be the problem  if i add the object as subgraph to the render to texture camera.
> >
> > But how should i realize this, if the object is a part of the rendering 
scene? In this case the object and all surrounding objects  (normaly parallel and 
parent nodes in the graph) in the field of view of the camera should be rendered to 
this texture? Is this possible?
> >
> > I've checked the NPS tutorials, where the tracking camera is realized as 
separate view context. Is it possible to render the result of this second view to a 
texture?
> >
> > Best regards,
> > Chris
> >
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to