Page 1 of 1

Rippling water using bones and physics

Posted: Sat Jun 26, 2010 12:18 pm
by heyvern
Here's a trick to create fairly realistic water ripples. The key is a LOT of bones. The more the better. You can use fewer bones of course.

http://www.lowrestv.com/images/files/water-ripples.anme
http://www.lowrestv.com/images/files/water-ripples.mov


I am including a menu script for creating bone chains very quickly. This script can create "grids" or just rows or columns of bones. Put this script in /scripts/menu/ folder and restart AS.

http://www.lowrestv.com/images/files/hv_bone_chains.zip

The technique uses a long chain of bones and a vector shape with at least 1 point for each bone. This chain is slightly curved so there is some slack for the rippling. The bone layer physics is set to "pivot on origin". The LAST bone in the chain has "lock tip" set with the bone physics tool. This creates a chain of bones locked at both ends.

Underneath the bone layer are some oddly shaped vector layers set to pivot on origin with a motor. These layers will bump and prod the bones keeping them moving and bouncing to simulate rippling. You can look at the file to check the density and gravity settings.

---------------
The Spout

The spout could be done with physics or without. The physics in the spout group is "rotated". I had to put in a lot more spinning motor layers to keep it rippling. Not as good as I would like.

Another "easier" way to do the spout is using two chains of bones that are UNPARENTED. Each bone has a "noise interpolation" on frame 0. You should probably set the keys to be different noise values so that the motion is more random. This will cause a sort of rippling effect and can be used by itself to create a water simulation... but the physics version looks a bit more realistic.

-vern

Posted: Sat Jun 26, 2010 12:57 pm
by hothead
thats cool vern lol i was looking for it to over flow that would make it more cooler or you can creat a glass shape at the top. but greate job

Posted: Sat Jun 26, 2010 9:24 pm
by madriver
Cool, Vern! Thanks!

Posted: Sun Jun 27, 2010 1:55 am
by slowtiger
The spout could be done much easier if you remember that in reality the water forms a twisted band, which, seen from the side, could be done with two overlapping sine waves, one phased 180° to the other.

Re: Rippling water using bones and physics

Posted: Sat Jul 03, 2010 1:00 am
by uddhava
heyvern wrote:
I am including a menu script for creating bone chains very quickly. This script can create "grids" or just rows or columns of bones. Put this script in /scripts/menu/ folder and restart AS.

http://www.lowrestv.com/images/files/bone_grid.zip
Does this script work in ASP 6? I don't have version 7 yet. Looks like it would be helpful.

This physics capability in ASP 7 has a lot of possibilities. Sorry I can't contribute here.

udd

Posted: Mon Jul 05, 2010 12:11 pm
by uddhava
heyvern,

I tried to download the script (zip) file, but I get 404 NOT FOUND. I have downloaded other scripts of yours so I don't think it is something wrong on my end. Can you please help? Thank you.

udd

Posted: Mon Jul 05, 2010 12:36 pm
by heyvern
Ooops!

I updated the script and forgot to change the link here. It's correct in the script thread under the script forum.

Link is updated now and should work. I changed it to "hv_bone_chains" instead of "bone_grid". It seemed to make more sense.

-vern

Re: Rippling water using bones and physics

Posted: Mon Jul 05, 2010 7:39 pm
by patricia3d
heyvern wrote:Here's a trick to create fairly realistic water ripples. The key is a LOT of bones. The more the better. You can use fewer bones of course.

http://www.lowrestv.com/images/files/water-ripples.anme
http://www.lowrestv.com/images/files/water-ripples.mov


-vern
Can you please give the file with 6.2 version?

Posted: Mon Jul 05, 2010 8:58 pm
by heyvern
The script works fine in 6 but the file can't because it uses physics. There is no physics in version 6.

-vern

Posted: Tue Jul 06, 2010 5:52 am
by Tagirijus
Thanks for sharing this technique + script. :)

Posted: Tue Jul 06, 2010 7:35 am
by uddhava
heyvern wrote:Ooops!

I updated the script and forgot to change the link here. It's correct in the script thread under the script forum.

Link is updated now and should work. I changed it to "hv_bone_chains" instead of "bone_grid". It seemed to make more sense.

-vern
Thanks Vern. I downloaded it now and I will try it out.

Uddhava

Re: Rippling water using bones and physics

Posted: Sun Nov 28, 2010 6:44 am
by SOULAUNCHER
heyvern wrote:Here's a trick to create fairly realistic water ripples. The key is a LOT of bones. The more the better. You can use fewer bones of course.

http://www.lowrestv.com/images/files/water-ripples.anme
http://www.lowrestv.com/images/files/water-ripples.mov


I am including a menu script for creating bone chains very quickly. This script can create "grids" or just rows or columns of bones. Put this script in /scripts/menu/ folder and restart AS.

http://www.lowrestv.com/images/files/hv_bone_chains.zip

The technique uses a long chain of bones and a vector shape with at least 1 point for each bone. This chain is slightly curved so there is some slack for the rippling. The bone layer physics is set to "pivot on origin". The LAST bone in the chain has "lock tip" set with the bone physics tool. This creates a chain of bones locked at both ends.

Underneath the bone layer are some oddly shaped vector layers set to pivot on origin with a motor. These layers will bump and prod the bones keeping them moving and bouncing to simulate rippling. You can look at the file to check the density and gravity settings.

---------------
The Spout

The spout could be done with physics or without. The physics in the spout group is "rotated". I had to put in a lot more spinning motor layers to keep it rippling. Not as good as I would like.

Another "easier" way to do the spout is using two chains of bones that are UNPARENTED. Each bone has a "noise interpolation" on frame 0. You should probably set the keys to be different noise values so that the motion is more random. This will cause a sort of rippling effect and can be used by itself to create a water simulation... but the physics version looks a bit more realistic.

-vern


Hi, I can't download the AS file, would U help me please? :D
very neat trick ;D
thanx so much 4 sharing