qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.58k stars 3k forks source link

Data-based 3D feature visualization #26977

Open qgib opened 6 years ago

qgib commented 6 years ago

Author Name: JW van Aalst (@jwva) Original Redmine Issue: 19147

Redmine category:3d


In layer properties, 3D-view settings, 3D-renderer, only fixed values are possible for visualization settings. This means that 3D features cannot now be rendered based on data fields. Please add the possibility of using data fields for all 3D visualization settings, not just fixed values.

roya0045 commented 4 years ago

@nyalldawson As you are working on 3D things, do you think this could be done or is there limitations to the engine that cannot prevent this? I'd be glad to do a base if there is nothing preventing this other than the lack of code. Or maybe not all aspects can be data-defined but possibly the shapes.

nyalldawson commented 4 years ago

@roya0045 that's not trivial, unfortunately

P-SLISSE commented 2 years ago

Hello, I have nearly the same feature request : Support for Field/Expression to set 3D feature visualization 3D Feature rendering based on DataBase field support is highly necessary.

Usecase 1 : I have a 3D Tree Model (OBJ format) which is defined in a 1mx1mx1m bounding box. With only this unique model, i can render in 3D all my trees with real dimensions if only i can use 3 databased field (scaleX, scaleY, scaleZ) for the 3 rendering variables (Echelle:Scale) X Y Z; i cannot set manually this variables for thousands features.

Usecase 2 : We use 3D cartographic view in order to control topographic measurements made in 3D by surveyors crews. For exemple, Roadlights are set in Z and also oriented. For a proper rendering in 3D view, i need to set the rendering variable Rotation Y with the value set in the field 'orientation' of my data. Otherwise, all roadlights are shown in 3D oriented to the North.

As you see in this usecases, datasources are 2D or 3D points who represent the position where to place the 3DModel and datafields are used for variables settings (translation, scale and rotation) I hope this improvement is now possible. Support of Field is already possible for polygons (3D extrusion can be set from datafield) and i use it in order to represent buildings in 3Dview by their building extrusion.

Thanks all for your interest and your help; and sorry for my english Glad to hear and for further discussion

3DStyling_DBfieldsupport .

kannes commented 2 years ago

Is this still an open request? Lots of parameters can be set from data nowadays using data defined overrides. E. g. height, extrusion or colors for polygons.

roya0045 commented 2 years ago

Is this still an open request? Lots of parameters can be set from data nowadays using data defined overrides. E. g. height, extrusion or colors for polygons.

Can the color of 3D features be different for each feature? As far as I remember it applied to the whole layer. Didn't retry in some time.

saberraz commented 2 years ago

Since QGIS 3.18! https://www.qgis.org/en/site/forusers/visualchangelog318/index.html#feature-data-defined-3d-material-colors

P-SLISSE commented 9 months ago

Is this still an open request? Lots of parameters can be set from data nowadays using data defined overrides. E. g. height, extrusion or colors for polygons.

Hi, The request is still an opened one. in QGis 3.34.3, the 3D fields Translation/Scale/Rotation cannot be set with attribute value. In my opinion, it is a huge miss. If we have this fonctionnality, we can display in the 3D view a 3Dscene containing trees, city furniture with scale and orientation as in the real world. With this fonctionnality, a world of possibilities would be available.

Thanks to the 3D developpers team who did incredible job since QGis 3.0