Flowing Water

I’ve created flowing water as seen in Valve Software’s Left 4 Dead 2 and Portal 2, based on their whitepapers.

At this point the system supports vector fields (authored inside Unity :smile: , can be updated at runtime too), reflections, refractions and floating texture based debris.

Have a look:


Water Flow (link)

The vector field forces include directional, point, vertex and meshbased force (nearby mesh faces contribute to the vector direction)

Coming soon(ish) floating solid (physics) objects affected by water flow, foam/scum, splashes/impacts.

What do you guys and gals think?

[UPDATED]
Added flowing colours! Blood that drips into the water will flow in the current, sewage pipes pump crap into the water, pump clean water into the system, etc.

Looks very good. How is the performance?

I don’t have any hard numbers at the moment, but considering the complexity of the final effect, performance is pretty good. The biggest hogs at this point are reflection and refraction, but the flow is pretty fast.

Coooooolll! :smile:

This looks really nice and ran well on my machine… Looking forward to the updates you mentioned =)

awesome!

@rutecht: I have a few more tricks up my sleeve too :wink:

Wow, looks really nice and runs smooth on both of my pcs. Are you planning to sell it when its done? :slight_smile:

Updated to a new version, now includes colour flow! Read the first post for more details.

Oh man, that blood flow is so cool

Yes, very very nice! But this is a very small room. What about performance in larger areas? :smile:

Does it require Shader Model 3?
Whenever i enter, i see a huge white glowing wall :eyes:
(Since i’m sitting on a laptop: Intel GMA 950)

Brikkworker.com: I’ll make a demo with a larger area sometime soon, but performance should still be pretty decent, that said, this is not for simulating a huge lake or an ocean, it’s meant for smaller bodies of water (think Portal 2 and L4D2 water areas).

Mauri: It is shader model 3 and up only, I’m afraid. I want to make simpler versions sometime too.

nice stuff!

Wow, that’s awesome

Really nice job.

Damn! This is really awesome!

need pixel shader 3?

I assume that reflection is only for Unity Pro, how about the rest of the awesomesauce you made there? The rest will work?

Hmm saw now that this is an old bump.
I really hope Wahooney will give us some news anyhow :slight_smile:

Looks really good. Great work :smile: