diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2019-08-06 12:51:05 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-08-27 12:10:09 +0200 |
commit | 1fcbcf06da29a1fadd64f1fd53f6cac27f417fe1 (patch) | |
tree | 5344980743a7c8ddf084e0b7491793bda993800c /examples/qt3d/qt3d.pro | |
parent | 5344d87197c83feb7d00931a6756eea870be953c (diff) |
Scene3D: introduce compositingMode (FBO or Underlay)
The default compositing mode is FBO.
One of the problematic aspects of Scene3D is its round trip
through a FBO, which is moderately expensive on low-end hardware,
although it makes it a fully fledged Qt Quick 2 item. If one
wants MSAA then things are even worse, as an intermediate MS'ed
FBO is needed, then resolving into the final one, whose color
texture is then sampled.
However, there's a significant use case for which these FBOs
can be avoided, and that's the case of a 3D scene "below" other
QQ2 content. In this setup, Qt3D can simply render to the
screen, driven by QQ2; then QQ2 can draw on top.
(It's the typical "underlay" scenario.) This can be enabled by setting
the compositing mode to Underlay
[ChangeLog] Scene3D add compositingMode property. Allows underlay rendering.
Task-number: QTBUG-74977
Change-Id: I1ec5f5d60eab45835dbdb2596a7bf1b2ac3624e0
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'examples/qt3d/qt3d.pro')
-rw-r--r-- | examples/qt3d/qt3d.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/qt3d/qt3d.pro b/examples/qt3d/qt3d.pro index 776f52ced..2f8d624af 100644 --- a/examples/qt3d/qt3d.pro +++ b/examples/qt3d/qt3d.pro @@ -20,7 +20,8 @@ SUBDIRS += \ simplecustommaterial \ scene2d \ phong-cubes \ - pbr-materials + pbr-materials \ + controlsunderlay qtHaveModule(multimedia): SUBDIRS += audio-visualizer-qml |