Jump to content
Sign in to follow this  
zzlettle

how to get particle points angle difference between previous frame

Recommended Posts

hi

 just learn houdini particle.

i am a beginner

in this project i use particles points then use copy to points node , boxs to make up model.

like this picture

1.png.66f865a68453e8feddfd661ba02f9af7.png

 

however the problem is 

i find some box jitter very unacceptable

so i Calculate the points distance between previous frame in solver node

if the distance less than 0.05,then the point do not move

this way make the points jitter less

however i need calculate the angle distance between previous frame also

but

i do not know how to calculate the rotation difference

let`s say ,if the rotation difference less then 0.1,then the point do not rotate.

bellow is the project file

point_jitter.hip 

 

thanks for your help

 

 

Share this post


Link to post
Share on other sites

what you can do is to create a 3x3 transform matrix that will tell houdini what orientation has your instance from your normal

 

vector y = v@N;
vector x = normalize(cross(y, set(0, 1, 0)));
vector z = normalize(cross(x, y));

3@transform = set(x, y, z);

 

Houdini has priorities for points orientation from higher to lower priority it is :

matrix3 transform

vector4 orient

and then a combinaison of vectors like : v@N / up or v@v / up

 

the main problem i see is points jittering not really points orientation

i attached you a file, hope it is what you intended

point_jitter.hiplc

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
Sign in to follow this  

×