Update README.md
Browse files
README.md
CHANGED
@@ -29,4 +29,31 @@ Arb-Objaverse Dataset
|
|
29 |
|
30 |
## Rendering Scripts
|
31 |
|
32 |
-
Rendering scripts for generating this dataset are available in the `./rendering` directory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
## Rendering Scripts
|
31 |
|
32 |
+
Rendering scripts for generating this dataset are available in the `./rendering` directory. To use these scripts, start by installing the necessary dependencies
|
33 |
+
```
|
34 |
+
pip install blenderproc==2.5.0
|
35 |
+
```
|
36 |
+
|
37 |
+
The environmental HDRs used in this dataset are sourced from [Poly Haven](https://polyhaven.com/hdris). You can download all available environmental HDRs using the following command:
|
38 |
+
```
|
39 |
+
blenderproc download haven haven_dataset --types hdris
|
40 |
+
```
|
41 |
+
Alternatively, you may choose to use your own custom environmental maps.
|
42 |
+
|
43 |
+
Modify `GLB_PATH`, `OUTPUT_DIR` and `HDRI_PATH` variables to point to your respective paths, and then run the following commands:
|
44 |
+
```
|
45 |
+
GLB_PATH=__YOUR_GLB_PATH__
|
46 |
+
OUTPUT_DIR=__YOUR_OUTPUT_DIR__
|
47 |
+
HDRI_PATH=__HDRI_PATH__
|
48 |
+
|
49 |
+
# render the normal and material maps
|
50 |
+
blenderproc run render_normal_orm.py --glb_path ${GLB_PATH} --output_dir ${OUTPUT_DIR}
|
51 |
+
|
52 |
+
# render albedo map
|
53 |
+
blenderproc run render_albedo.py --glb_path ${GLB_PATH} --output_dir ${OUTPUT_DIR}
|
54 |
+
|
55 |
+
# render rgb images illuminated by HDR map
|
56 |
+
blenderproc run render_color.py --glb_path ${GLB_PATH} --hdri_path ${HDRI_PATH} --output_dir ${OUTPUT_DIR}
|
57 |
+
# render rgb images illuminated by point lights
|
58 |
+
blenderproc run render_color.py --glb_path ${GLB_PATH} --output_dir ${OUTPUT_DIR}
|
59 |
+
```
|