Importante
A tradução é um esforço comunitário você pode contribuir. Esta página está atualmente traduzida em 42.62%.
14.4. Criando símbolos 3D
O Gerenciador de Estilo te ajuda a criar e armazenar símbolos 3D para todo tipo de geometria a ser renderizada no :ref:`3D map view
A partir dos demais itens, habilite o Símbolos 3D e expanda o menu de botões para criar:
14.4.1. Camadas de Ponto
Você pode definir diferentes tipos de Forma 3D para usar para símbolos de ponto. Eles são definidos principalmente por suas dimensões, cuja unidade se refere ao SRC do projeto. Os tipos disponíveis são:
Esfera definida por um Raio
Cilindro definido por um Raio e Comprimento
Cubo definido por um Tamanho
Cone definido por um Raio superior, um Raio inferior e um Comprimento
Plano definido por um Tamanho
Toro definido por um Raio e um Raio menor
Modelo 3D, usando um arquivo de modelo 3D: formatos de frente de onda suportados incluem
.obj
,.glTF
e.fbx
. Os modelos podem ser um arquivo em disco, um URL remoto ou :ref:`embedded in the project . Os modelos criados pela comunidade são compartilhados no QGIS Hub em https://plugins.qgis.org/wavefronts.Quadro de avisos, definido pela Altura do quadro de avisos e pelo Símbolo do quadro de avisos (geralmente baseado em um :ref:`marker symbol `). O símbolo terá um tamanho estável. Conveniente para visualizar Formas de nuvens de pontos 3D.
The Altitude clamping can be set to Absolute, Relative or Terrain. The Absolute setting can be used when height values of the 3d vectors are provided as absolute measures from 0. Relative and Terrain add given elevation values to the underlying terrain elevation.
The shading properties can be defined.
Under the Transformations frame, you can apply affine transformation to the symbol:
Translation to move objects in x, y and z axis.
Scale to resize the 3D shapes
Rotation around the x-, y- and z-axis.
14.4.2. Camadas de linha
Beneath the Width and Height settings you can define the Extrusion of the vector lines. If the lines do not have z-values, you can define the 3d volumes with this setting.
With the Altitude clamping you define the position of the 3D lines relative to the underlying terrain surface, if you have included raster elevation data or other 3D vectors.
The Altitude binding defines how the feature is clamped to the terrain. Either every Vertex of the feature will be clamped to the terrain or this will be done by the Centroid.
The shading properties can be defined.
14.4.3. Camadas de Ppolígonos
As for the other ones, Height can be defined in CRS units. You can also use the button to overwrite the value with a custom expression, a variable or an entry of the attribute table
Again, Extrusion is possible for missing z-values. Also for the extrusion you can use the button in order to use the values of the vector layer and have different results for each polygon:
The Altitude clamping, Altitude binding can be defined as explained above.
The Culling mode to apply to the symbol; it can be:
No Culling: this can help to avoid seemingly missing surfaces when polygonZ/multipatch data do not have consistent ordering of vertices (e.g. all clock-wise or counter clock-wise)
Front
or Back
The Rendered facade determines the faces to display. Possible values are No facades, Walls, Roofs, or Walls and roofs
Add back faces: for each triangle, creates both front and back face with correct normals - at the expense of increased number of vertex data. This option can be used to fix shading issues (e.g., due to data with inconsistent order of vertices).
Invert normals (experimental): can be useful for fixing clockwise/counter-clockwise face vertex orders
The shading properties can be defined.
Display of the Edges of the symbols can be enabled and assigned a Width and Color.
Dica
Combination for best rendering of 3D data
Culling mode, Add back faces and Invert normals
are all meant to fix the look of 3D data if it does not look right.
Typically when loading some data, it is best to first try culling mode=back
and add back faces=disabled
- it is the most efficient.
If the rendering does not look correct, try add back faces=enabled
and
keep culling mode=no culling
. Other combinations are more advanced and
useful only in some scenarios based on how mixed up is the input dataset.
14.4.4. Shading the texture
Shading helps you reveal 3d details of objects which may otherwise be hidden due to the scene’s lighting. Ultimately, it’s an easier material to work with as you don’t need to worry about setting up appropriate scene lighting in order to visualise features.
Various techniques of shading are used in QGIS and their availability depends on the geometry type of the symbol:
Realistic (Phong): describes the way a surface reflects light as a combination of the Diffuse reflection of rough surfaces with the Specular reflection of shiny surfaces (Shininess). It also includes an Ambient option to account for the small amount of light that is scattered about the entire scene. Use the Opacity slider to render semi-transparent objects in 3D. Read more at https://en.wikipedia.org/wiki/Phong_reflection_model#Description
Realistic Textured (Phong): same as the Realistic (Phong) except that an image is used as Diffuse Texture. The image can be a file on disk, a remote URL or embedded in the project. The Texture scale and Texture rotation are required. Use the Opacity slider to render semi-transparent objects in 3D.
CAD (Gooch): this technique allows shading to occur only in mid-tones so that edge lines and highlights remain visually prominent. Along with the Diffuse, Specular, Shininess options, you need to provide a Warm color (for surface facing toward the light) and a Cool color (for the ones facing away). Also, the relative contributions to the cool and warm colors by the diffuse color are controlled by Alpha and Beta properties respectively. See also https://en.wikipedia.org/wiki/Gooch_shading
Embedded Textures with 3D models shape
14.4.5. Application example
To go through the settings explained above you can have a look at https://app.merginmaps.com/projects/saber/luxembourg/tree.