Small OpenGL demo renders floating text on animated water with customizable colors, transparency, and visualization modes
Small OpenGL demo renders floating text on animated water with customizable colors, transparency, and visualization modes
Vote: (16 votes)
Developer: MASMO
Created: 2003-05-20
MD5: 2bc676fa6c8a9fcd0c188744e5b7cc7d
Size: 216.1 KB
Vote
(16 votes)
Developer
MASMO
Created
2003-05-20
MD5
2bc676fa6c8a9fcd0c188744e5b7cc7d
Size
216.1 KB
The demo visualizes the writing OPENGL that floats on the water. You can change the colors, the effect transparency and the visualization mode. The demo occupies 216Kbytes.
Yes... another effect with the water. The demo visualizes the writing OPENGL that floats on the water. You can change the colors, the effect transparency and the visualization mode. The demo occupies 216Kbytes.
Routine Description
AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)
int LoadGLTextures() Load Bitmaps And Convert To Textures
void galleggia(void) Calculate the float of the text Opengl
void loadini(void) Load the definition file (mare.ini)
void Luce(double x, double y, double z,double dimensione,float r,float g,float b,float iox,float ioy,float ioz,int Tex) Adds a particle with:
x,y,z => Position
dimensione => Size
r,g,b => Color
iox,ioy,ioz => Camera Position
Tex => Texture Number
void Pressione(int x,int y,int fgocce) Create a pression in the mouse' position. It modify the array VID
void CreaGrid(void) Sets the matrix BUF eand VID zero
void muovi(void) The water's movement
int DrawGLScene(GLvoid) Visualizzation modes:
0) Texture Mode (Each QUAD have a texture)
1) Color Mode (No Texture)
2) Disable the Blend
3) Enable Lighting and calculate the normals. Don't work.. Why? Is the normal calculation?... :(((
GLvoid ReSizeGLScene(GLsizei width, GLsizei height)
int InitGL(GLvoid)
GLvoid KillGLWindow(GLvoid)
BOOL CreateGLWindow(char* title, int width, int height, int bits, bool fullscreenflag)
LRESULT CALLBACK WndProc(..)
int WINAPI WinMain(..)
The Asteroid is an Milkshape Object (see Nehe Web Pages)
These routines have been taken by the examples of NeHe