Spaces:
Running
on
Zero
Running
on
Zero
thuzhaowang
commited on
Commit
•
5e17843
1
Parent(s):
ff723b2
fix config
Browse files- configs/infinigen/surface_registry.gin +67 -0
- scripts/generate.py +1 -1
- scripts/prepare_data.py +1 -1
configs/infinigen/surface_registry.gin
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
surface.registry.ground_collection = [
|
2 |
+
('mud', 2),
|
3 |
+
('sand', 1),
|
4 |
+
('cobble_stone', 1),
|
5 |
+
('cracked_ground', 1),
|
6 |
+
('dirt', 1),
|
7 |
+
('stone', 1),
|
8 |
+
('soil', 1),
|
9 |
+
('chunkyrock', 0),
|
10 |
+
]
|
11 |
+
|
12 |
+
surface.registry.beach = [
|
13 |
+
('sand', 10),
|
14 |
+
('cracked_ground', 1),
|
15 |
+
('dirt', 1),
|
16 |
+
('stone', 1),
|
17 |
+
('soil', 1),
|
18 |
+
]
|
19 |
+
|
20 |
+
surface.registry.eroded = [
|
21 |
+
('sand', 1),
|
22 |
+
('cracked_ground', 1),
|
23 |
+
('dirt', 1),
|
24 |
+
('stone', 1),
|
25 |
+
('soil', 1),
|
26 |
+
]
|
27 |
+
|
28 |
+
surface.registry.mountain_collection = [
|
29 |
+
('mountain', 10),
|
30 |
+
("sandstone", 2),
|
31 |
+
]
|
32 |
+
|
33 |
+
surface.registry.rock_collection = [
|
34 |
+
# ('aluminumdisp2tut', 0.5),
|
35 |
+
('stone', 1),
|
36 |
+
('mountain', 5),
|
37 |
+
# ('ice', 1),
|
38 |
+
]
|
39 |
+
|
40 |
+
surface.registry.liquid_collection = [
|
41 |
+
('water', 0.95),
|
42 |
+
# ('lava', 0.05),
|
43 |
+
]
|
44 |
+
|
45 |
+
surface.registry.lava = [
|
46 |
+
('lava', 1),
|
47 |
+
]
|
48 |
+
|
49 |
+
surface.registry.snow = [
|
50 |
+
('snow', 1),
|
51 |
+
]
|
52 |
+
|
53 |
+
surface.registry.atmosphere = [
|
54 |
+
('atmosphere_light_haze', 1),
|
55 |
+
]
|
56 |
+
|
57 |
+
surface.registry.bark = [
|
58 |
+
('bark_birch', 0.1),
|
59 |
+
('bark_random', 0.9),
|
60 |
+
#('wood', 0.01),
|
61 |
+
]
|
62 |
+
|
63 |
+
surface.registry.greenery = [
|
64 |
+
('simple_greenery', 1),
|
65 |
+
]
|
66 |
+
|
67 |
+
surface.registry.smooth_categories = 0
|
scripts/generate.py
CHANGED
@@ -44,7 +44,7 @@ def generate(generator, params, seed, mesh_save_path, no_mod=False, no_ground=Tr
|
|
44 |
bpy.ops.outliner.orphans_purge()
|
45 |
gc.collect()
|
46 |
# configurate infinigen
|
47 |
-
gin.add_config_file_search_path("./
|
48 |
gin.parse_config_files_and_bindings(
|
49 |
["configs/infinigen/base.gin"],
|
50 |
bindings=[],
|
|
|
44 |
bpy.ops.outliner.orphans_purge()
|
45 |
gc.collect()
|
46 |
# configurate infinigen
|
47 |
+
gin.add_config_file_search_path("./configs/infinigen")
|
48 |
gin.parse_config_files_and_bindings(
|
49 |
["configs/infinigen/base.gin"],
|
50 |
bindings=[],
|
scripts/prepare_data.py
CHANGED
@@ -134,7 +134,7 @@ def generate(generator, params, seed, save_dir=None, save_name=None,
|
|
134 |
bpy.ops.outliner.orphans_purge()
|
135 |
gc.collect()
|
136 |
# configurate infinigen
|
137 |
-
gin.add_config_file_search_path("
|
138 |
gin.parse_config_files_and_bindings(
|
139 |
["configs/infinigen/base.gin"],
|
140 |
bindings=[],
|
|
|
134 |
bpy.ops.outliner.orphans_purge()
|
135 |
gc.collect()
|
136 |
# configurate infinigen
|
137 |
+
gin.add_config_file_search_path("configs/infinigen")
|
138 |
gin.parse_config_files_and_bindings(
|
139 |
["configs/infinigen/base.gin"],
|
140 |
bindings=[],
|