Jump to content
dagoose

ripple solver and velocity

Recommended Posts

Hi,

I am trying to make a small slow creek with the ripple solver. So far so good.

The only thing what I am missing are the velocity values in X and Z. Well it makes sence to some degree that there are no vel value in these directions because the points only move up and down.

But when I deform the rest position with metaballs the vel values ARE available. But deforming via metaballs is very slow. At the moment I am deforming the mesh with an 'water texture'. But just adding the color values up to Y and animating the

texture offset gives me nice ripples but NO velocity values in X and Z.

Is there a way to get v when deforming the rest SOP with simple point manipulations? It would be very helpful for motion blur and also some white water generation via particles which I could give the same vel as the closed point on the mesh in order to get them moving more or less in the correct way.

 

Thanks for your help.

Rico

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi, interesting task :)

Not sure how to solve it automatically, but you can always paint curves indicating direction of movement on your geometry. Then compute tangent vectors on your curves and transfer it to geometry, where you can smooth it a bit. It will however take some time to match velocity scale and directions.

Maybe somebody knows better workflow?

Share this post


Link to post
Share on other sites

Hi, I tried another approach - compute gradient of length of velocity attribute. This will produce vector pointing to the greatest change of attribute on geometry. You can combine it with initial velocity to get some results. However velocity might be pointing backwards in some areas. To solve it you can combine it with painted curves and compare velocity direction with curves tangents direction. If it is opposite, then reverse velocity. This workflow should give you quite good results I guess.

jt_ripple_vel.hipnc

Share this post


Link to post
Share on other sites

Hi Juraj,

and thanks a lot for your help!

Give me some time to look into your example files. Will be back later.

cheers

 

Rico

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

×