Skip to content

Commit 3e4d6e8

Browse files
authored
Merge pull request #3 from STASYA00/dataset-dev
Dataset dev
2 parents 0270dbd + b30a087 commit 3e4d6e8

22 files changed

+1045
-214
lines changed

dataset/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Synthetic Dataset Generator
22

3-
This is a tool that generates synthetic buildings of different typologies. To use it, first of all, you would need [Blender](https://www.blender.org/download/)>=2.90. After installation make sure to add blender as an Environment variable. To use the package:
3+
This is a tool that generates synthetic buildings of different typologies.
4+
The framework is structured as follows. Class Building is composed of several Volumes. This gives the initial envelope of a building. Each Volume can have several Modules applied to it. By modules here we intend small architectural details as balconies, windows, doors, stairs etc. The framework was built to be extendable, so the user can define her/his Building typology, Volume shape and Modules as well as their placement rules.
5+
<img src="imgs/Building_dataset_uml.png" width="600"/>
6+
7+
To use it, first of all, you would need [Blender](https://www.blender.org/download/)>=2.90. After installation make sure to add blender as an Environment variable. To use the package:
48
```
59
git clone https://github.com/CDInstitute/CompoNET
610
```
@@ -12,22 +16,30 @@ Navigate to the ```dataset``` folder.
1216
To create completely synthetic buildings use:
1317

1418
```
15-
blender setup.blend --python generaotr.py
19+
blender setup.blend --python generator.py
1620
```
1721
if you want blender to act n background use:
1822
```
19-
blender --background setup.blend --python generaotr.py
23+
blender --background setup.blend --python generator.py
2024
```
2125

26+
To generate a dataset choose your parameters in ```dataset_config.py``` and run:
27+
```
28+
blender --background setup.blend --python dataset.py
29+
```
2230
Note:
23-
if there are any specific parameters for your buildings (e.g. max and min height / width / length), you can provide them in ```config.py```. Default values adhere to international standards (min) and most common European values (max):
31+
if there are any specific parameters for your buildings (e.g. max and min height / width / length), you can provide them in ```dataset_config.py```. Default values adhere to international standards (min) and most common European values (max):
2432

2533
* minimum height 3m
2634
* minimum length and width 6m
2735
* maximum length, width, height 30 m
2836

2937
Make sure to adjust the camera in setup.blend if you choose different values.
3038

39+
To add textures create a folder Yourmaterialname in Textures and add there Diffuse.png, Displacement.png and Normal.png
40+
41+
Mask rendering is in process:)
42+
3143
## Buildings from existing .shp files:
3244

3345
<img src="imgs/qgis_example1.png" width="900"/>

dataset/Textures/Brick/Diffuse.png

15 MB
Loading
3.85 MB
Loading

dataset/Textures/Brick/Normal.png

29.8 MB
Loading

dataset/Textures/Concrete/Diffuse.png

6.11 MB
Loading
1.7 MB
Loading

dataset/Textures/Concrete/Normal.png

6.05 MB
Loading

dataset/Textures/mask.blend

538 KB
Binary file not shown.

dataset/Textures/mask.blend1

561 KB
Binary file not shown.

dataset/Textures/material.blend

582 KB
Binary file not shown.

0 commit comments

Comments
 (0)