Jump to content

Recommended Posts

Hello, 

 

I've been learning Houdini for a couple of weeks now and I'm trying to learn about particles more at the moment. I'm currently trying to create a grid of falling particles that look like a pixel sorting effect. (please see attached images and video link). My thought process has been that I need to create a grid to emit the particles and then attached trials that have a colour gradient to the trials with a falloff. I want the particle trails die out at different times and for the trials them selves to slowly fade away much like the trail of a shooting star or a light trail (hopefully the below examples clarify what I'm trying to say). I've been trying to figure this out and I've looked around the forum but can't find an example.

So far all I can get is my particles to fall the way I want with trails that have the colour gradient connected but that's all. Can anyone suggest/show me a way to create the look i'm after? I realise this might be a really rookie thing to do but from my own research I'm currently lost and need some hel

Thanks in Advance! 

Current Scene File:  Particles_Field_04.hip

Examples:

https://www.shutterstock.com/video/clip-1008242815-particles-glitter-rain-awards-abstract-background-loop

1.jpg.14449256fbc4a5233e1d3d55746a1396.jpga7cd3574341b769d3228ad3820d4c585.jpg.29d97dc0f9a7cdb89d02d4c885fded9b.jpg

Share this post


Link to post
Share on other sites

a lots of ways.... simple and fast way
at pointwrangle after the add note ithe code 
 

 

int prim_points[];
float umap;
addattrib(0, "point", "umap", 0.0);
prim_points = primpoints(0, @primnum);

for ( int i = 0; i < len(prim_points); i++ ){
    
    umap = float(i) / (len(prim_points) - 1);
    setattrib(0, "point", "curveu", prim_points[i], 0, umap, "set");
}

 then you can add a "color" node  -->  set it ramp from attribute with curveu as attr.  

Share this post


Link to post
Share on other sites
12 hours ago, schwungsau said:

a lots of ways.... simple and fast way
at pointwrangle after the add note ithe code 
 

 


int prim_points[];
float umap;
addattrib(0, "point", "umap", 0.0);
prim_points = primpoints(0, @primnum);

for ( int i = 0; i < len(prim_points); i++ ){
    
    umap = float(i) / (len(prim_points) - 1);
    setattrib(0, "point", "curveu", prim_points[i], 0, umap, "set");
}

 then you can add a "color" node  -->  set it ramp from attribute with curveu as attr.  

Thanks  Schwungsau I'll give it a crack when i get a break at work! 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×