From d9986892bf0cccc60c53d42dfc556d37226cf5d2 Mon Sep 17 00:00:00 2001 From: Jere Tuliniemi Date: Tue, 18 Feb 2020 10:45:57 +0200 Subject: Add dynamic layer resizing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a boolean property to layer that enables dynamic resizing. The screen space bounds of the layer content are calculated and the layer resized to fit the content and exclude empty space. Padding property is also added that pads the resized layer so that minimal changes to the content won't trigger another resize. Padding can be set by pixel amount or by percentage of the size. To provide accurate 2d bounds, each active objects bounds are projected separately to the screen. A boolean property to only project combined bounds is provided but lowers the accuracy while limiting projections to 8. Known issues: - Temporal AA doesn't work with resizing correctly - Temporal AA leaks GPU memory when resizing - Editor picking doesn't work correctly with dynamically resized layers - Render to viewport doesn't yet support resizing Task-number: QT3DS-4030 Change-Id: Ibc727e078129eee15021cc97105b4cdf9a5a3196 Reviewed-by: Mahmoud Badri Reviewed-by: Tomi Korpipää Reviewed-by: Miikka Heikkinen Reviewed-by: Antti Määttä --- res/DataModelMetadata/en-us/MetaData.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'res') diff --git a/res/DataModelMetadata/en-us/MetaData.xml b/res/DataModelMetadata/en-us/MetaData.xml index 99a5254..b1085d4 100644 --- a/res/DataModelMetadata/en-us/MetaData.xml +++ b/res/DataModelMetadata/en-us/MetaData.xml @@ -307,6 +307,16 @@ + + + + + + + + + + -- cgit v1.2.3