Jump to content

Calculating velocity of points being moved in a VOP SOP in a Solver


Recommended Posts

Example file attached. I'm trying to calculate the velocity of the points, where I would expect to see the color move from black to white and then back to black as they settle. Instead I don't seem to be able to look up both the current and last frame's positions properly.

 

I'm sure this is simple, what am I doing wrong here?

velocity_color.hipnc

Link to comment
Share on other sites

you are taking input1 and comparing to previous frame, so because the points are further and further from their positions in input1, your length will return bigger number therefore white

 

you literally just need to compare P before your displacement and after to compute velocity (divide by timestep to make it per second)

then you can convert v to color after solver

velocity_color_fix.hipnc

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