Skip to content

Commit

Permalink
Merge pull request #68 from youmnasahab/Development
Browse files Browse the repository at this point in the history
[UPDATE] **Labs Biome Attribute to Terrain (Alpha)** help file and node graph
  • Loading branch information
baileycc authored Nov 20, 2024
2 parents 8cf4f33 + 53c5155 commit 9880a1c
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 154 deletions.
11 changes: 10 additions & 1 deletion help/nodes/sop/labs--biome_attributes_to_terrain-1.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion otls/biome_attributes_to_terrain.1.0.hda/INDEX__SECTION
Original file line number Diff line number Diff line change
Expand Up @@ -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

Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"values":["20.5.395"
"values":["20.5.409"
],
"indexes":{
"hdaroot/get_name_of_layer1.userdata":0,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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" )
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 9880a1c

Please sign in to comment.