General Category > ASL Scripts
Simple fluid simulation
NickE:
Yes, it is far from perfect and a bit of a pain to get timed out. To be broadly useful, object scripts would have to have access to the frame or time variable from scene mode or scene controller scripting would have to be enhanced to support the object scripting abilities to manipulate meshes.
Maximilianibus:
how could i create own fluids? i mean, how to number the points? ???
this is one of the BEST scripts in anim8or i've ever seen!
even your hair script is awesome! ;D
NickE:
The script and project included above is just a demonstration of the capabilities and to point out the "quirk" of Anim8or of running scripts asynchronously to the rest of the program.
The script above requires a mesh named "s1" of 100 by 100 points. The points have to be numbered in order of the mesh from 0 to 9999. The points with Y-coordinates not equal to zero have "excitation", will move up and down, and gradually dampen to zero. This script only moves the points up-and-down and expects the points to be equal distances away from each other (like a perfect plane)
I've attached a project that has a "blank" water field. You can try the different kind of rippling, like from the corner, a wave that covers a whole edge, starting the "excitation" above or below the plane, etc.
To render your animation, you have to start the script in object mode, switch quickly to the scene mode and start the render. The "delay" variable in the script is to allow time for Anim8or to render the frame before the script calculates the next frame. It takes some experimentation to hone in on a proper delay value for the scene and your computer. While hunting the proper delay value, set the number of frames variable to just a few frames because you will have to wait for the script to finish to adjust it.
Thank you for your interest.
cooldude234:
Whoa! I seen that video on anim8or before, but I thought you just used a lot of morphs, seems I was wrong. Now I have to test this script out sometime!
THANK YOU!!
Bugtrooper:
Awesome!!! Some of you're really upgrading anim8or. I only can spend a little amount of time for anim8or, but I want to upgrade it too. Looks like I have to learn first. :D
And again.......GREAT ANIMATION!
Navigation
[0] Message Index
[*] Previous page
Go to full version