Hi Gaëtan,

On 10 June 2013 15:26, Gaëtan André <gaetan.an...@gmail.com> wrote:
> Then this CubeMap is used twice per cycle.
>
> First on a object, via shaders.
> Second on two quads,displayed by a HUD camera (in order to see what is in the 
> map).
>
> On the object, a still image is displayed corresponding to a render from a 
> previous execution of the application !
>
> On the quads, this image is blended with the correct texture being rendered.
>
> Each time I restart the application, a image of the previous execution is 
> used.
>
> It is sort of confusing.

This is almost certainly down to an issue of order of setting the
texture contents and using them.  The OSG has a scheme for controlling
the rendering order Camera's, and for render to texture Camera's you
use camera->setRenderOrder(osg::Camera::PRE_RENDER);  Please have a
look at the osgprerender and osgprerendercubemap examples.

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

Reply via email to