aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/lightgeometry.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QmlDesigner: QmlPuppet as standalone toolMarco Bubke2022-11-091-165/+0
| | | | | | | | | | | | | The qmlpuppet is now a standalone tool. There is new a library too with the communication code. That is shared between the designer and the puppet. It's in a .cmake file so it can be included by the standalone tool if it is not part of a designer build. Task-number: QDS-5879 Change-Id: I2bc2a0b463fbb3e0c8c23d182abfd368cf87e968 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Use SPDX license identifiersLucie GĂ©rard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlPuppet: Change custom 3D geometries to use public APIMiikka Heikkinen2021-06-291-41/+12
| | | | | | | | | | Custom geometries often break and code becomes convoluted with version ifdeffing, so refactor the custom geometries to use public geometry api, which works both in Qt5 and Qt6. Fixes: QDS-4611 Change-Id: I2d78776a14d5c8153b52806842254dbedb5de83d Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* QmlPuppet: Fix runtime warnings in 3D editorMiikka Heikkinen2021-06-111-0/+1
| | | | | | | Fixes: QDS-4491 Change-Id: I462e165ef59111f70c928b7d652ade99c5b3c0d0 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* QmlPuppet: Fix custom 3D geometries for Qt 6.1Miikka Heikkinen2021-02-051-2/+10
| | | | | | | Private API puppet uses for custom 3D geometries has changed. Change-Id: Ie9f2052b04399db6f9643aba6319f6e95df1c15b Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* QmlDesigner: Port 3D edit view to Qt6Miikka Heikkinen2020-10-201-0/+13
| | | | | | Task-number: QDS-2899 Change-Id: Iedbe5e8561e5ab71ef32922e69da43cd3cc57e90 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add fade control handle to point light gizmoMiikka Heikkinen2020-06-091-10/+2
| | | | | | | | | Also changed the point light mesh to just a single camera plane ring based on discussions with UX. Change-Id: If9e847440570bbe87483194c0b417cf09c7084a2 Fixes: QDS-2041 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add missing camera plane ring to point light modelMiikka Heikkinen2020-06-091-0/+5
| | | | | | Task-number: QDS-2037 Change-Id: Ica5a7ec2983da251d2ab75565120423288de27a2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Update light gizmosMiikka Heikkinen2020-06-091-98/+59
| | | | | | | | | | | | | | | | | | | | Directional light model was made constant size, as it doesn't have actual physical presence. Spot light cone now shows the cone angle correctly and the length of the cone is calculated so that 5% of the brightness reaches the center of the cone bottom. Area light rectangle matches the area of the light. Point light mesh changed to three perpendicular circles. Same formula for size of the circles used as for spotlight length. All light types share a common brightness indicator arrow. Task-number: QDS-2037 Change-Id: I534dbcda9cfa2a7768c2537868ba83818979b250 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add a simple wireframe cone model for edit 3d spotlightMiikka Heikkinen2020-03-161-21/+24
| | | | | | | Change-Id: I013e4fc2d77b49694d887e8cadc05584a904ed62 Fixes: QDS-1819 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Edit 3D view icon updateMiikka Heikkinen2020-03-131-1/+26
| | | | | | | | Added icon for spot light gizmo and updated directional light icon. Removed icons that are no longer needed on puppet side. Change-Id: Id1e72c80e122250f7edc8a69a0e5720e755b96fc Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* QmlDesigner: Add light meshes to edit 3d viewMiikka Heikkinen2020-03-121-0/+208
Change-Id: I996498fde14510fc78c729f56cb8d46b28b233bb Fixes: QDS-1634 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>