[Interest] Qt3D offscreen rendering

Harald Vistnes harald.vistnes at gmail.com
Mon Dec 14 21:06:05 CET 2015


Hi,

I'm trying to do offscreen rendering with Qt3D, but I have not figured out
how to do it yet. I have two use cases for this. One is to render a single
image in a console application, the other is to have a desktop application
with a 3D window and a button to save the current view in a user specified
resolution.

I'm guessing I should use a subclass of QOffscreenSurface instead of
QWindow as the surface, is that right? Or should I pass a custom render
target to the render target selector in the frame graph?

But how can I make Qt3D render a single frame, and how can I get the
rendered image back? In QOpenGLFrameBufferObject there are toImage()
functions, but there are no such functions in Qt3DRender::QRenderTarget. Is
there a way to do this, or have this functionality not been implemented yet?

Any hints on how to proceed would be welcome.

Harald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151214/b3205b13/attachment.html>


More information about the Interest mailing list