Unlock Version
Lock Version
We have extended the existing support for showing marker and text annotations as 3D billboards. Now you ca show picture annotation items as 3d billboards too.
There is an option to show these as either view independent, fixed size billboards (just like markers and text), or as perspective correct sizes (eg like any other 3d item you can zoom in or out of).
The sizes of the 3d billboards are set manually, allowing the size to be set to one that makes sense in the 3d map (as opposed to strictly following the 2d size)
This implements the ideas discussed in PR 66112:
The old 3d symbology widgets had too much information and parameters, We reduced the number of displayed options and moved them into the advanced tab. This is achieved with 3 main changes:
This adds a new "From 2D Symbology" entry to the 3D symbology combox. This allows to create a new 3D symbology from the 2D one. If a 3d symbology already exists, it is replaced by this a new 3d symbology. This can be useful to quickly replicate 2D rules/categories or have similar colors between the 2D and 3D representations.
If the current 2D symbology style does not have a 3D equivalent, the entry is disabled.
For example, if the 2D symbology is "Categorized", it creates a 3D "Categorized" symbology, copies each category and tries to create 3d symbols based on the 3D one.
As there is no perfect match between the 2D symbols properties and the 3D symbol properties, only simple properties can be copied:
| 2D Property | 3D Equivalent |
|---|---|
| Fill color | QgsMaterialSettings::setColorsFromBase(fillColor) |
| Opacity | Opacity |
| Point size | Sphere radius |
| Square size | Cube size |
| Triangle size | Cone length / topRadius / BottomRadius |
| Rule-based styles | Each 2D rule becomes a 3D rule with the mapped properties |
| categorized styles | Each 2D category becomes a 3D category with the mapped properties |
This feature was funded by Stadt Frankfurt am Main**
This feature was developed by Jean Felder
Original PR: #66112
Also remove/deprecated the 3D point symbol version of these settings.
These settings do not belong at the symbol level point symbols are reusable across different datasets -- their configuration becomes generic, and no longer tied to one particular layer's Z value structure.
In order to handle existing projects (where the symbol's clamping may differ from the elevation properties clamping) we add a new flag for hasLegacyAltitudeClamping() which is only true for symbols read from xml with the now deprecated setting. The old UI settings are only shown now for symbols in existing projects which have this legacy property set.
Import PR from Github into Entries