Jump to content
  • Advertisement
Sign in to follow this  
shaq1106

water wave normalmap

This topic is 3875 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, I'm reading "shader X3" and I'm specially interested in water chapter. In this demo, it used bump map technique, but no normal map texture in any folder. And I think water wave is dynamic not static. So normal map should be generated and updated in every frame in real time. Am I right? I wonder how to create normal map for dynamic water wave. Actually I made some height field and wave it using noise. And I tried to use static normal map texture and scroll it. But It's not what I want. And I realized I need to generate normal map in real-time. But I don't know how? Please teach me...^^

Share this post


Link to post
Share on other sites
Advertisement
Hi.


Normal maps work fine for me.
Add them together to make a moving fractal normal map.
All done in shader. No need for per-frame CPU work.

ie,

Make a simple tileable normal map from some kind of noise.
( ie, 1 octave noise. no fractal )
Inverted cellular noise works well.
In photoshop or something. ( filterforge is a good filter for this )

Then in your shader add the noise together at 3 different scales.
Each "layer" moving in a different direction to the others.

Ren.

Share this post


Link to post
Share on other sites
Thanks for your reply.
And do you mean that mormal map is created in non real-time?
I did that.
Somehow In newest water rendering technique,
not just moving mormal maps in different speed.
It looks like generate normal map in real time.
If someone do this way, please advise me.

I don't know my guess is right or not. I'm so confusing...^^;

Share this post


Link to post
Share on other sites
You can get quite a nice procedural water normal map by animating perlin noise over time. There are loads of posts here about this.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!