Jump to content

Recommended Posts

Hello, i added a simple Spline und copied some rectangels on it. (PICTURE 1)

Now i wanted to blend the normals, so that the bottom rectangels always have the direction of the ground (PICTURE 2)

Does anyone know how i can do this?

i posted my hip file aswell

best

1.PNG

3.png

spline.hipnc

Share this post


Link to post
Share on other sites

You can blend values (i.e. @N vs. @up) by adding to multiplications with each other:

@N = (@N * (1 - mix) ) + (@up * mix);

mix and 1 - mix are controlling how much influence @N and @up get on each point. So after polyframe you could put this into a wrangle:

float mix = @ptnum / float(@numpt - 1);
vector up = {0, 1, 0};
@N = (@N * (1 - mix) ) + (up * mix);
@N = normalize(@N);

 

blending_normals.hipnc

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

×