# How to use City Generator?

The entry of City Generator feature is integrated in the drop-down menu of the ‘Terrain’ button in the navigation bar. It supports two ways to fetch city data information.

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F2VC1NHyjQM5EVa4pQFCS%2Fimage.png?alt=media&#x26;token=639feb1a-9cdc-471c-9e08-f847fb28a408" alt=""><figcaption></figcaption></figure>

## 1. D5 Render 3.0-City Feature Overview

The city module in D5 Render 3.0 is designed to quickly and efficiently generate buildings and roads around your site, helping you plot swiftly during the analysis and effect drawing stages of the project. This includes two main modes: White mode and Architectural Style mode.

<table><thead><tr><th width="376.22222900390625">White Mode</th><th>Architectural Style Mode</th></tr></thead><tbody><tr><td><div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FuWu73fraDolZkqtxL8mS%2Fimage.png?alt=media&#x26;token=d008f9ff-ccf1-4c5e-8ca1-4b33bc5a01c6" alt=""><figcaption></figcaption></figure></div></td><td><div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FOmqnUZDoO4ZzWfrUP1Ok%2Fimage.png?alt=media&#x26;token=a3356955-5e8d-459e-970d-42147dd40605" alt=""><figcaption></figcaption></figure></div></td></tr></tbody></table>

* Whether it is in the white model mode or architectural style mode, we support the following operations.
  * **Proportional adjustment** of the overall height of the building group
  * Adjustment of individual building height
  * **Proportional adjustment** of the overall width of the road group
  * Adjustment of single road width
* In the white model mode, we also support the following operations.
  * Adjustment of the overall color, map, and opacity of the building group
  * Adjustments to the overall color, map, and opacity of the road Group
* In the architectural style mode, we have three preset styles: **General, European,** and **Transparent Block.** To ensure your customization requirements are met, we have set adjustable parameters for building groups and individual buildings.
  * In General and European style
    * For the building group, you can randomly generate a new map for the whole building group by adjusting the random map. The Random Texture option enables the generation of new textures for the entire building group. Additionally, the commercial slider adjusts the degree of modernity of the external facades.
    * For a single building, you can adjust the elevation map and roof style of that building, and you can copy the elevation map you like to another building.
  * In Transparent Block Style
    * For building groups, you can adjust the color and opacity of transparent blocks.
    * For a single building, you can adjust the first floor height and the standard floor height to control the vertical positioning of floors within the transparent block.

***

## 2. D5 Render 3.0-Detailed Description of City Feature

### 2.1 Select the city area you want to generate

#### 2.1.1 Select the city area you want to generate in two ways.

{% hint style="info" %}
You can enlarge the window by dragging the right and lower sides of the window. In subsequent updates, we will also support the dragging method to enlarge the window.
{% endhint %}

<table><thead><tr><th width="376.22222900390625">Use default map controls</th><th>Use your own shp file</th></tr></thead><tbody><tr><td><div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F26Gc3hhLhK9ZTXiSxPcA%2Fimage.png?alt=media&#x26;token=c0ce3922-9528-4f81-8f66-1e0d2c82789c" alt=""><figcaption></figcaption></figure></div></td><td><div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FnxIeY49Q332Xid93vpsg%2Fimage.png?alt=media&#x26;token=70718305-7aa6-4a84-9b79-e23a710aab38" alt=""><figcaption></figcaption></figure></div></td></tr></tbody></table>

#### 2.1.2 Enter a city name to lock the city area you want to generate.

Using the following image as an example, we will provide locations based on the name you entered. **Click the location in the drop-down menu** to jump to this area.

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FFQfkLmFJK9eydFGOMcMj%2Fimage.png?alt=media&#x26;token=9b691a50-99e6-4432-9b97-59986514561e" alt=""><figcaption></figcaption></figure>

#### 2.1.3 Select the generated content of the selection area.

By default, building, road, greenery, and water will be downloaded. To include satellite maps, please select the satellite option.

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Fbfq8AUzJ4VSUNelbEz7i%2Fimage.png?alt=media&#x26;token=2136397c-04c2-4348-abbd-6221868745bb" alt=""><figcaption></figcaption></figure>

#### 2.1.4 Generation Time

The generation speed depends on the size of the selected area. For example, processing a 4 km by 4 km area typically requires up to five minutes. Please wait patiently.

### 2.2 City Level

The imported cities are organized into three hierarchical levels: City, Buildings/Roads/Greenery/Water/Satellite/Ground, and individual buildings or roads. Each level allows for the adjustment of specific parameters. The following sections provide a detailed introduction to the two modes: the white model mode and architectural style mode.

| City                                                                                                                                                                                                                                                                                       | Buildings/Roads                                                                                                                                                                                                                                                                            | Individual building/road                                                                                                                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p></p><ul><li>By default, the city import selects the entire city.</li><li>To select the entire city, click on the city name in the left sidebar.</li></ul>                                                                                                                               | <p></p><ul><li>Click on any building to select the entire building group.</li><li>Click on any road to select the entire road group.</li><li>You can also select building and road groups by clicking on the left sidebar.</li></ul>                                                       | <p></p><ul><li>Double-click a building to select it individually.</li><li>Double-click a road to select it individually.</li><li>You can also select individual buildings or roads from the left sidebar.</li></ul>                                                                        |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F8ohYF0BTbKXiZk7huXez%2Fimage.png?alt=media&#x26;token=d01e49a0-71e1-44f5-be92-82f52e2ad0ac" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FTVsQjVRUXMNPL2f5hEER%2Fimage.png?alt=media&#x26;token=d6c7cbdf-96b1-4a8e-a20a-9e9991446583" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FqCxadVcLycN9kJ3wBYZG%2Fimage.png?alt=media&#x26;token=d766683a-5fa5-4b20-8a12-fe8531186be8" alt=""><figcaption></figcaption></figure></div> |
|                                                                                                                                                                                                                                                                                            | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Fk9M0vLZuwYu4TsZTtxTD%2Fimage.png?alt=media&#x26;token=3568d0f9-e1a5-44a4-a5f4-8d077130cbe5" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FzvjVVKxmoYtfWkmqdcN2%2Fimage.png?alt=media&#x26;token=da616c9f-7d54-428e-abed-0e6551dd0326" alt=""><figcaption></figcaption></figure></div> |

### 2.3 White Model Mode

{% hint style="warning" %}
Note: When you select the entire building group, the height value in the right-hand sidebar is a proportional value. For example, if you set it to 50, the height of all buildings in the group will become 50% of their default height. The same applies to roads.
{% endhint %}

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FZM5Hi3KKJVjb2VNBmtGt%2Fimage.png?alt=media&#x26;token=d573bc9c-baab-410b-9f14-37ca0d1080f8" alt=""><figcaption></figcaption></figure>

#### 2.3.1 Switch Between White Model Mode and Architectural Style Mode

The **Style** switch in the right sidebar can be activated when a building group is selected to apply style materials to the entire group. Alternatively, style materials can be assigned to individual buildings when a single building is selected.

| Apply materials to the building group as a whole                                                                                                                                                                                                                                           | Apply materials to a single building                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FEDYFncHVkKWEKi25XPAC%2Fimage.png?alt=media&#x26;token=e5145bd2-9b5e-4f5e-96ea-556d1f213b00" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Feb5hlpN8o6KmTLLxet7J%2Fimage.png?alt=media&#x26;token=c946d4db-8930-45e5-8485-ca4acff80a7a" alt=""><figcaption></figcaption></figure></div> |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Fp6qFV8DmMgxtwG2jhKEP%2Fimage.png?alt=media&#x26;token=9dcbb78d-1656-4856-bc27-f99772bd9c87" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FLLzSZpBk11HtTi2weAK4%2Fimage.png?alt=media&#x26;token=43b95a9c-d1ab-4ce9-abcc-9bb2c6e49ae1" alt=""><figcaption></figcaption></figure></div> |

### 2.4 Architectural Style Mode

#### 2.4.1 Select the button located at the edge of the style list for additional adjustable parameters.

When you select an entire building group, you can apply random textures to change the texture style throughout the city on a large scale.

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FBo7UpAuvhjIVdaHqSucf%2Fimage.png?alt=media&#x26;token=9bf817a0-fe28-40f7-b7ee-d21e38b9a880" alt=""><figcaption></figcaption></figure>

#### 2.4.2 Control of individual architectural styles

When you select an individual building, you retain control over its style.

{% hint style="warning" %}
Note: All buildings with office properties will not change significantly when switching between General and European.
{% endhint %}

| General                                                                                                                                                                                                                                                                                    | European                                                                                                                                                                                                                                                                                   | Transparent Block                                                                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F7n83KFF1lU6R32Mgq5rD%2Fimage.png?alt=media&#x26;token=451bac90-df9b-4100-8ea7-73395b56dc7e" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F9kZ5jZM2LqknXRE5aFS1%2Fimage.png?alt=media&#x26;token=67f45c3c-2695-4974-ba0d-571283fc9813" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FCvFcj8M7mDCBtMO5JriN%2Fimage.png?alt=media&#x26;token=bc387690-c083-40fa-b736-429b6bd3f5c5" alt=""><figcaption></figcaption></figure></div> |

#### 2.4.3 Adjustment to the material of individual building facades

You can adjust the building facade both **randomly** and by **adjusting the current building properties**.

| Random                                                                                                                                                                                                                                                                                                          | Adjust the current building properties                                                                                                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F2vrzWvHM9TxmbYD7jeL5%2Fimage.png?alt=media&#x26;token=4760c552-efff-4a1a-a6c4-8953978c550f" alt=""><figcaption><p>Random Style 1</p></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Fv31duIh7FbnksjiXkV4x%2Fimage.png?alt=media&#x26;token=8a267400-6179-4c3f-bdf7-80d8d8b7ad79" alt=""><figcaption><p>Residential</p></figcaption></figure></div> |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FjdjjaKRRgRMYZgoP4G0o%2Fimage.png?alt=media&#x26;token=13e644c5-f8f0-45db-8b9e-e271313f26c7" alt=""><figcaption><p>Random Style 2</p></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F1Tc2sD5JKLWKBfegv4YA%2Fimage.png?alt=media&#x26;token=8f15845a-307e-4b8d-89b1-6d6777bb095f" alt=""><figcaption><p>Residential</p></figcaption></figure></div> |

You can copy the material of the current building to another building.

| Before copying                                                                                                                                                                                                                                                                             | After copying                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FN2Iy7gdw1etT26O642Xp%2Fimage.png?alt=media&#x26;token=a5457b84-c069-4645-b6b6-1db910d1bdbf" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FiQJWi6sEBnBrbdMNDUs8%2Fimage.png?alt=media&#x26;token=3e9c6835-4bb7-4076-a65a-7683105bcd18" alt=""><figcaption></figcaption></figure></div> |

#### 2.4.4 Adjustments to the roof material of individual buildings

Click this button in the image below to adjust the roof style of the building

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FQuRdXt0zt7IMgMSFL1va%2Fimage.png?alt=media&#x26;token=51bd2c93-a86e-48d9-bb05-994cb3642ab2" alt=""><figcaption></figcaption></figure>

We provide you with three default roof styles, namely: flat roof, green roof and stairwell. Take the building below as an example to see the effect of different styles.

{% hint style="warning" %}
Please note the two points below:

1\. If the roof generated by default is already a stairwell roof, selecting the stairwell option again will not alter the visual display in any way. The same applies to flat roofs.

2\. Whenever you depart from the default roof and select any of the aforementioned roof types, the flat roof option will be automatically selected.
{% endhint %}

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FU8Z1s8ZX20yGnDgA7I8i%2Fimage.png?alt=media&#x26;token=92f293ba-80b1-43cf-a833-4817cf00d9b3" alt=""><figcaption></figcaption></figure>

| Flat Roof                                                                                                                                                                                                                                                                                  | Green Roof                                                                                                                                                                                                                                                                                 | Roof with Stairwell                                                                                                                                                                                                                                                                        | Mix                                                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Fqo6PwbxzEVp8QRJrdsMs%2Fimage.png?alt=media&#x26;token=0f6aafc6-5125-4ac0-82a0-73c9c9eff16e" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F7FbsxQp0u8hyZMg9xJnz%2Fimage.png?alt=media&#x26;token=e5a98c5c-1e66-4da7-9ae0-9b95de3f47b5" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Fq0m8zEP1UpBgubmSTxBj%2Fimage.png?alt=media&#x26;token=346c9129-00cc-4d5d-8cf1-202f29b16e9f" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FhVRSfQkNUhuTkjrrk7iO%2Fimage.png?alt=media&#x26;token=f6150524-8767-479a-9abd-d4794f6aad0e" alt=""><figcaption></figcaption></figure></div> |

***

## City Feature Guide I

### OSM Integration

Integrates the open source data from OpenStreetMap to automatically analyze and generate roads, buildings, terrain, and other topography features, enabling effortless site context creation.

> *Note:*&#x20;
>
> *\*OSM (OpenStreetMap) file is a map data file based on the OpenStreetMap data. These files contain the topography information of roads, buildings, terrain, etc., and are widely used in map drawing and urban planning.*

#### 1. OSM import

* Click Terrain-City, then zoom in and out in the pop-up window to the desired range using the '+' & '-' controls or the mouse wheel.
* Supports quick location of the target area by entering its name or moving the selection box. The area is restricted to **4km\*4km**.
* Supports filtering and importing certain topography features such as buildings, roads, greenland, water, or satellite images.

{% hint style="warning" %}
**Note:**

1. For better performance and efficiency, it is recommended to choose a moderate area to prevent excessive processing time due to large areas.
2. This feature requires online access to OSM data. Please ensure a stable Internet connection for smooth download and analysis of OSM data.
3. Please enable the "FPS Booster for Complex Geometry" when flickers appear after importing the city model.
   {% endhint %}

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FumQ9DeesM3X2v2d5Kjsc%2Fosm%20(1).gif?alt=media&#x26;token=d450e232-f436-4d3b-96a1-01b1eaa87d25" alt=""><figcaption></figcaption></figure>

#### 2. Parameter Editing

After the import is complete, the map model will appear in the viewport, with its topography elements as a group within the object list.

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FkzCpWLL2rmfKr1eDQvS8%2Fimage.png?alt=media&#x26;token=dd0209c0-e8d8-4923-9b45-1dd42beda236" alt=""><figcaption></figcaption></figure>

**Building Group Settings**

* Elevation (based on original heights)\&Random elevation
* Base color\&Base color map
* Opacity option
* UV parameters(including Triplanar and UV Randomizer)
* (Single building within group) Height

**Road Group Settings**

* Width
* Base color\&Base color map
* UV parameters(including Triplanar and UV Randomizer)

**Water, Greenland Groups**

* Base color\&Base color map
* UV parameters(including Triplanar and UV Randomizer)

**Satellite, Ground Groups**

* Base color\&Base color map

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FTmpvZ3S830lASCWneDgg%2F%E5%8F%82%E6%95%B05.gif?alt=media&#x26;token=55fdce17-ec19-47ba-a2f6-46a0971273ad" alt=""><figcaption></figcaption></figure>

#### 3. Delete/replace City group

* Right-click it from the object list to delete the whole city group
* Select the city group from the object list, and click 'Reselect' icon in the right sidebar. Select area in the pop-up window to **recreate**.

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2Fc7Ui3Fa0VN6coSvV6YpK%2Fimage.png?alt=media&#x26;token=46529fac-4a10-44fa-882f-dda82fa29b16" alt=""><figcaption></figcaption></figure>

### Shapefile(.shp) Import

Supports Shapefile import for effortless site context creation.

> *\*.shp file is ESRI Shapefile data format widely used in geographic information systems (GIS). It typically contains vector data, such as points, lines, and polygons to represent geographic features including buildings, roads, rivers, and administrative divisions.*

#### 1. .Shp Import

* Click Terrain-City, and import .shp file in the pop-up window. Supports multi-selection and uploading single file up to **10 MB**. If the size is exceeded, a pop-up error will be reported.
* D5 automatically analyzes the geographic information in the .shp file and generates corresponding 3D models.
* Each imported file is stored as a group in the object list, containing three types of objects: "Buildings," "Roads," and "Undefined." Supports repositioning or rotating the entire group.

{% hint style="warning" %}
**Note:**

1. Shapefile usually contains several related files (e.g. .shp, .shx, .dbf, etc.), please select the main file (.shp) to import.
2. After selecting .shp file, the system will automatically identify and load other related files (such as .shx and .dbf) with the same base name in the same directory. Please ensure that all related files are complete and stored in the same directory for correct reading.
3. Currently supports parsing **polygon** and **polyline** data types, other data types may cause parsing failure.
   {% endhint %}

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FpGJSnATo76UVE7vTRD7V%2Fimage.png?alt=media&#x26;token=f8d3729d-ac6f-4694-a80a-fc232d9687bd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2F1GUDLwMwmu2A2nThmI9Z%2Fshape.gif?alt=media&#x26;token=22ce9133-5efa-45d2-9edd-e72cda34278d" alt=""><figcaption></figcaption></figure>

#### 2. Parameter Editing

**Building and Undefined Group:**

* Elevation (based on original heights)\&Random elevation
* Base color\&Base color map
* Opacity option
* UV parameters(including Triplanar and UV Randomizer)
* (Single building within group) Height

**Road Group:**

* Width
* Base color\&Base color map
* UV parameters(including Triplanar and UV Randomizer)

{% hint style="info" %}
**FAQs**

1. Hover over ‘’Fail’ to display the reason for the failure.

<img src="https://3611830798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjbN1iGmN_HBnj_fyU9%2Fuploads%2FFaeoD38S7OCsUP5OPP6L%2Fimage.png?alt=media&#x26;token=3f2a6b66-4ff7-4242-9165-5c8511625a7a" alt="" data-size="original">

2. Possible causes and solutions for parsing failure:

\- **Unsupported data type:** D5 currently supports polygon and polyline data. Other data formats might fail to be analyzed.

\- **Shapefile content:** Ensure that all related files (such as .shx and .dbf) are complete and placed in the same directory.

\- **Read\&Write permissions:** Ensure that the current Windows account has permissions to access, read, and write the current Shapefile file and its related files, especially if the file is stored on a network drive or shared folder.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.d5render.com/user-guide/tool/how-to-use-city-generator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
