mElite 04: Let's pass to 3D

Using your knowledge about gluPerspective, gluLookAt, and 3D model provided by glut you have to

  • substitute the orthographic camera with a perspective one and locate it somewhere in the 3D world being coherient with the arrow keys
  • convert the planet and the artificial satellite in a sphere and in a cone
Then you can use the coriolis definition in coriolis.h for the space ship (you have to download the files eliteutils.h, eliteutils.c, and a new Makefile to compile). If you want to use the coriolis model you have to add
#include "eliteutils.h"
#include "coriolis.h"
in the beginning of the program and use this function call
drawEliteObject(coriolis_numberOfFaces, coriolis_vertex, coriolis_face,
coriolis_material)
to draw the satellite.

These utilities also include the function
renderBitmapString(GLUT_BITMAP_HELVETICA_18, "whatYouWant")
where GLUT_BITMAP_HELVETICA_18 is an example of font and "whatYouWant" is an example of string that you can replace with what you pefer.

You can click >>here<< to download an example of what you have to realize. You have to run
chmod +x melite4b
if you want a successful execution of the program.