[osg-users] RTT Camera does not render anything

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Wed Apr 15 03:38:13 PDT 2015


Hi Andreas,


> Hi,
>
> my bad for not explaining it very well ;)
>
> I want the following:
>
> With the RTT Camera I want to render a specific geometry. The texture I get from that, will be used in the main scene later.
>
> The RTT Camera must not point in the same direction as the main camera.
> If this would be the case the texture would change if I move the camera, correct?
>
> My thought was if I create the RTT Camera, with "ABSOLUTE_RF" it would point in the same direction as the main camera, but would not change its orientation etc. when the main camera does.
It will have some default orientation and is totally decoupled from 
other cameras.
So you will have to set the orientation/projection to what you desire, 
either by callback or if static after the initialization.

>
>
> Now I try to read out the ViewMatrix and the ProjectionMatrix to find out the difference.
>
>
>
> At the moment I just  could transform the geometry under the RTT Camera so the camera renders the part I want. But I wanted to understand what goes on so I do not carry any mistakes with me ;).
You can do it this way or apply the same transformation inverted to the 
camera ...
>
> Hope this makes it clear, if anything isn't just ask
>
> Thank you for helping me out Sebastian ;)
> ...
>
> Thank you!
>
> Cheers,
> Andreas
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63415#63415
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list