Jump to content

how to get particle points angle difference between previous frame


zzlettle

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

 

 

Link to comment
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

Link to comment
Share on other sites

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...