[Development] [Qt3D] Render to FBO

Harald Vistnes harald.vistnes at gmail.com
Thu Jun 30 15:14:10 CEST 2016


Hi,

Are there any plans on getting offscreen rendering (render to FBO) into
Qt3D for 5.8?

This has been requested multiple times before, and Sean suggested to try a
solution based on the Scene3DItem implementation.

I tried this and made some progress. I just uploaded a small demo example
to
https://bugreports.qt.io/browse/QTBUG-52136
https://bugreports.qt.io/secure/attachment/57353/offscreenrenderer.zip

I think I am quite close to the solution. I get Qt3D to render into the
FBO, because the color of the image extracted from the FBO has the same
color as the clearcolor set in the framegraph. But there is no geometry
rendered. I've not been able to figure out why.

The example is set up so that it can render the same scene either to a
normal Qt3DWindow or to the FBO, so I see that the scene is set up
correctly.

If someone with more knowledge of the inner workings of Qt3D could look
into this, I would be very grateful.

If this problem can be solved, I can contribute some time to get this into
5.8, because this missing feature is the last blocker that prevents me from
switching to Qt3D in my application.

Best regards,
Harald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160630/668c4de6/attachment.html>


More information about the Development mailing list