Perfect.

Thanks,
Harald
On Dec 14, 2015 9:17 PM, "Sean Harmer" <s...@theharmers.co.uk> wrote:

> 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 
> listInterest@qt-project.orghttp://lists.qt-project.org/mailman/listinfo/interest
>
>
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to