37 Commits

Author SHA1 Message Date
Vincent Cloarec
9965eccdce
Template parameter {usage} for XYZ raster and vector tiles (#46731) 2022-01-13 15:11:31 +01:00
NEDJIMAbelgacem
66b481ac36 use QgsProjectDirtyBlocker instead of connect disconnect dance 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
96f7c474bf remove dirtifying the project on hide & show and add proper project dirtyfing when the project changes 2022-01-12 13:46:49 +10:00
Nedjima Belgacem
b88b080777
Camera navigation improvements (#45979)
Fixes two issues in camera navigation:
- Unintuitive camera rotation
- Wrong center point when zooming in/out and rotating

See https://github.com/qgis/QGIS-Enhancement-Proposals/issues/215

This PR employs the following changes:
- The zoom in functionality will zoom in towards the real 3D position of an object in the scene instead the camera view center point used previously.
- The rotation will use the real clicked 3D position of a pixel as well instead of the camera view center point.
- The press and drag behaviour is improved to shift the map in real 3D coordinates instead of some arbitrary measurement (you can see the clicked pixel following the cursor instead of drifting away).
2022-01-05 12:13:25 +01:00
Nedjima Belgacem
826c6a7c36
Disble layer rendering to 3D terrain texture for 3D rendered layers (#44367)
* add optional layer rendering to 3D terrain

* remove terrainLayers from Qgs3DMapSettings

* fix tests

* switch to layer terrain rendering when no 3d renderer is set

* fix mesh tests to handle terrain being disabled
2021-08-11 11:38:59 +02:00
Nedjima Belgacem
298a4514ec
Make 2d terrain rendering optional (#43489)
First part of https://github.com/qgis/QGIS-Enhancement-Proposals/issues/215
2021-07-14 10:09:48 +02:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Alessandro Pasotti
7b2fc4c1f8 More doxy nonsense, pt 2 2021-02-19 08:15:29 +10:00
Nyall Dawson
7f3b40772a Fix build 2021-01-14 08:15:57 +10:00
Belgacem
0318ff768d add movement speed combobox 2021-01-14 08:15:57 +10:00
Belgacem
44d39becf3 initial fly mode implementation 2021-01-14 08:15:57 +10:00
NEDJIMAbelgacem
a5329d4f19 Add FPS counter check box 2020-12-08 16:28:49 +01:00
nirvn
9dee613a2a [FEATURE][3d] Orthographic projection support for 3D scenes 2020-11-19 15:30:30 +07:00
NEDJIMAbelgacem
810dc369f1 remove unused mTransform 2020-11-10 15:39:26 +01:00
NEDJIMAbelgacem
23b723e5a0 inital terrain elevation offset implementation 2020-11-08 16:58:57 +01:00
NEDJIMAbelgacem
a25f04641b adress reviews 2020-11-06 09:59:41 +01:00
NEDJIMAbelgacem
6f542e7ea0 moved debug settings to the advanced tab and fixed CI problems 2020-11-06 09:59:41 +01:00
NEDJIMAbelgacem
c3ef5cc324 Added configuration to debug shadow and forward depth textures 2020-11-06 09:59:41 +01:00
NEDJIMAbelgacem
1e9e4d7dc1 Started adding depth and shadow map textures preview debugging 2020-11-06 09:59:41 +01:00
NEDJIMAbelgacem
e9ac7311c4 address reviews 2020-11-06 09:59:41 +01:00
NEDJIMAbelgacem
8768b7e3e2 fix spelling mistake 2020-11-06 09:59:41 +01:00
NEDJIMAbelgacem
d1d347d13d add EDL distance 2020-11-06 09:59:41 +01:00
NEDJIMAbelgacem
618807ed2f Initial EDL implementation 2020-11-06 09:59:41 +01:00
Nedjima Belgacem
85e444e1d6
[3D] [Feature] Shadow rendering (#38448)
* Initial post processing render pass implementation

* Got shadows with directional lights working good enough

* Make the shadows more configurable

* Trying to reduce peter panning

* Add licence

* banned banned_keywords_check

* trying to remove renderStateSet memory leak

* removing include <Qt3DExtras>

* Add documentation

* remove the use of setFilterMode when using QFilterLayer

* Fixing docs

* Fix shadow rendering checkbox

* Added y coordinates for view extent

* Added shadow bias parameter

* Added shadow map texture resolution parameter

* Addressing reviews

* Set the shadow rendering parameters automatically

* Add QLayer components individually if QT_VERSION < QT_5_10

* Hide depth texture preview quad

* Remove unused member

* Fix spell check

* Remove stepType property from shadowBiasSpinBox

* Disable shadow render pass if the shadow rendering is not activated

* Clarify maximum shadow rendering distance documentation

* Add value range for shadow bias

* Delete .bom file

* Clarify the usefullness of maximum shadow rendering distance

* remove unused stuff in shaders

* Make the inverted camera matrices passed as parameters

* Move post processing shaders parameters into the post processing entity constructor

* refactor how shadow rendering update into 1 function

* Fix spelling

* Fix Save As Image tool

* Improve UI according to suggessions

* add missing docs

* remove QAbstractSpinBox::DefaultStepType
2020-09-10 15:02:03 +02:00
Harrissou Sant-anna
09844a7dab Move the skybox enabling checkbox to the groupbox widget
Whether skybox is enabled is now saved as part of the 3D Map settings
2020-08-21 13:00:52 +10:00
NEDJIMAbelgacem
d7787f2477 Use path resolver's read/writePath()
Remove QSkyboxEntity include
Use deleteLater() instead of delete
Remove unneeded todo
Add \since to skyboxSettings in qgs3dmapsettings.h
2020-08-06 01:09:20 +01:00
NEDJIMAbelgacem
58d280be60 Fix merge conflict
Merge branch 'master' into skybox-feature
2020-08-04 08:33:53 +01:00
NEDJIMAbelgacem
4ac66d08c8 Add SIP_NO_FILE and fix bindings 2020-08-04 07:07:51 +01:00
Nyall Dawson
4f34b8a7f8 [3d][api] Split api from specifying 3d map layers to render from api
for specifying terrain layers to render

Previously the one method was used for both, which made it very
difficult to have a different set of layers used for terrain
generation vs 3d entity generation (you had to manually create a map
theme, which is very messy)
2020-08-03 13:13:11 +10:00
NEDJIMAbelgacem
b39547e508 Delete previous skybox implementation and save skybox settings as a DOM element 2020-08-02 00:31:41 +01:00
NEDJIMAbelgacem
f5726e52d5 skybox settings UI 2020-08-01 23:50:25 +01:00
Nyall Dawson
573ace14bf [3d][feature] Add option to show light source origins
If enabled, shows a sphere at light source origins, allowing easier repositioning
and placement of light sources relative to the scene contents

Fixes #37726
2020-07-16 07:52:12 +10:00
nedjima
7d8a03b1fe Executed sipify_all script to fix the setDirectionalLights header definition 2020-06-20 04:31:10 +10:00
nedjima
9556bd2147 [Feature] directional lights support for QGIS 3D 2020-06-20 04:31:10 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Martin Dobias
520246174a Fixes to SIP finally working 2020-04-19 08:14:49 +10:00
Martin Dobias
cad7cf4a06 Add QgsLayoutItem3DMap to PyQGIS [not working yet] 2020-04-19 08:14:49 +10:00