HomeNewsFeaturesLicensingDownloadsScreenshotsFAQRoadmap Contact Us
Search:
6 Online

Community

Discussion Topics Recent Postings User Contributions General Articles Example Documentation Credits

Licensed Developer

Programmer's Manual Artists Manual Tutorials and Articles

Programming: Game Code

Game Code Overview Server Side Game Code Client Side Game Code

Programming: System

Alphabetical Function List Renderer File System Collision & Ray Casting Low Level Audio Game Audio The Console Console Variable List Multiplayer Localisation Maths Library Memory Manager Model File Formats Texture Formats

Art: Overviews

Specifications Shaders Particle Systems Lens Flares Cipher console Cipher file types Tutorials Reference

Art: Tools

Shader Designer Particle Designer 3dsmax tools Model Conversion Font Generator

Cipher Engine
Game Development Search Engine
GameDev.net
You are not signed in - [sign in] [register]

Water Effect

Submitted by: rikh
Date Submitted: 2003-10-29 08:46:03
Downloads: textures.zip

Shader Script

textures/newshader
{
    normalmod regenerate
    vertexmod uvwave 1.000 1.000 sin 0.000 0.014 0.000 2.000
    {
        tex cubemap textures/sky
        texsrc reflectionmap
        rgbsrc constant 1.000 1.000 1.000
        alphasrc constant 0.850
        blendfunc blend
    }
    {
        tex map textures/caustic
        blendfunc add
        texmod scroll -0.080 -0.030
        rgbsrc wave sin 0.350 0.100 0.000 0.210
    }
}



Screenshot

Water Effect

Description

This is a pretty expensive shader effect, as it deforms the geometry of your model and then recalculates all the surface normals. These normals are then used in combination with a cube map to create a nice reflective surface with ripples running through it.
A second layer is added to give the water some more detail. This is just a simple scrolling texture of a caustic effect. This pass fades in and out a little to enhance the effect.
I have put the screenshots in front of a pretty ugly backdrop so you can see that the water is transparent.

[Recent Contributions] [Recent Shaders]

User Contributed Comments

tobyallen 29th October, 2003 11:40
What exactly are thoses weird artifacts that you see at the bottom part of the screen??
Toby.


rikh 29th October, 2003 12:16
That is where I did a poor job of making the faces of the cube map join up neatly.




Register and Sign In to discuss this article