Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.3.1, 6.3.2
-
None
Description
QRenderCapture behaves differently when using the RHI renderer than when using the OpenGL renderer.
- The OpenGL renderer only captures the rendered content of the 3D scene, while the RHI renderer captures the entire root QML item.
- The 'rect' argument of the requestCapture function does not work with the RHI renderer.
Step to reproduce:
- Apply rendercapture-qml.patch to qt3d/tests/manual/rendercapture-qml
- Build and run the rendercapture-qml
The entire loot item is captured, including the red circle
Using the OpenGL renderer with environment variables QSG_RHI_BACKEND=opengl and QT3D_RENDERER=opengl works as expected.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-106865 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
439808,3 | RHI: Set default render target for RenderCapture | dev | qt/qt3d | Status: MERGED | +2 | 0 |
440208,2 | RHI: Set default render target for RenderCapture | 6.4 | qt/qt3d | Status: MERGED | +2 | 0 |