I have a particle Sim, I am copying some geo's on it, everything is oriented nicely, what would be the best way to manipulate the orient so that I can randomize the rotation of my orient vector in z-axis, I've tried creating a new vector based on my up and normal (perpendicular vectors) and double cross it with up to create an axis which I used to multiply the rotation matrix but it has a very slight effect unlike when you do a rotation matrix.
In short how would you rotate a orient vector before copy node.
Trying to manipulate orient
7491 5 1- rizviali110
- Member
- 79 posts
- Joined: 3月 2012
- Offline
- rizviali110
- Member
- 79 posts
- Joined: 3月 2012
- Offline
figured so thought of sharing it here..
you can basically split out each element and manipulate it, I just realized the correct way of visualizing orient is by turning on axis on each point (under visualization style) .. inside vops you can bind orient in and connect vector4 to vector that ll give you all 4 values (1 vector OR 3 floats with an additional float value ), again drop a vector to float and split the xyz axis, now you can pick any axis along which you want to randomly rotate the orient (in my case I use z axis because I am aligning things up based on that), again float to vector 4 and you can add or multiply between the vector to float and this float to vector 4, connect 4th value from the vector 4 to vector , bind it back to orient and done.
you can basically split out each element and manipulate it, I just realized the correct way of visualizing orient is by turning on axis on each point (under visualization style) .. inside vops you can bind orient in and connect vector4 to vector that ll give you all 4 values (1 vector OR 3 floats with an additional float value ), again drop a vector to float and split the xyz axis, now you can pick any axis along which you want to randomly rotate the orient (in my case I use z axis because I am aligning things up based on that), again float to vector 4 and you can add or multiply between the vector to float and this float to vector 4, connect 4th value from the vector 4 to vector , bind it back to orient and done.
FX - Artist / TD
- Film1234
- Member
- 8 posts
- Joined: 4月 2017
- Offline
- jsmack
- Member
- 8035 posts
- Joined: 9月 2011
- Offline
- thexon
- Member
- 86 posts
- Joined: 8月 2010
- Offline
- tamte
- Member
- 8769 posts
- Joined: 7月 2007
- Online
thexonnot sure what exactly you mean by hard or what you are trying to do
always wished there was a more straightforward method of getting rotations to points than orient.
orient is a vector4 attribute,randomizing one axis is easy,but trying out anything more sophistcited(e.g animating point rotations is hard)
if you want to define rotation as angles there is Euler to quaternion VOP or VEX function
or Maketransform VOP and convert to quaternion
VOPs and VEX offer lot of quaternion and matrix functions that alow you to control rotations in simple and precise ways whereas keeping the rotation as euler angles for any operations would have countless issues like flipping, gimbal locks, …
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- Quick Links