[osg-users] Can a slave camera be used/configured as RTT camera?

2014-01-21 Thread Conan

Can a slave camera be used/configured as RTT camera?
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Can a slave camera be used/configured as RTT camera?

2014-01-22 Thread Robert Osfield
Hi Conan,

On 21 January 2014 22:47, Conan  wrote:

> Can a slave camera be used/configured as RTT camera?
>

Yes, this is common way to implement things like distortion correction -
see src/osgViewer/View.cpp's implementation of spherical distortion
correction.  All you need to make sure is that RenderOrder is set to make
sure the RTT slave Camera is drawn before the other Camera's that use the
result.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Can a slave camera be used/configured as RTT camera?

2014-01-22 Thread Conan Doyle
Thanks.  One more question...

What I am trying to do is render an entity in my scene from 3 (Front, Top, 
Side) views, at a constant range/distance.  Is a slave camera the best 
approach.  I have some confusion regarding using slave cameras vs. multiple 
views.

CD


robertosfield wrote:
> Hi Conan,
> On 21 January 2014 22:47, Conan < ()> wrote:
> 
> > Can a slave camera be used/configured as RTT camera?
> > 
> 
> 
> Yes, this is common way to implement things like distortion correction - see 
> src/osgViewer/View.cpp's implementation of spherical distortion correction.  
> All you need to make sure is that RenderOrder is set to make sure the RTT 
> slave Camera is drawn before the other Camera's that use the result.  
> 
> 
> Robert.
>  
> 
>  --
> Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57956#57956





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org