Skip to content

Commit 17d419b

Browse files
committed
[UPDATE] *Sine Wave* Documentation
1 parent 3570652 commit 17d419b

File tree

8 files changed

+56
-24
lines changed

8 files changed

+56
-24
lines changed

Help/images/sinewave.gif

302 KB
Loading
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
= GameDev Sine Wave =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::sop_sine_wave
6+
#icon: VOP/sine
7+
#tags: tech, model, gamedev
8+
9+
""" Deforms a mesh based on a sine wave curve """
10+
11+
Sine Waves are a very common way of animating objects. Flags, Fishes, Waves, Flags, and many other objects can be cheapily animated by just running a sine wave through them.
12+
13+
This saves you from diving into a pointWrangle and setting up a bunch of expressions
14+
15+
[Image:/images/sinewave.gif]
16+
17+
The node lets you specify the primary direction of the sine wave, and then allows you to control two separate waves on moving on the other 2 axis.
18+
Generally speaking the second item is the one you probably want to edit as it's perpendicular to the axis you chose, while the first one is tangential.
19+
20+
21+
@parameters
22+
Group:
23+
Localize the operation to a subset of the geometry
24+
Group Type:
25+
Specify the type of geometry to be isolated
26+
Mask Attribute:
27+
Option to attenuate the effect based on an attribute, commonly done with a vertex color
28+
Axis:
29+
What is the primary axis of the effect.
30+
Speed:
31+
How fast the wave is moving (tangent, perpendicular). Remember to turn on the realtime Toggle on your playbar to see the correct motion.
32+
Offset:
33+
Optional shift on the sine wave in order to not have several on the same cadence. (tangent, perpendicular)
34+
Intensity:
35+
Strength (Amplitude) of the wave (tangent, perpendicular).
36+
Frequency:
37+
How closely together are the humps of the curve (tangent, perpendicular).
38+

hip/sine_wave_demoscene.hip

18.3 KB
Binary file not shown.

otls/gamedev_sop_sine_wave.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Thu Sep 20 15:01:16 2018
13+
Modified: Tue Oct 22 10:18:18 2019
1414

Binary file not shown.

otls/gamedev_sop_sine_wave.hda/gamedev_8_8Sop_1sop__sine__wave/Contents.dir/Contents.mime

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,24 @@ Content-Type: text/plain
3232

3333
sopflags sopflags =
3434
comment ""
35-
position 13.5552 6.777
36-
connectornextid 0
37-
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
35+
position 5.55112e-17 -0.823529
36+
connectornextid 1
37+
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
3838
outputsNamed3
3939
{
4040
}
4141
inputsNamed3
4242
{
43+
0 grid1 0 1 "input1"
4344
}
4445
inputs
4546
{
47+
0 grid1 0 1
4648
}
4749
stat
4850
{
49-
create 1537468955
50-
modify 1537470080
51+
create 1534775186
52+
modify 1571753891
5153
author MAINGEAR@DESKTOP-P98C1VA
5254
access 0777
5355
}
@@ -254,7 +256,7 @@ Content-Type: text/plain
254256
{
255257
"___Version___":{
256258
"type":"string",
257-
"value":"16.5.584"
259+
"value":"17.5.360"
258260
}
259261
}
260262

otls/gamedev_sop_sine_wave.hda/gamedev_8_8Sop_1sop__sine__wave/DialogScript

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
menutoggle {
2323
[ "opmenu -l pointwrangle2 group" ]
2424
}
25-
range { 0 1 }
2625
parmtag { "autoscope" "0000000000000000" }
2726
parmtag { "script_action" "import soputils\nkwargs['geometrytype'] = kwargs['node'].parmTuple('grouptype')\nkwargs['inputindex'] = 0\nsoputils.selectGroupParm(kwargs)" }
2827
parmtag { "script_action_help" "Select geometry from an available viewport." }
@@ -40,7 +39,6 @@
4039
"points" "Points"
4140
"prims" "Primitives"
4241
}
43-
range { 0 1 }
4442
parmtag { "autoscope" "0000000000000000" }
4543
}
4644
parm {
@@ -69,12 +67,6 @@
6967
"2" "Z"
7068
}
7169
}
72-
parm {
73-
name "symmetrical"
74-
label "Symmetrical"
75-
type toggle
76-
default { "0" }
77-
}
7870
parm {
7971
name "speed"
8072
label "Speed"
@@ -104,7 +96,7 @@
10496
label "Frequency"
10597
type vector2
10698
size 2
107-
default { "0" "1" }
99+
default { "1" "1" }
108100
range { -1 1 }
109101
}
110102
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
SaveSpareParms := 0;
21
CheckExternal := 1;
3-
SaveIcon := 1;
4-
GzipContents := 1;
52
ContentsCompressionType := 1;
6-
UnlockOnCreate := 0;
7-
SaveCachedCode := 0;
3+
ForbidOutsideParms := 1;
4+
GzipContents := 1;
85
LockContents := 1;
96
MakeDefault := 1;
10-
UseDSParms := 1;
11-
ForbidOutsideParms := 1;
7+
ParmsFromVfl := 0;
128
PrefixDroppedParmLabel := 0;
139
PrefixDroppedParmName := 0;
14-
ParmsFromVfl := 0;
10+
SaveCachedCode := 0;
11+
SaveIcon := 1;
12+
SaveSpareParms := 0;
13+
UnlockOnCreate := 0;
14+
UseDSParms := 1;

0 commit comments

Comments
 (0)