Skip to content

Commit 9880a1c

Browse files
authored
Merge pull request #68 from youmnasahab/Development
[UPDATE] **Labs Biome Attribute to Terrain (Alpha)** help file and node graph
2 parents 8cf4f33 + 53c5155 commit 9880a1c

File tree

6 files changed

+92
-154
lines changed

6 files changed

+92
-154
lines changed

help/nodes/sop/labs--biome_attributes_to_terrain-1.0.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""Assign the base biome attributes onto the terrain """
44

5-
This nodes takes the default attributes and/or the dictionary attribute `biome_definition` of the second input and transfers them to the terrain depending on the biome regions of the third input.
5+
This node takes the default attributes and/or the dictionary attribute `biome_definition` of the second input and transfers them to the terrain depending on the biome regions of the third input. It also fills the areas with no biome regions with a background, created from default biome parameter.
66

77
@parameters
88

@@ -40,6 +40,15 @@ Max:
4040

4141
== Default Attributes ==
4242

43+
Background:
44+
#id: usedefault
45+
46+
This node checks if the `output layers` already exist on input and create new ones when needed. When all the layers are already present, this gives you the possibility to change the background mode to transparent, not using the biome default parameters.
47+
48+
Transparent: Keep empty regions as is, without filling nor overriding the information
49+
50+
Fill: Fill empty regions with default attribute
51+
4352
Color:
4453
#id: biomecolor
4554
Color that is applied to the visualizer.

otls/biome_attributes_to_terrain.1.0.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 3
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Fri Oct 25 11:53:15 2024
13+
Modified: Wed Nov 6 16:00:57 2024
1414

otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.createtimes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"hdaroot/TERRAIN_RES.def":1709600799,
32
"hdaroot/match_regions_with_terrain.def":1724108989,
43
"hdaroot/get_layer_range.def":1723558830,
54
"hdaroot/rename_to_original_names1.def":1719978004,
@@ -61,7 +60,6 @@
6160
"hdaroot/clear_mask3.def":1712188364,
6261
"hdaroot/clear_mask4.def":1728659282,
6362
"hdaroot/default_biome_info.def":1729288147,
64-
"hdaroot/have_a_same_resolution_each_time.def":1728658403,
6563
"hdaroot/blast6.def":1728671537,
6664
"hdaroot/check_if_layer.def":1728671097,
6765
"hdaroot/cdz.def":1723479351,
@@ -94,7 +92,7 @@
9492
"hdaroot/foreach_begin2_metadata4.def":1712094806,
9593
"hdaroot/object_merge4.def":1728679180,
9694
"hdaroot/check_if_layer_exist.def":1728670474,
97-
"hdaroot.def":1729878776,
95+
"hdaroot.def":1730926819,
9896
"hdaroot/inverse_mask.def":1729000628,
9997
"hdaroot/replace_mask2.def":1728515582,
10098
"hdaroot/if_exists_biomeid.def":1728670371,
@@ -110,9 +108,11 @@
110108
"hdaroot/replace_mask1.def":1720485614,
111109
"hdaroot/HF1.def":1711567048,
112110
"hdaroot/blast1.def":1728671537,
111+
"hdaroot/__netbox4.netboxinit":1730926685,
113112
"hdaroot/om_biome_definition.def":1728597261,
114113
"hdaroot/om_default_biome.def":1728597148,
115114
"hdaroot/compile_begin3.def":1710716536,
115+
"hdaroot/__netbox2.netboxinit":1730926678,
116116
"hdaroot/layer_to_read.def":1720457806,
117117
"hdaroot/copy_back_height1.def":1708546562,
118118
"hdaroot/transfer_precip_temp_biomeid_avgheight4.def":1710358126,

otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.houdini_versions

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"values":["20.5.395"
2+
"values":["20.5.409"
33
],
44
"indexes":{
55
"hdaroot/get_name_of_layer1.userdata":0,
@@ -32,7 +32,6 @@
3232
"hdaroot/om_input.userdata":0,
3333
"hdaroot/biome_id.userdata":0,
3434
"hdaroot/layer_to_read.userdata":0,
35-
"hdaroot/TERRAIN_RES.userdata":0,
3635
"hdaroot/object_merge3.userdata":0,
3736
"hdaroot/if_default_switch.userdata":0,
3837
"hdaroot/get_layer_range.userdata":0,
@@ -44,8 +43,8 @@
4443
"hdaroot/blast1.userdata":0,
4544
"hdaroot/avg_height.userdata":0,
4645
"hdaroot/cdx.userdata":0,
47-
"hdaroot/biome_definitions.userdata":0,
4846
"hdaroot/if_exists_biomeid.userdata":0,
47+
"hdaroot/biome_definitions.userdata":0,
4948
"hdaroot/soil.userdata":0,
5049
"hdaroot/if_biome_display.userdata":0,
5150
"hdaroot/object_merge1.userdata":0,

otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.mime

Lines changed: 69 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Content-Type: text/plain
3232

3333
sopflags sopflags =
3434
comment ""
35-
position -40.4723 64.6526
35+
position 1.38725 -0.888562
3636
connectornextid 0
3737
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
3838
outputsNamed3
@@ -112,11 +112,58 @@ Content-Type: text/plain
112112
autofit := 0;
113113
color := "UT_Color RGB 0.584 0.776 1 ";
114114
comment := Visualizing;
115-
height := 16.823789430803682;
115+
height := 15.785810559812635;
116116
minimized := 0;
117-
width := 10.776500017881391;
118-
x_position := 13.49897895749599;
119-
y_position := -16.688862442813644;
117+
width := 10.858678981337844;
118+
x_position := 13.416799994039536;
119+
y_position := -19.930400005960465;
120+
}
121+
{
122+
create -1
123+
modify -1
124+
author youmnas@pubnico
125+
access 0777
126+
}
127+
128+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
129+
Content-Disposition: attachment; filename="hdaroot/__netbox2.netboxinit"
130+
Content-Type: text/plain
131+
132+
2
133+
2
134+
{
135+
autofit := 0;
136+
color := "UT_Color RGB 0.996 0.682 0.682 ";
137+
comment := "add new attributes here";
138+
height := 1.9473999877929664;
139+
minimized := 0;
140+
width := 4.10509999339059;
141+
x_position := 12.162899999838322;
142+
y_position := 12.941199999189378;
143+
}
144+
{
145+
create -1
146+
modify -1
147+
author youmnas@pubnico
148+
access 0777
149+
}
150+
151+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
152+
Content-Disposition: attachment; filename="hdaroot/__netbox4.netboxinit"
153+
Content-Type: text/plain
154+
155+
2
156+
2
157+
{
158+
autofit := 0;
159+
color := "UT_Color RGB 0.996 0.682 0.682 ";
160+
comment := "add new attributes here";
161+
height := 0.7777999877929673;
162+
minimized := 0;
163+
owner := __netbox1;
164+
width := 3.2622477239578513;
165+
x_position := -6.647990000161678;
166+
y_position := 20.45799999918938;
120167
}
121168
{
122169
create -1
@@ -2375,6 +2422,12 @@ num_regions [ 8 locks=0 ] ( [ num_regions 0 ] )
23752422
color [ 8 locks=0 ] ( [ colorx 0 ] [ colory 0 ] [ colorz 0 ] )
23762423
}
23772424

2425+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2426+
Content-Disposition: attachment; filename="hdaroot/avg_attributes_from_regions1.netbox"
2427+
Content-Type: text/plain
2428+
2429+
__netbox2
2430+
23782431
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
23792432
Content-Disposition: attachment; filename="hdaroot/avg_attributes_from_regions1.userdata"
23802433
Content-Type: text/plain
@@ -2668,7 +2721,7 @@ pivot [ 0 locks=0 ] ( "centroid" )
26682721
viewportlod [ 0 locks=0 ] ( "full" )
26692722
addpath [ 0 locks=0 ] ( "on" )
26702723
enable1 [ 0 locks=0 ] ( "on" )
2671-
objpath1 [ 0 locks=0 ] ( ../TERRAIN_RES )
2724+
objpath1 [ 0 locks=0 ] ( ../TERRAIN_W_MASK )
26722725
group1 [ 0 locks=0 ] ( "" )
26732726
expand1 [ 0 locks=0 ] ( "off" )
26742727
}
@@ -2763,72 +2816,6 @@ Content-Type: text/plain
27632816
}
27642817
}
27652818

2766-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2767-
Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.init"
2768-
Content-Type: text/plain
2769-
2770-
type = heightfield_resample
2771-
matchesdef = 1
2772-
2773-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2774-
Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.def"
2775-
Content-Type: text/plain
2776-
2777-
sopflags sopflags =
2778-
comment ""
2779-
position -6.5 23.3481
2780-
connectornextid 2
2781-
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload on savedata off compress on colordefault on exposed on
2782-
outputsNamed3
2783-
{
2784-
1 "output1"
2785-
}
2786-
inputsNamed3
2787-
{
2788-
0 TERRAIN_W_MASK 1 1 "input1"
2789-
}
2790-
inputs
2791-
{
2792-
0 TERRAIN_W_MASK 0 1
2793-
}
2794-
stat
2795-
{
2796-
create -1
2797-
modify -1
2798-
author youmnas@pubnico
2799-
access 0777
2800-
}
2801-
color UT_Color RGB 0.8 0.8 0.8
2802-
delscript ""
2803-
exprlanguage hscript
2804-
end
2805-
2806-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2807-
Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.parm"
2808-
Content-Type: text/plain
2809-
2810-
{
2811-
version 0.8
2812-
fixedresample [ 0 locks=0 ] ( "on" )
2813-
resscale [ 0 locks=0 ] ( 1 )
2814-
divisionmode [ 0 locks=0 ] ( "size" )
2815-
gridspacing [ 0 locks=0 ] ( 5 )
2816-
gridsamples [ 0 locks=0 ] ( 256 )
2817-
filter [ 0 locks=0 ] ( gauss )
2818-
filterscale [ 0 locks=0 ] ( 0 )
2819-
}
2820-
2821-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
2822-
Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.userdata"
2823-
Content-Type: text/plain
2824-
2825-
{
2826-
"___Version___":{
2827-
"type":"string",
2828-
"value":""
2829-
}
2830-
}
2831-
28322819
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
28332820
Content-Disposition: attachment; filename="hdaroot/clear_mask.init"
28342821
Content-Type: text/plain
@@ -6585,6 +6572,12 @@ temperature [ 8 locks=0 ] ( [ temperature 0 ] )
65856572
soil [ 8 locks=0 ] ( [ soil 0 ] )
65866573
}
65876574

6575+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
6576+
Content-Disposition: attachment; filename="hdaroot/set_defaults.netbox"
6577+
Content-Type: text/plain
6578+
6579+
__netbox2
6580+
65886581
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
65896582
Content-Disposition: attachment; filename="hdaroot/set_defaults.userdata"
65906583
Content-Type: text/plain
@@ -6977,67 +6970,6 @@ Content-Type: text/plain
69776970
}
69786971
}
69796972

6980-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
6981-
Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.init"
6982-
Content-Type: text/plain
6983-
6984-
type = null
6985-
matchesdef = 1
6986-
6987-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
6988-
Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.def"
6989-
Content-Type: text/plain
6990-
6991-
sopflags sopflags =
6992-
comment ""
6993-
position -6.5 22.2454
6994-
connectornextid 2
6995-
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
6996-
outputsNamed3
6997-
{
6998-
1 "output1"
6999-
}
7000-
inputsNamed3
7001-
{
7002-
0 have_a_same_resolution_each_time 1 1 "input1"
7003-
}
7004-
inputs
7005-
{
7006-
0 have_a_same_resolution_each_time 0 1
7007-
}
7008-
stat
7009-
{
7010-
create -1
7011-
modify -1
7012-
author Bailey@BaileysPC
7013-
access 0777
7014-
}
7015-
color UT_Color RGB 0.6 0.7 0.77
7016-
delscript ""
7017-
exprlanguage hscript
7018-
end
7019-
7020-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
7021-
Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.parm"
7022-
Content-Type: text/plain
7023-
7024-
{
7025-
version 0.8
7026-
copyinput [ 0 locks=0 ] ( "on" )
7027-
cacheinput [ 0 locks=0 ] ( "off" )
7028-
}
7029-
7030-
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
7031-
Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.userdata"
7032-
Content-Type: text/plain
7033-
7034-
{
7035-
"___Version___":{
7036-
"type":"string",
7037-
"value":"___EXTERNAL___"
7038-
}
7039-
}
7040-
70416973
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
70426974
Content-Disposition: attachment; filename="hdaroot/heightfield_xform1.init"
70436975
Content-Type: text/plain
@@ -7935,12 +7867,12 @@ outputsNamed3
79357867
}
79367868
inputsNamed3
79377869
{
7938-
0 TERRAIN_RES 1 1 "input1"
7870+
0 TERRAIN_W_MASK 1 1 "input1"
79397871
2 default_info 0 1 "input2"
79407872
}
79417873
inputs
79427874
{
7943-
0 TERRAIN_RES 0 1
7875+
0 TERRAIN_W_MASK 0 1
79447876
1 default_info 0 1
79457877
}
79467878
stat
@@ -8192,7 +8124,7 @@ soil [ 8 locks=0 ] ( [ soil 0 ] )
81928124
Content-Disposition: attachment; filename="hdaroot/set_defaults_values.netbox"
81938125
Content-Type: text/plain
81948126

8195-
__netbox1
8127+
__netbox4
81968128

81978129
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
81988130
Content-Disposition: attachment; filename="hdaroot/set_defaults_values.userdata"
@@ -11462,7 +11394,7 @@ Content-Type: text/plain
1146211394
Content-Disposition: attachment; filename="hdaroot.order"
1146311395
Content-Type: text/plain
1146411396

11465-
115
11397+
113
1146611398
output0
1146711399
IN_BIOME_REGIONS
1146811400
TERRAIN_W_MASK
@@ -11492,7 +11424,6 @@ om_default_biome
1149211424
om_default_biome2
1149311425
om_default_biome3
1149411426
om_biome_definition
11495-
have_a_same_resolution_each_time
1149611427
clear_mask
1149711428
reorder_mask
1149811429
object_merge1
@@ -11542,7 +11473,6 @@ heightfield_flatten_to_avg_height2
1154211473
copy_back_height2
1154311474
copy_height_to_avg_height2
1154411475
inverse_mask
11545-
TERRAIN_RES
1154611476
heightfield_xform1
1154711477
heightfield_xform2
1154811478
s_if_bigterrain

0 commit comments

Comments
 (0)