Hi Robert -- I'm trying to render to texture using a multisampled
framebuffer object, and subsequently need to call glBlitFramebufferEXT in
order to resolve the multisampled FBO into a buffer object that I can use as
a texture.
 
As near as I can tell, the only OSG code that executes a
glBlitFramebufferEXT is in RenderStage, and only when
setMultisampleResolveFramebufferObject() has been set to non-NULL. Nothing
in OSG appears to call this method, though, so I assume the intent is that
I'd call it from my own app. If so, how would I access the RenderStage to
call this method? The RenderStage is only accessible via the SceneView and
the CullVisitor objects, so getting to it seems kind of awkward..
 
I'd expect to be able to set the resolve FBO through the RTT Camera itself,
but there doesn't appear to be a way to do this, so it seems like the next
best solution would be to add a post draw callback to the RTT Camera and
issue the glBlitFramebufferEXT call in this callback... or do you have a
more elegant solution?
 
Thanks for any help.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
+1 303 859 9466
 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to