Wave Simulation

Here is a shader that I have been working on to simulate water. Not much going on at the moment except a couple of sine waves and texture offsets. Shader Model 2.0. I want to thank hausmaus for helping me out. I still don’t understand how to move between tangent and world space but maybe one day I will .

edit*** most recent demo

Ocean Waves Shader

Right click on the demo and hit “Go Fullscreen” to get a higher frame rate.

Hey this is pretty cool, you might want to give a different tilling size and offset for each waves/foam texture so they not overlaping and to prevent some double vision.

I love it, any chance of it appearing on the asset store?

I got rid of the textures moving in 2 directions so the double vision thing is gone. not as complex looking so maybe I’ll add something more later.

I will think about releasing this when I get it done.

Here is a small updated webplayer. I still am working on the motion of the boat. I got stuck on solving 3 rotations. I can only ever get 2 at the same time :(.

Also need to figure out a way to smooth the transition of the boat over the crest of the wave.

Tells me I need to install the web player, even though it’s installed. (on two different systems)

Hmmm… Hosting it on Dropbox. Not sure what the issue is.

Removing the s from https usually fixes most of those problems.

Thanks for the tip!

That fixed it ZettaZete

Does it work in Unity Indie?

Yes, I have an Indie copy of the software. There is nothing fancy about the shader. It is a single pass and written for Shader Model 2.0. For the normal map to work on Iphone I think I need to change a few lines.

I just uploaded a new demo. It runs fine in my Firefox browser but won’t open in Chrome. Hmmm…

Pretty nifty!