[Interest] Qt3D offscreen rendering
Sean Harmer
sh at theharmers.co.uk
Mon Dec 14 21:16:52 CET 2015
Hi,
that's pretty much exactly what the implementation of Scene3D does:
http://code.qt.io/cgit/qt/qt3d.git/tree/src/quick3d/imports/scene3d
Cheers,
Sean
On 14/12/2015 20:06, Harald Vistnes wrote:
> 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
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151214/626a12a1/attachment.html>
More information about the Interest
mailing list