Sign in to follow this  
mickeyren

small waves near the shore?

Recommended Posts

Hi Currently I have a flat water grid just below my terrain, so I can have an irregular shape terrain and lower parts of my terrain to create rivers and lakes. However, it does not look realistic and one correct way to do it is to render small waves going towards the shores. Please see King's Bounty screen shot: You can see their are small waves pushing towards the shore. Can anyone share/show some tutorials how that thing is done? Many thanks in advance.

Share this post


Link to post
Share on other sites
There are two main methods I know of.

One is to place some flat geometry along all the shorelines, like a thin strip, with an animated texture. Some form of this is probably the most common. The geometry could be made manually or generated automatically in some manner. One could even place sprites for this purpose.

Another method is to have some sort of depth texture available, and use the depth in the water shader to map in some foam and wave effects in the shallows.

Both methods have tradeoffs, but the second method is easier to implement.

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