Water effect for simple turn based strytegy game

Started by
1 comment, last by lauris71 12 years, 7 months ago
Hello,

I'm trying to create a very simple 3D turn based strytegy game, but don't know how to do the water effects: sea(ocean) and rivers? Can you give me some suggestions, or myabe send some source code in C++(OpenGL or DirectX doesn't matter).

Thanks
Advertisement

Hello,

I'm trying to create a very simple 3D turn based strytegy game, but don't know how to do the water effects: sea(ocean) and rivers? Can you give me some suggestions, or myabe send some source code in C++(OpenGL or DirectX doesn't matter).

Thanks


You can take a look at GPU Gems Series book, also you can find an example in the Special FX Book by mason mcusky, its outdated but the concept is the same. Simply you build vertexes buffers, then you apply wave equations like sin(),..etc .
Game Programming is the process of converting dead pictures to live ones .
I started writing GLSL water tutorial, but at moment only the 1st part (basic reflection) is completed.

Link to turial part 1

Take a look if you are interested - I'll plan to complete part II (angle-based reflection and scattering) this week and part III (ripples) shortly after that.
Lauris Kaplinski

First technology demo of my game Shinya is out: http://lauris.kaplinski.com/shinya
Khayyam 3D - a freeware poser and scene builder application: http://khayyam.kaplinski.com/

This topic is closed to new replies.

Advertisement