menu
menu

Car Model (OpenGL Visual Demo)

This demo is identical to the demo Fighter but in the place...

  • Category Other
  • Size 346.3 KB
  • Program by MASMO

Car Model (OpenGL Visual Demo)

This demo is identical to the demo Fighter but in the place of the airplane there is a car. There are two models, one for the car and one for the wheels. The car changes speed and direction in automatic way. The car is created with 2313 triangles, while every wheel is having 9010 triangles (too much!!). The demo occupies 346Kbytes.

This demo is identical to the demo Fighter but to the place of the airplane there is a car. There are two models, one for the car and one for the wheels. The car changes speed and direction in automatic way. The car is created with 2313 triangles, while every wheel is having 9010 triangles (too much!!). The demo occupies 346Kbytes.

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 glPrint(char *ll,float x,float y,float z,float dim,float dir,float r,float g,float b) My routine for print with opengl :

Char *ll => the line

x,y,z => the coordinates

dim => the font dimension

dir => not used for now

r,g,b => the color

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 InitBuf(void) Initializes the terrain

void InitSmoke(void) Initializes the wheel smoke

void Init(void) Inits the global variables

void DrawBuf(void) Draws the terrain

void DrawSmoke(void) Draws the wheels smokes

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

Top 3 Car Model (OpenGL Visual Demo) Alternatives

GeForce3 Techdemo Movie #2 (quicktime)

Here is the Zoltar tech demo by Nvidia that demonstrates...

GeForce3 Techdemo Movie #1 (quicktime)

Here is the Chameleon tech demo by Nvidia that demonstrates...

Xbox Flash

This file contains an interactive flash animation of Xbox...

Recommended Software

Skedda

Automate your company's most time-consuming scheduling tasks and easily implement custom business logic for booking consultations and internal meetings

SchoolStatus

A communication tool integrating student data so that educators can work closely with their students

Sendible

A social media management platform that allows different agencies to effectively market for their clients