previous |  up  | next
 

Camera World Collision   

Author:  DigiBen

If you want to make a game like Quake, you are going to need to know when the player runs into a wall.  This tutorial shows you how to determine if the camera (the player) collides with the world using sphere collision.  The data file is a .Raw file which is just a file that has pure vertices that we made.

You can download a 3DS Max exporter (by Alexandre Ribeiro de Sá ) which creates .Raw files used in this tutorial.  Download: .MS

Functions Used:  sqrt(), acos(), glCullFace(), glFogi(),  glFogfv(), glFogf(), glHint(), gluLookAt(), glBegin(), glEnd(), SwapBuffers(), fopen(), fscanf(), rewind(), fclose()


purchase full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials