Jump to content

Creating a particle effect with mapping particle color to speed


warrenhenning

Recommended Posts

I'd like to reproduce an effect from an old Maya particle tutorial in Houdini: http://www.thegnomonworkshop.com/tutorials/speed_color/speed_color.html

 

It's for Maya, so he has a per-particle expression that maps particle speed to a ramp.

 

I found a Vimeo video that does this with Houdini: 

 

 

Basically you just apply a VOP to the particle system that takes velocity, gets speed by taking its length, maps it into the range [0,1] with a Fit node, sends that to a Ramp parameter node, then uses that as diffuse color. That part I get and I can do.

 

My issue is getting the actual particle motion to produce the speed shifts that produce the color shifts -- without the turbulent motion in the attached video, you don't really achieve the effect.

 

I don't want it to be per-particle -- more like some kind of turbulence force that jostles groups of particles up and down as they move through space. The original article doesn't state exactly what it is, unfortunately.

 

I tried drawing a curve with jagged lines in the general direction I wanted it to go in, but it didn't really have the acceleration I wanted, and I couldn't figure out how to control the rate at which it went along the curve.

 

I'm also curious as to how to get the glowing, smoky look in the attached video, but getting the particles in sufficient quantities at small sizes should be something I can figure out if I can get the basic motion and color shifts going.

 

Thanks!

color_test_320x.mov

Link to comment
Share on other sites

I've looked again at that video frame by frame and it looks like the same amount of noise gets applied to each particle.

 

I tried modifying the VEX expression in that POP Force node and it's starting to give me what I want! Thanks so much!

 

Now I just need to figure out how to render it all pretty.

Edited by warrenhenning
Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...