Hi,

You are probably best adding OpenGL calls as part of the scene graph,
by subclassing from osg::Drawable as per the osgteatpot example.  Then
just add this custom Drawable to the subgraph below your RTT Camera.

Robert.

On Nov 14, 2007 1:55 AM, 易成 <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
> I want to add some OpenGL draw code into my camera's draw process and render
> to a texture for multi render pass. So I first set a GL postdrawcallback to
> my main camera to do something such as draw some lines. Then I need to
> capture the whole screen to a texture , and use it in my fragment shaders.
> So I use the FBO for the texture like osgprerender example, but from the
> texture I can't find the GL lines I drawed in my GL postdrawcallback, only
> the scene rendered in my camera's draw process. How can I achieve the whole
> texture including my GL post-draw effects? Must I use another drawcallback
> to Copy the GL_BACK pixel values?
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to