Skip to content

Commit 929cfe6

Browse files
Merge pull request #155 from sideeffects/docs
Merge branch 'docs' into Development
2 parents d89bafd + 4defd00 commit 929cfe6

File tree

128 files changed

+2103
-17462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2103
-17462
lines changed

otls/gamedev_curve_branches.hda/gamedev_8_8Sop_1sop__curve__branches/Contents.dir/Contents.mime

Lines changed: 0 additions & 6075 deletions
Large diffs are not rendered by default.

otls/gamedev_curve_branches.hda/gamedev_8_8Sop_1sop__curve__branches/DialogScript

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
name gamedev::sop_curve_branches
55
script gamedev::sop_curve_branches
6-
label "GameDev Simple L System"
6+
label "GameDev Curve Branches"
77

88
help {
99
""
@@ -20,6 +20,7 @@
2020
type color
2121
size 3
2222
default { "0" "1" "0" }
23+
help "Color of the generated branches."
2324
range { 0 1 }
2425
parmtag { "autoscope" "0000000000000000" }
2526
}
@@ -29,6 +30,7 @@
2930
type float
3031
joinnext
3132
default { "0" }
33+
help "Minimum distance along input curve(s) where branches can start growing. A value of 0.5 will mean branches can only grow from halfway down the input curve."
3234
range { 0! 1! }
3335
parmtag { "autoscope" "0000000000000000" }
3436
}
@@ -37,6 +39,7 @@
3739
label "Finish"
3840
type float
3941
default { "1" }
42+
help "Maximum distance along input curve(s) where branches can start growing. A value of 0.7 will mean branches will stop being generated at 70% of the original curve input."
4043
range { 0! 1! }
4144
parmtag { "autoscope" "0000000000000000" }
4245
}
@@ -46,6 +49,7 @@
4649
type integer
4750
joinnext
4851
default { "4" }
52+
help "Number of branches to generate per input curve."
4953
range { 1 100 }
5054
parmtag { "autoscope" "0000000000000000" }
5155
}
@@ -54,6 +58,7 @@
5458
label "Variation +-"
5559
type integer
5660
default { "0" }
61+
help "Add randomness to the amount of child curves generated per input curve."
5762
range { 1 100 }
5863
parmtag { "autoscope" "0000000000000000" }
5964
}
@@ -63,6 +68,7 @@
6368
type float
6469
joinnext
6570
default { "0.2" }
71+
help "Length of the generated branches."
6672
range { 0 10 }
6773
parmtag { "autoscope" "0000000000000000" }
6874
}
@@ -71,6 +77,7 @@
7177
label "Variation +- "
7278
type float
7379
default { "0" }
80+
help "Length variation per generated branch."
7481
range { 0 10 }
7582
parmtag { "autoscope" "0000000000000000" }
7683
}
@@ -80,27 +87,32 @@
8087
type float
8188
joinnext
8289
default { "3" }
90+
help "Offset added to Y component of branch direction vector. A value of 0 will make branches grow perpendicular to the input curves."
8391
range { -100 100 }
92+
parmtag { "autoscope" "0000000000000000" }
8493
}
8594
parm {
8695
name "vertical_offset_variation"
8796
label "Variation +-"
8897
type float
8998
default { "0" }
99+
help "Amount of random offset of the vertical offset."
90100
range { -100 100 }
91101
}
92102
parm {
93103
name "mirror_x"
94104
label "Mirror X "
95105
type toggle
96106
default { "0" }
107+
help "Duplicate "
97108
}
98109
parm {
99110
name "spread"
100111
label "Spread"
101112
type float
102113
joinnext
103114
default { "1" }
115+
help "Amount that branches twist around the input curves. A value of 0 means all branches will stay on the same plane (relative to the input curve), low spread values will spiral branches around the input curves, high spread values look more organic and chaotic."
104116
range { 0 1 }
105117
parmtag { "autoscope" "0000000000000000" }
106118
}
@@ -117,18 +129,21 @@
117129
label "Curl"
118130
type float
119131
default { "0" }
132+
help "Apply a curl effect to the branches, approximating the look of vines and organic plant shapes."
120133
range { -1 1 }
121134
parmtag { "autoscope" "0000000000000000" }
122135
}
123136
groupsimple {
124137
name "folder0"
125138
label "Noise"
139+
grouptag { "group_type" "simple" }
126140

127141
parm {
128142
name "noise_intensity"
129143
label "Intensity"
130144
type ramp_flt
131145
default { "2" }
146+
help "Control where noise gets applied along the length of the branch. The left side of the ramp represents the start of the branc, the right side represents the end."
132147
range { 1! 10 }
133148
parmtag { "autoscope" "0000000000000000" }
134149
parmtag { "rampfloatdefault" "1pos ( 0 ) 1value ( 0 ) 1interp ( linear ) 2pos ( 0.55176931619644165 ) 2value ( 0.63333332538604736 ) 2interp ( linear )" }
@@ -138,6 +153,7 @@
138153
label "Amplitude"
139154
type float
140155
default { "0.05" }
156+
help "Amplitude of noise, multiplied against the Intensity ramp."
141157
range { -1 1 }
142158
parmtag { "autoscope" "0000000000000000" }
143159
parmtag { "parmvop" "1" }
@@ -149,6 +165,7 @@
149165
type float
150166
size 3
151167
default { "20" "20" "20" }
168+
help "Frequency of the noise."
152169
range { 0 10 }
153170
parmtag { "autoscope" "0000000000000000" }
154171
parmtag { "parmvop" "1" }
@@ -160,6 +177,7 @@
160177
type float
161178
size 3
162179
default { "0" "0" "0" }
180+
help "Offset of noise."
163181
range { 0 10 }
164182
parmtag { "autoscope" "0000000000000000" }
165183
parmtag { "parmvop" "1" }

otls/gamedev_curve_branches.hda/gamedev_8_8Sop_1sop__curve__branches/ExtraFileOptions

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"OnCreated/Cursor":{
33
"type":"intarray",
4-
"value":[5,25]
4+
"value":[1,1]
55
},
66
"OnCreated/IsExpr":{
77
"type":"bool",
@@ -18,5 +18,25 @@
1818
"OnCreated/Source":{
1919
"type":"string",
2020
"value":""
21+
},
22+
"branch_v02.gif/Cursor":{
23+
"type":"intarray",
24+
"value":[0,0]
25+
},
26+
"branch_v02.gif/IsExpr":{
27+
"type":"bool",
28+
"value":false
29+
},
30+
"branch_v02.gif/IsPython":{
31+
"type":"bool",
32+
"value":false
33+
},
34+
"branch_v02.gif/IsScript":{
35+
"type":"bool",
36+
"value":false
37+
},
38+
"branch_v02.gif/Source":{
39+
"type":"string",
40+
"value":"C:/Users/139002/Pictures/branch_v02.gif"
2141
}
2242
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
= GameDev Curve Branches =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::sop_curve_branches
6+
#icon:
7+
#tags: tech, model
8+
9+
""" Scatters curves over curves, with many intuitive controls to go from clean geometric branches to organic vines. Duplicates of this sop can be chained together for recursive growth, approximating the look of L-Systems but much more controllable. """
10+
11+
:video:
12+
#src:opdef:.?curvebranchv02.mp4
13+
14+
@parameters
15+
Color:
16+
Color of the generated branches.
17+
Start:
18+
Minimum distance along input curve(s) where branches can start growing. A value of 0.5 will mean branches can only grow from halfway down the input curve.
19+
Finish:
20+
Maximum distance along input curve(s) where branches can start growing. A value of 0.7 will mean branches will stop being generated at 70% of the original curve input.
21+
Number of Children:
22+
Number of branches to generate per input curve.
23+
Variation +-:
24+
Amount of random offset of the vertical offset.
25+
Length:
26+
Length of the generated branches.
27+
Variation +- :
28+
Length variation per generated branch.
29+
Vertical Offset:
30+
Offset added to Y component of branch direction vector. A value of 0 will make branches grow perpendicular to the input curves.
31+
Mirror X :
32+
Duplicate
33+
Spread:
34+
Amount that branches twist around the input curves. A value of 0 means all branches will stay on the same plane (relative to the input curve), low spread values will spiral branches around the input curves, high spread values look more organic and chaotic.
35+
Curl:
36+
Apply a curl effect to the branches, approximating the look of vines and organic plant shapes.
37+
== Noise ==
38+
Intensity:
39+
Control where noise gets applied along the length of the branch. The left side of the ramp represents the start of the branc, the right side represents the end.
40+
Amplitude:
41+
Amplitude of noise, multiplied against the Intensity ramp.
42+
Frequency:
43+
Frequency of the noise.
44+
Offset:
45+
Offset of noise.
46+

otls/gamedev_curve_branches.hda/gamedev_8_8Sop_1sop__curve__branches/Sections.list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Contents.gz Contents.gz
99
IconSVG IconSVG
1010
OnCreated OnCreated
1111
ExtraFileOptions ExtraFileOptions
12+
branch__v02.gif branch_v02.gif
13+
curvebranchv02.mp4 curvebranchv02.mp4
1.13 MB
Loading

otls/gamedev_sop_dissolve_flat_edges.hda/gamedev_8_8Sop_1sop__dissolve__flat__edges/DialogScript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
label "Max Edge Angle"
2020
type angle
2121
default { "0" }
22+
help "Threshold of 'flatness'. 0 means edges have to be perfectly flat, higher numbers will find more edges and dissolve them."
2223
range { 0 360 }
2324
parmtag { "autoscope" "0000000000000000" }
2425
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
= GameDev Dissolve Flat Edges =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::sop_dissolve_flat_edges
6+
#icon:
7+
#tags: tech, model
8+
9+
""" Remove edges on flat surfaces. """
10+
11+
:video:
12+
#src:opdef:.?dissolveflat.mp4
13+
14+
This hda will identify edges that are flat, and dissolve them. The default behavior is to only find perfectly flat edges. The max edge angle slider allows a threshold of 'flatness', so edges which are mostly flat can also be dissolved, or the threshold can be set higher to obtain different effects, say artisticly driven decimation.
15+
16+
@parameters
17+
Max Edge Angle:
18+
Threshold of 'flatness'. 0 means edges have to be perfectly flat, higher numbers will find more edges and dissolve them.
19+

otls/gamedev_sop_dissolve_flat_edges.hda/gamedev_8_8Sop_1sop__dissolve__flat__edges/Sections.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Contents.gz Contents.gz
99
IconSVG IconSVG
1010
OnCreated OnCreated
1111
ExtraFileOptions ExtraFileOptions
12+
dissolveflat.mp4 dissolveflat.mp4

0 commit comments

Comments
 (0)