diff --git a/help/nodes/sop/labs--biome_attributes_to_terrain-1.0.txt b/help/nodes/sop/labs--biome_attributes_to_terrain-1.0.txt index 16c263f2a..f55f2a67f 100644 --- a/help/nodes/sop/labs--biome_attributes_to_terrain-1.0.txt +++ b/help/nodes/sop/labs--biome_attributes_to_terrain-1.0.txt @@ -2,7 +2,7 @@ """Assign the base biome attributes onto the terrain """ -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. +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. @parameters @@ -40,6 +40,15 @@ Max: == Default Attributes == +Background: + #id: usedefault + + 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. + + Transparent: Keep empty regions as is, without filling nor overriding the information + + Fill: Fill empty regions with default attribute + Color: #id: biomecolor Color that is applied to the visualizer. diff --git a/otls/biome_attributes_to_terrain.1.0.hda/INDEX__SECTION b/otls/biome_attributes_to_terrain.1.0.hda/INDEX__SECTION index 4a805398e..0195d1c93 100644 --- a/otls/biome_attributes_to_terrain.1.0.hda/INDEX__SECTION +++ b/otls/biome_attributes_to_terrain.1.0.hda/INDEX__SECTION @@ -10,5 +10,5 @@ Inputs: 1 to 3 Subnet: true Python: false Empty: false -Modified: Fri Oct 25 11:53:15 2024 +Modified: Wed Nov 6 16:00:57 2024 diff --git a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.createtimes b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.createtimes index 02f255391..b7dc9f384 100644 --- a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.createtimes +++ b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.createtimes @@ -1,5 +1,4 @@ { - "hdaroot/TERRAIN_RES.def":1709600799, "hdaroot/match_regions_with_terrain.def":1724108989, "hdaroot/get_layer_range.def":1723558830, "hdaroot/rename_to_original_names1.def":1719978004, @@ -61,7 +60,6 @@ "hdaroot/clear_mask3.def":1712188364, "hdaroot/clear_mask4.def":1728659282, "hdaroot/default_biome_info.def":1729288147, - "hdaroot/have_a_same_resolution_each_time.def":1728658403, "hdaroot/blast6.def":1728671537, "hdaroot/check_if_layer.def":1728671097, "hdaroot/cdz.def":1723479351, @@ -94,7 +92,7 @@ "hdaroot/foreach_begin2_metadata4.def":1712094806, "hdaroot/object_merge4.def":1728679180, "hdaroot/check_if_layer_exist.def":1728670474, - "hdaroot.def":1729878776, + "hdaroot.def":1730926819, "hdaroot/inverse_mask.def":1729000628, "hdaroot/replace_mask2.def":1728515582, "hdaroot/if_exists_biomeid.def":1728670371, @@ -110,9 +108,11 @@ "hdaroot/replace_mask1.def":1720485614, "hdaroot/HF1.def":1711567048, "hdaroot/blast1.def":1728671537, + "hdaroot/__netbox4.netboxinit":1730926685, "hdaroot/om_biome_definition.def":1728597261, "hdaroot/om_default_biome.def":1728597148, "hdaroot/compile_begin3.def":1710716536, + "hdaroot/__netbox2.netboxinit":1730926678, "hdaroot/layer_to_read.def":1720457806, "hdaroot/copy_back_height1.def":1708546562, "hdaroot/transfer_precip_temp_biomeid_avgheight4.def":1710358126, diff --git a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.houdini_versions b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.houdini_versions index 65d2f9bba..d034678bd 100644 --- a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.houdini_versions +++ b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.houdini_versions @@ -1,5 +1,5 @@ { - "values":["20.5.395" + "values":["20.5.409" ], "indexes":{ "hdaroot/get_name_of_layer1.userdata":0, @@ -32,7 +32,6 @@ "hdaroot/om_input.userdata":0, "hdaroot/biome_id.userdata":0, "hdaroot/layer_to_read.userdata":0, - "hdaroot/TERRAIN_RES.userdata":0, "hdaroot/object_merge3.userdata":0, "hdaroot/if_default_switch.userdata":0, "hdaroot/get_layer_range.userdata":0, @@ -44,8 +43,8 @@ "hdaroot/blast1.userdata":0, "hdaroot/avg_height.userdata":0, "hdaroot/cdx.userdata":0, - "hdaroot/biome_definitions.userdata":0, "hdaroot/if_exists_biomeid.userdata":0, + "hdaroot/biome_definitions.userdata":0, "hdaroot/soil.userdata":0, "hdaroot/if_biome_display.userdata":0, "hdaroot/object_merge1.userdata":0, diff --git a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.mime b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.mime index 9e84b4442..06e4f8107 100644 --- a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.mime +++ b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.mime @@ -32,7 +32,7 @@ Content-Type: text/plain sopflags sopflags = comment "" -position -40.4723 64.6526 +position 1.38725 -0.888562 connectornextid 0 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 outputsNamed3 @@ -112,11 +112,58 @@ Content-Type: text/plain autofit := 0; color := "UT_Color RGB 0.584 0.776 1 "; comment := Visualizing; - height := 16.823789430803682; + height := 15.785810559812635; minimized := 0; - width := 10.776500017881391; - x_position := 13.49897895749599; - y_position := -16.688862442813644; + width := 10.858678981337844; + x_position := 13.416799994039536; + y_position := -19.930400005960465; +} +{ + create -1 + modify -1 + author youmnas@pubnico + access 0777 +} + +--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY +Content-Disposition: attachment; filename="hdaroot/__netbox2.netboxinit" +Content-Type: text/plain + +2 +2 +{ + autofit := 0; + color := "UT_Color RGB 0.996 0.682 0.682 "; + comment := "add new attributes here"; + height := 1.9473999877929664; + minimized := 0; + width := 4.10509999339059; + x_position := 12.162899999838322; + y_position := 12.941199999189378; +} +{ + create -1 + modify -1 + author youmnas@pubnico + access 0777 +} + +--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY +Content-Disposition: attachment; filename="hdaroot/__netbox4.netboxinit" +Content-Type: text/plain + +2 +2 +{ + autofit := 0; + color := "UT_Color RGB 0.996 0.682 0.682 "; + comment := "add new attributes here"; + height := 0.7777999877929673; + minimized := 0; + owner := __netbox1; + width := 3.2622477239578513; + x_position := -6.647990000161678; + y_position := 20.45799999918938; } { create -1 @@ -2375,6 +2422,12 @@ num_regions [ 8 locks=0 ] ( [ num_regions 0 ] ) color [ 8 locks=0 ] ( [ colorx 0 ] [ colory 0 ] [ colorz 0 ] ) } +--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY +Content-Disposition: attachment; filename="hdaroot/avg_attributes_from_regions1.netbox" +Content-Type: text/plain + +__netbox2 + --HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY Content-Disposition: attachment; filename="hdaroot/avg_attributes_from_regions1.userdata" Content-Type: text/plain @@ -2668,7 +2721,7 @@ pivot [ 0 locks=0 ] ( "centroid" ) viewportlod [ 0 locks=0 ] ( "full" ) addpath [ 0 locks=0 ] ( "on" ) enable1 [ 0 locks=0 ] ( "on" ) -objpath1 [ 0 locks=0 ] ( ../TERRAIN_RES ) +objpath1 [ 0 locks=0 ] ( ../TERRAIN_W_MASK ) group1 [ 0 locks=0 ] ( "" ) expand1 [ 0 locks=0 ] ( "off" ) } @@ -2763,72 +2816,6 @@ Content-Type: text/plain } } ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.init" -Content-Type: text/plain - -type = heightfield_resample -matchesdef = 1 - ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.def" -Content-Type: text/plain - -sopflags sopflags = -comment "" -position -6.5 23.3481 -connectornextid 2 -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 -outputsNamed3 -{ -1 "output1" -} -inputsNamed3 -{ -0 TERRAIN_W_MASK 1 1 "input1" -} -inputs -{ -0 TERRAIN_W_MASK 0 1 -} -stat -{ - create -1 - modify -1 - author youmnas@pubnico - access 0777 -} -color UT_Color RGB 0.8 0.8 0.8 -delscript "" -exprlanguage hscript -end - ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.parm" -Content-Type: text/plain - -{ -version 0.8 -fixedresample [ 0 locks=0 ] ( "on" ) -resscale [ 0 locks=0 ] ( 1 ) -divisionmode [ 0 locks=0 ] ( "size" ) -gridspacing [ 0 locks=0 ] ( 5 ) -gridsamples [ 0 locks=0 ] ( 256 ) -filter [ 0 locks=0 ] ( gauss ) -filterscale [ 0 locks=0 ] ( 0 ) -} - ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/have_a_same_resolution_each_time.userdata" -Content-Type: text/plain - -{ - "___Version___":{ - "type":"string", - "value":"" - } -} - --HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY Content-Disposition: attachment; filename="hdaroot/clear_mask.init" Content-Type: text/plain @@ -6585,6 +6572,12 @@ temperature [ 8 locks=0 ] ( [ temperature 0 ] ) soil [ 8 locks=0 ] ( [ soil 0 ] ) } +--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY +Content-Disposition: attachment; filename="hdaroot/set_defaults.netbox" +Content-Type: text/plain + +__netbox2 + --HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY Content-Disposition: attachment; filename="hdaroot/set_defaults.userdata" Content-Type: text/plain @@ -6977,67 +6970,6 @@ Content-Type: text/plain } } ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.init" -Content-Type: text/plain - -type = null -matchesdef = 1 - ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.def" -Content-Type: text/plain - -sopflags sopflags = -comment "" -position -6.5 22.2454 -connectornextid 2 -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 -outputsNamed3 -{ -1 "output1" -} -inputsNamed3 -{ -0 have_a_same_resolution_each_time 1 1 "input1" -} -inputs -{ -0 have_a_same_resolution_each_time 0 1 -} -stat -{ - create -1 - modify -1 - author Bailey@BaileysPC - access 0777 -} -color UT_Color RGB 0.6 0.7 0.77 -delscript "" -exprlanguage hscript -end - ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.parm" -Content-Type: text/plain - -{ -version 0.8 -copyinput [ 0 locks=0 ] ( "on" ) -cacheinput [ 0 locks=0 ] ( "off" ) -} - ---HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY -Content-Disposition: attachment; filename="hdaroot/TERRAIN_RES.userdata" -Content-Type: text/plain - -{ - "___Version___":{ - "type":"string", - "value":"___EXTERNAL___" - } -} - --HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY Content-Disposition: attachment; filename="hdaroot/heightfield_xform1.init" Content-Type: text/plain @@ -7935,12 +7867,12 @@ outputsNamed3 } inputsNamed3 { -0 TERRAIN_RES 1 1 "input1" +0 TERRAIN_W_MASK 1 1 "input1" 2 default_info 0 1 "input2" } inputs { -0 TERRAIN_RES 0 1 +0 TERRAIN_W_MASK 0 1 1 default_info 0 1 } stat @@ -8192,7 +8124,7 @@ soil [ 8 locks=0 ] ( [ soil 0 ] ) Content-Disposition: attachment; filename="hdaroot/set_defaults_values.netbox" Content-Type: text/plain -__netbox1 +__netbox4 --HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY Content-Disposition: attachment; filename="hdaroot/set_defaults_values.userdata" @@ -11462,7 +11394,7 @@ Content-Type: text/plain Content-Disposition: attachment; filename="hdaroot.order" Content-Type: text/plain -115 +113 output0 IN_BIOME_REGIONS TERRAIN_W_MASK @@ -11492,7 +11424,6 @@ om_default_biome om_default_biome2 om_default_biome3 om_biome_definition -have_a_same_resolution_each_time clear_mask reorder_mask object_merge1 @@ -11542,7 +11473,6 @@ heightfield_flatten_to_avg_height2 copy_back_height2 copy_height_to_avg_height2 inverse_mask -TERRAIN_RES heightfield_xform1 heightfield_xform2 s_if_bigterrain diff --git a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.modtimes b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.modtimes index 24b466abc..b98c6219a 100644 --- a/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.modtimes +++ b/otls/biome_attributes_to_terrain.1.0.hda/labs_8_8Sop_1biome__attributes__to__terrain_8_81.0/Contents.dir/Contents.modtimes @@ -1,10 +1,9 @@ { - "hdaroot/TERRAIN_RES.def":1729288629, "hdaroot/match_regions_with_terrain.def":1729001017, "hdaroot/get_layer_range.def":1729193867, "hdaroot/rename_to_original_names1.def":1729541511, "hdaroot/replace_mask.def":1729193867, - "hdaroot/om_default_biome3.def":1729541511, + "hdaroot/om_default_biome3.def":1730300625, "hdaroot/soil.def":1729000295, "hdaroot/biome_region_msg.def":1728668199, "hdaroot/create_layer_viz.def":1729541511, @@ -42,7 +41,7 @@ "hdaroot/foreach_begin3.def":1729541511, "hdaroot/TERRAIN_W_MASK.def":1729007289, "hdaroot/cdx.def":1729000295, - "hdaroot/__netbox3.netboxinit":1729878797, + "hdaroot/__netbox3.netboxinit":1730926841, "hdaroot/copy_height_to_avg_height1.def":1729001242, "hdaroot/IN_BIOME_REGIONS.def":1728666983, "hdaroot/blast7.def":1729193945, @@ -57,11 +56,10 @@ "hdaroot/reseting_masks.def":1729631530, "hdaroot/if_exists4.def":1729541511, "hdaroot/temp.def":1729000295, - "hdaroot/__netbox1.netboxinit":1729878780, + "hdaroot/__netbox1.netboxinit":1730926824, "hdaroot/clear_mask3.def":1729288615, "hdaroot/clear_mask4.def":1729541511, "hdaroot/default_biome_info.def":1729288447, - "hdaroot/have_a_same_resolution_each_time.def":1729198656, "hdaroot/blast6.def":1729193945, "hdaroot/check_if_layer.def":1729007304, "hdaroot/cdz.def":1729000295, @@ -81,7 +79,7 @@ "hdaroot/remap_realworld.def":1729541511, "hdaroot/get_values.def":1729541511, "hdaroot/s_auto.def":1729541511, - "hdaroot/set_defaults_values.def":1729631623, + "hdaroot/set_defaults_values.def":1730926687, "hdaroot/heightfield_xform2.def":1729541511, "hdaroot/output0.def":1729631704, "hdaroot/blast10.def":1729193945, @@ -94,7 +92,7 @@ "hdaroot/foreach_begin2_metadata4.def":1729541511, "hdaroot/object_merge4.def":1729541511, "hdaroot/check_if_layer_exist.def":1729541511, - "hdaroot.def":1729878789, + "hdaroot.def":1730926856, "hdaroot/inverse_mask.def":1729541511, "hdaroot/replace_mask2.def":1729001189, "hdaroot/if_exists_biomeid.def":1729541511, @@ -110,9 +108,11 @@ "hdaroot/replace_mask1.def":1729541511, "hdaroot/HF1.def":1729001189, "hdaroot/blast1.def":1729193945, + "hdaroot/__netbox4.netboxinit":1730926820, "hdaroot/om_biome_definition.def":1729541511, "hdaroot/om_default_biome.def":1729541511, "hdaroot/compile_begin3.def":1729541511, + "hdaroot/__netbox2.netboxinit":1730926821, "hdaroot/layer_to_read.def":1729541511, "hdaroot/copy_back_height1.def":1729001242, "hdaroot/transfer_precip_temp_biomeid_avgheight4.def":1729541511,