[osg-users] Render to texture

Ivan Bolčina ivan.bolcina at gmail.com
Wed Sep 5 03:10:42 PDT 2007


Thanks for reply.

I didn't know that I have to wait for a frame for rendering. I wanted to
invoke rendering outside main loop, I guess that's just not possible.

Bye and thanks,
Ivan

2007/9/5, Robert Osfield <robert.osfield at gmail.com>:
>
> Hi Ivan,
>
> See osgprerender example for render to texture.  All you need to do is
> place a RTT Camera into your scene, and after the first frame just set
> its node mask to 0x0 or simply remove it.
>
> Robert.
>
> On 9/4/07, Ivan Bolčina <ivan.bolcina at gmail.com> wrote:
> >
> > Hi.
> >
> > I just want to render a simple node to a texture. All the examples are
> using
> > callbacks, osg viewer,etc.. I don't understand all that, I just want to
> set
> > up geometry, projection and new camera and then take one shoot with
> camera
> > and that's it.
> >
> > So I need a simple function like this
> >
> > osg::Image * CreateTopDownShotOfNode( osg::Node * node);
> >
> > The main problem is how to tell osg to render using that camera.
> >
> > thx
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070905/45a0e140/attachment-0003.htm>


More information about the osg-users mailing list