About nwater 0.5

This sourcecode extends nebula with water rendering capabilities. Animated water based on fast fourier computations (ChoppyWater, StatisticalWater) and on Gerstner's algorithm (GerstenerWaves). The source is based on Gottfried Chen's GameEngine form www.chengine.com and was converted by Thomas Miskiewicz. See licens.txt for licensing information. Should any problems arise you can email me : tom@3d-inferno.com 

Requirements

No further libraries are needed. This differs from version 0.4. You no longer need the fftw or STL library for the water package. This software should be compatible with any release of the nebula 3d engine. This software was not intended for nebula2.

Installing
1) nWater package
Extract the nwater package to the code directory of your nebula distribution. The zip file creates these directories. 

code/
    inc/
       water/
    src/
       water/
data/
    tekdemos/


You will find the headers in inc/water and the source files in src/water. Additionaly a file called nwater.pak is placed to the source directory to to integrate the package into your project.

3) Update and compile
Run update.tcl to incorporate the nwaterpackage an then recompile the whole bunch. If you get an error stating no binary operation % for vector2 (which should not happen anymore with a recent nebula release) you can fix it by placing this lines in code/inc/mathlib/vector.h perhaps somewhere behind vector2 operator- (this in the cvs release):

static inline float operator%(const vector2& v0, const vector2& v1) {
	//dot product
    return (v0.x*v1.x + v0.y*v1.y);
};

If all complies without errors you should be clear otherwise check your include and library files.
You should now be ready to test the release.

Testing

In your tekdemos directory you will find a new tcl file called howto_use.tcl showing some stuff with the nwaterserver and nwaternode.
Either open up you nebula shell, change path to the tekdeos directory and execute 'source  howto_use.tcl '. Or edit your tekdemos.tcl and add the fillowing line at line 140 or so ( look for  # Demo-Selector)
    .f1.mb.m1 add radiobutton -label "Own Stuff"       -variable demo -command { load_script howto_use.tcl    0.5 }
This will add another button to you tekdemos.

Enjoy.
