|
|
|
The building appearance module allows the addition of material and texture detail on the surface of a building. Appearances can be organized in themes. A city model can hold and display more than one themes. You define a material using the app:X3DMaterial node and the child nodes app:diffuseColor and app:target. The target node references the id of the polygon in which the appearance is applied.
|
|
|
|
|
|
|
|
```xml
|
|
|
|
<app:X3DMaterial>
|
|
|
|
<app:diffuseColor>1 0.4 0.3</app:diffuseColor>
|
|
|
|
<app:target>#gable_gs-1_poly-1</app:target>
|
|
|
|
</app:X3DMaterial>
|
|
|
|
```
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
You define a texture with the app:ParameterizedTexture node. Then, as child nodes, you define the texture/image location, the MIME type, and the target polygon. To map the texture coordinates on the polygon you use the polygon’s ring(s).
|
|
|
|
|
|
|
|
```xml
|
|
|
|
<app:ParameterizedTexture>
|
|
|
|
<app:imageURI>textures\wall2.jpg</app:imageURI>
|
|
|
|
<app:mimeType>image/jpg</app:mimeType>
|
|
|
|
<app:target uri="#gable_ws-2_poly-1">
|
|
|
|
<app:TexCoordList>
|
|
|
|
<app:textureCoordinates ring="#gable_ws-2_poly-1_ring-1">0 0 1 0 1 1 0 1 0 0</app:textureCoordinates>
|
|
|
|
</app:TexCoordList>
|
|
|
|
</app:target>
|
|
|
|
</app:ParameterizedTexture>
|
|
|
|
```
|
|
|
|
|
|
|
|
You can download both examples here:
|
|
|
|
[appearence_examples.zip](https://transfer.hft-stuttgart.de/gitlab/coors/3d-stadtmodelle/-/blob/master/Buch-3D-Stadtmodelle/Kap-4/appearence_examples.zip)
|
|
|
|
|
|
|
|
The concept of Appearance remains same for all the other modules (CityObjects) of CityGML |