Qt 3D Studio Runtime: Simple Offscreen Example | Runtime 2.1

Qt 3D Studio | Runtime | Qt 3D Studio Runtime: Simple Offscreen Example

Qt 3D Studio Runtime 2.1 Manual

# Qt 3D Studio Runtime: Simple Offscreen Example

Demonstrates using the Q3DSSurfaceViewer class render frames into image files.

This example demonstrates offscreen usage of the Q3DSSurfaceViewer class

## Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

## Description

In this example there is no on-screen user interface. Instead, an OpenGL framebuffer object is created. With the help of a QOffscreenSurface the Qt 3D Studio presentation is rendered into the OpenGL texture. The contents is then read back into a QImage and saved into image files.

Files:

- simpleoffscreen/main.cpp
- simpleoffscreen/simpleoffscreen.pro
- simpleoffscreen/simpleoffscreen.qrc