Water Normal Map?
Hi,
Does anyone have an animated water normal map they could "lend" me :P I can't find a decent one anywhere... Also, any advice on how these are created? I don't have any modelling tools, just my own engine.
Thanks...
aCiD2 :)
How about creating an animated heightmap using something like this, then converting that to a normal map?
[Edited by - bakery2k1 on March 3, 2005 8:14:51 PM]
[Edited by - bakery2k1 on March 3, 2005 8:14:51 PM]
Here [1 | 2] are two tileable bumpmaps that can be used for water. However, they do need to be converted to normal maps. If you are using D3DX, you can simply use D3DXComputeNormalMap(), like this:
D3DXComputeNormalMap( mBump2Tex, tempTex, NULL, NULL, D3DX_CHANNEL_RED, 20.0f )
D3DXComputeNormalMap( mBump2Tex, tempTex, NULL, NULL, D3DX_CHANNEL_RED, 20.0f )
If you have implemented render to texture functionality in your engine, you could always create the normal maps at runtime with shaders. You can check out the first chapter of GPU Gems for details on implementation, but essentially you are just using sinusoidal wave equations with 2D inputs (x,y position of the render target).
The only real trick is to make sure the waves that you render to the texture tile at the edges. There really is some good info on the topic in that article, I would suggest at least browsing through it at the bookstore. Good luck and let us know how it looks!
The only real trick is to make sure the waves that you render to the texture tile at the edges. There really is some good info on the topic in that article, I would suggest at least browsing through it at the bookstore. Good luck and let us know how it looks!
Heh, I've got that book, just haven't really applied anythng yet! Thanks Jason Z, I'll look into that.
Why not just use one normal-map with some random noise.
Scroll this map in two different directions with different velocity and interpolate at each fragment... This is an animated normal.
I do this and I think it looks okay, but you might prove me wrong?
Here's a short movie-clip of my current project:
Click here
Good luck and best regards,
Roquqkie
Scroll this map in two different directions with different velocity and interpolate at each fragment... This is an animated normal.
I do this and I think it looks okay, but you might prove me wrong?
Here's a short movie-clip of my current project:
Click here
Good luck and best regards,
Roquqkie
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement