Translate instance according to each particle velocity axis

   5483   7   1
User Avatar
Member
948 posts
Joined: April 2008
Offline
I have some particles moving over a path using position POP and also use a velocity node to orient them according to their head direction on the path.
So I wanted to add to them a little move like a slightly noise, so I tried to use a translation POP node with a expression on the X axis to make them zigzag a little, but the problem is they do it according to the world axis not according to each particle local axis.

Is there a way to to that?

Thanks

Attachments:
Particle ZigZag.hip (109.1 KB)

https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
7710 posts
Joined: July 2005
Offline
If you use the Drive Particles > Noise tool, you'll note that it simply uses a Force POP with parameters on its Noise tab.
User Avatar
Member
948 posts
Joined: April 2008
Offline
Hummm

I'll Try that.

I'll post later the results.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: April 2008
Offline
It doesn't work with the particles being driven by the position tool.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: April 2008
Offline
Any more tips?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
856 posts
Joined: Oct. 2008
Offline
Try playing with the normals? $NX, $NY, $NZ

Make sure the source geometry has normals, add them with a Point SOP.
--
Jobless
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
The help on the Transform POP is a bit misleading. It gets you all excited when it talks about points having a local orientation then lets you down in reality when it just adds a world transform to the points and it “translates the local coordinate system”. In itself this is handy but…

I built a quick VOP POP network to do what you want: move the points in the local frame of reference in x.
Add a proper up vector with UpVector POP.
In VOPs use a Cross Product VOP to build the X direction vector from the v and up.
Use the x vector to modulate the point's position with some noise.
Done.

You can do the same for the y up direction.

Now you are free to use the Rotation POP to bank them along the z velocity direction and the points will move according to the local cooordinates.

Attachments:
particle_zigzag_115.02.hip (137.3 KB)

There's at least one school like the old school!
User Avatar
Member
948 posts
Joined: April 2008
Offline
WOW!!!

Thanks man, that helps a lot, that is exactly what I was after.

I made a ramp that controls the Z angle by life so I can bank the particles at any part of the path, thats cool.

Do you know any way to add rotation to the other axes following the local orientation as well?

I tried to use the rotation POP but I couldn't find a way to make it work.

But thanks you very much everybody for the help.

Attachments:
particle_zigzag_115.02_526.hipnc (149.4 KB)

https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links