glib Posted July 18, 2014 Share Posted July 18, 2014 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 Quote Link to comment Share on other sites More sharing options...
anim Posted July 19, 2014 Share Posted July 19, 2014 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.