Water rotation
PostPosted: 21 Jun 2009, 00:50
The algorithm responsible for the watertilerotation is still unknown to us, but with the most simple idea in mind I created this(rename to exe, .NET 2.0 required). I cannot judge whether it is any good, but the waves seem to move in the expected direction.
The simple idea is to get an array of colors used in the texture, order them from lightblue to darkblue. Then foreach timestep foreach pixel set the pixel to the color at the incremented pixelindex in that array(and of course use mod).
I don't know whether this is the same as the original, I suspect it isn't, but it does look similar
The simple idea is to get an array of colors used in the texture, order them from lightblue to darkblue. Then foreach timestep foreach pixel set the pixel to the color at the incremented pixelindex in that array(and of course use mod).
I don't know whether this is the same as the original, I suspect it isn't, but it does look similar