|
Introduction
This demo doesn't use any advanced function, but it is here to demonstrate
my newly written class TPool
No source code provided. Only EXE file.
TPool allows us to create a pool's surface. The surface is rectangular
and can have any subdivision number.
It has 3 main functions :
void DisturbPoolSurface(float x, float y, float amplitude);
void DisturbPoolSurfaceExt(float x, float y, float amplitude, long waveStyle, float param1, float param2, float param3, float param4);
void AnimatePoolSurface(float timeDifferential);
The first one is for causing a "point" disturbance.
The second one is for causing more complex disturbances. It can be
rectangular or circular, with a bevel of type square or sinusoidal.
The third one is for advancing the simulation, which is pretty obvious.
How To Use
There isn't any mouse support so get your fingers ready.
Press 'h' anytime to get the help system printed in the console.
'Esc' and 'q' will close the program.
'a' will switch between wireframe and fill mode.
'space' will calm the pool's surface.
PAGEUP, PAGEDOWN, LEFT, RIGHT, UP, DOWN will move the camera.
F1 causes a disturbance at (5, 5)
F2 causes a disturbance at (10, 10)
F3 causes a disturbance at (20, 20)
F4 causes a disturbance at (30, 30)
F5 causes a disturbance at (40, 40)
F6 asks for amplitude, x, y values in the console.
It calls DisturbPoolSurface
F7 asks for amplitude, x, y, width, height in the console.
It calls DisturbPoolSurfaceExt (rectangular, square wave)
F8 asks for amplitude, x, y, radius.
It calls DisturbPoolSurfaceExt (circular, square wave)
Example
pool.zip (44 KB)
Files included are :
Pool.exe
water.bmp

Screenshot of the pool with a beachball floating on it.
THE END
|
|
|