Animate Mesh(Fake wave)

Hi,

How can i make a fake wave in a terrain or plane or in any mesh?in fact i want to simulate water wave.

So thanks.

Here's an example:

In your scene, you have a plane (a square). Click on the plane to in the scene or hierarchy view to have it displayed in the inspector view.

On the plane's mesh renderer choose a material and set the material type to bumped(you probably want Transparent Bumped Specular or Reflective Bumped Specular).

Then, in the project view, click on your water texture and press ctrl-J to duplicate it. Select the duplicated texture and change the import settings in the inspector from texture to normal map.

Click your plane again and set its material's base texture to your water texture, and its normal map texture to the bump mapped texture.

Finally, create a script that's something like this javascript:

var scrollSpeed : float;
var offset : float;

function Update() { 
offset = Time.time * scrollSpeed;
renderer.material.SetTextureOffset ("_MainTex", Vector2(offset, offset));
renderer.material.SetTextureOffset ("_BumpMap", Vector2(offset, offset));
}

and add it to your plane. Change `scrollSpeed`'s value to change the speed that the material scrolls at. For more on materials go to this link in the docs. For more on normal maps, go to this one.