Jump to content
  • Advertisement
Sign in to follow this  
acid2

Water Normal Map?

This topic is 4828 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
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 )

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Heh, I've got that book, just haven't really applied anythng yet! Thanks Jason Z, I'll look into that.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!