x


Flowing water with a fixed volume

I know this probably sounds kind of crazy but is there any way to create actual flowing, physics controlled water than has a fixed volume? So that you could have like a lake and then break open one end and let the water start flowing out of it and eventually drain the lake?

more ▼

asked May 25 '11 at 05:23 PM

logty gravatar image

logty
180 30 32 40

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Yes it is possible, but you would need to write your own simulation and that would take a boat load of time. And I don't know of anyone who has done it with Unity, but you could implement it yourself and then sell it when you are done.

more ▼

answered May 25 '11 at 06:22 PM

Peter G gravatar image

Peter G
15k 16 44 136

hmm... interesting. Do you have any ideas on how I could go about doing that though? would I have to write a script that creates a water mesh that form fits itself to the landscape with a certain volume? Would that work? Then if it could move in a direction then the mesh grows? Any ideas? Thanks!

May 25 '11 at 06:42 PM logty

There are plenty of publications on fluid sims out on the web. I don't have any knowledge on the subject so I can't tell you fast or slow for any methods. My first guess would be to implement a voxel like system where you make a grid then determine which points are part of the fluid, then create a mesh around them. Its a complicated project though, that doesn't even account for any physics, just drawing the water.

May 25 '11 at 07:13 PM Peter G

This would probably be a project to not go at alone as it would consume far to much time. I figure your example of draining a lake is just fictional as that would be done best with lowering a box with a watershader and a particle emitter (in case someone wants to do this).

May 25 '11 at 07:23 PM save
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1879
x300
x74
x8

asked: May 25 '11 at 05:23 PM

Seen: 2218 times

Last Updated: May 25 '11 at 07:23 PM