Skip to content

Commit d5963c1

Browse files
committed
[IGNORE] Swizzle Nodes Docs
1 parent 102edcd commit d5963c1

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
= GameDev Coord Swizzle Quaternion =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::coord_swizzle_quaternion::1.0
6+
#icon:
7+
#tags: tech, model
8+
9+
""" Swizzles Quaternions in order to change rotation spaces """
10+
11+
Quaternions are amongst the darkest of dark magic in the real of math. Swizzling Quaternions is a problem usually reserved to masochists. This node makes the mere human deal with changing spaces in Quaternions easily.
12+
13+
14+
15+
@parameters
16+
src:
17+
Input Quaterion
18+
Flip Quaternion:
19+
Negate any combination of the quaternion values.
20+
Invert:
21+
For reversing the negations.
22+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
= GameDev Coord Swizzle Vector =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::coord_swizzle_vector::1.0
6+
#icon:
7+
#tags: tech, model
8+
9+
""" Reorders Vector Components """
10+
11+
Swizzling is the act of reordering the components of a vector.
12+
13+
This is common in changing coordinate systems, where the Z axis becomes the Y axis.
14+
15+
This node will allow you to both swizzle the components, and also flip individual components.
16+
17+
TIP:
18+
If you're going from Y up to Z up you want to swizzle Y and Z and Flip the X to -X
19+
20+
@parameters
21+
Coordinates:
22+
Positional values to be changed.
23+
Swizzle Coord:
24+
Swizzel all the possible XYZ combinations.
25+
Flip Coord:
26+
Inverse any of the possible XYZ combinations.
27+
Invert:
28+
For reversing the negations.
29+

hip/polydeform_demoscene.hip

4.82 MB
Binary file not shown.

otls/cop_coord_swizzle_vector.hda

-11 Bytes
Binary file not shown.
54 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)