OpenGL Interop
The OpenGL Interop demo covers how we can do an RPR rendering (with Northstar as the offline renderer) within an OpenGL app.
The difficulty of this task is to mix the real-time camera movement inside OpenGL with the offline renderer.
To achieve that, apply the key points:
- Use of - RPR_CONTEXT_RENDER_UPDATE_CALLBACK_*parameter in the RPR context.
- Setting the correct value of - g_batchSizedepending on the user feedback we want.
- Possibility to use - RPR_CONTEXT_PREVIEW=Xfor quick rendering. The higher X, the faster RPR rendering, but also more pixelated.
- rprContextRender() is executed in a separate thread in order to keep OpenGL app inputs/outputs in real time.