Sign in to follow this  
george7378

Bump mapping my water

Recommended Posts

george7378    1441

Hi everyone,

 

I've recently come across the technique of bump mapping, and I think I could really put it to use on my water (at the moment it's just a flat plane with a transparent, moving texture applied to it). I was wondering if anyone can direct me to a full tutorial for it? At the moment, I've found some potentially good stuff on MSDN:

 

http://msdn.microsoft.com/en-gb/library/windows/desktop/bb206304%28v=vs.85%29.aspx

 

I haven't tried this yet though. Is it really as simple as importing a texture and setting some texture stage states?

 

Thanks! I'll probably experiment more with this tomorrow.

Share this post


Link to post
Share on other sites
nfactorial    735

I'm not sure what your question is really, if it's "Is bump mapping useful for water" then I'd say that it depends on what kind of water you're doing. If you're rendering some fairly flat surface (such as a lake) then yes, bump mapping is very useful (though, not a silver bullet on its own). Bump mapping is covered in many places on the internet a simple google search should give you plenty of information.

 

From the rest of your post, it sounds like you're not using shaders which will limit visual quality you can achieve. Water rendering consists of both reflected and refracted components based on the the angle between the viewer and the surface normal (for more information on this, you should research the fresnel equation).

 

To make things more complicated, the depth of the water at the view->surface point should be taken into account when building the final color. There are other things to consider also, but it depends what kind of level of visual representation are you trying to achieve.

 

For more volatile surfaces, such as oceans, bump mapping alone is usually not enough to convey a realistic representation. You should probably investigate displacement mapping or even displacement with tesselation.

 

n!

Share this post


Link to post
Share on other sites
george7378    1441

Hmm, thanks. I guess I'm just a bit confused about how to actually implement it. I understand the principle, but there doesn't seem to be much out there telling me how to actually make it happen. Is it possible to apply a bump map in blender, and then export the object as a .x file? How would I go about doing that? I've tried searching and it seems that there isn't much useful info out there telling me how to do bump mapping in direct3d.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this