[Qt-interest] QGLFrameBufferObject and external FBO

Samuel Rødal samuel.rodal at nokia.com
Thu Feb 4 13:41:52 CET 2010


ext Ender EREL wrote:
> Hello everyone,
> 
> I am trying to integrate OpenSceneGraph with Qt Graphics View framework 
> and i hit a wall recently. I want to render the scene into a framebuffer 
> object from OSG and then use the same FBO in Qt. I have two options, 
> either create a QGLFramebufferObject and have osg render into it, or let 
> OSG create a FBO and access this from Qt. My colleage is trying to make 
> OSG render into QGLFBO and i am trying to use QGLFBO with osg-created 
> FBO. Currently we are both stuck, so i am asking for your help.
> 
> I searched the web & docs but i can't find a way to use 
> QGLFramebufferObject with an externally created FBO. Is there a way? Or 
> what should i look for if i have to implement this myself?
> 
> Best Regards
> Ender EREL

Why do you need to wrap your FBO in a QGLFramebufferObject? Don't you 
just need to render the texture attached to the FBO somehow? To do that 
you should just use raw OpenGL to render the texture inside a 
QPainter::beginNativePainting() / QPainter::endNativePainting() block.

--
Samuel



More information about the Qt-interest-old mailing list