Download.it search icon
Advertisement

OpenGL demo showcasing multi-camera missile impact, concrete deformation, smoke, and particle effects in lightweight 184KB package

OpenGL demo showcasing multi-camera missile impact, concrete deformation, smoke, and particle effects in lightweight 184KB package

Vote: (5 votes)

Developer: MASMO

Created: 2003-05-20

MD5: 0413bdd71e505c1d8c639fc5463c229f

Size: 184 KB

Vote

(5 votes)

Developer

MASMO

Created

2003-05-20

MD5

0413bdd71e505c1d8c639fc5463c229f

Size

184 KB

' Impactest' visualizes a missile that explodes against a block of cement. The run of the missile is followed by 8 cameras, some fixed others in movement. When the missile explodes against the block, this is deformed for the explosion. The demo occupies 184Kbytes.

' Impactest' visualizes a missile that explodes against a block of cement. The run of the missile is followed by 8 cameras, some fixed others in movement. When the missile explodes against the block, this is deformed for the explosion. The demo occupies 184Kbytes.

Routine Description

AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)

int LoadGLTextures() Load Bitmaps And Convert To Textures

void VectorNormalize() ..... Vector Functions (used by Luce)

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 Camera(void) Camera type, calculate the camera position

void CalcolaTav(void) Calculates the position of the exploded material

void DisegnaTav(void) Draws the exploded material

void MuoviEsplosione(void) Moves the explosion quads

void DisegnaEsplosione(void) Draws the explosion quads

void DisegnaMuoviSmoke(void) Draws and Moves the missile smoke

void DisegnaMissile(void) Draws the missile

void InitDati(void) Inits the global variables and the arrays for missile smoke, explosion quads and esploded material

void InitPareti(void) Calculates the wall coordinates

void DisegnaLancio(void) Draws the start base

void DisegnaSuolo(void) Draws the ground

void DisegnaPareti(void) Draws the walls

GLvoid ReSizeGLScene(GLsizei width, GLsizei height)

int InitGL(GLvoid)

int DrawGLScene(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