|
yang hai's tj site |
|
|
|
3d slime
The original stipulations of this lab was to create a 3D program that you could manipulate in some way. The proposed project was to create a robot using OpenGL's 3D capabilities. Due to the hackneyed nature of this, I thought it would be a good way to combine this assignment with my unhealthing fixation for the online Slime series. You could guess that I would create a 3D Slime game of some sort. 3D Slime Soccer was born. The program began with simply drawing the environment and the slime. I originally had the intention of just making it a movie, but I realized at that time much of the code for user-manipulation was already in place. Moving the slime around and setting boundries was easy enough. But the moving in the ball in the function bmove() was quite difficult. Quite a lot of trig was involved with creating the right trajectory, but once i figured that out, the rest came rather simply. Scoring and writing the text came next. The on screen score system is actually just spheres of different colors, and text took me a while to figure out how to use, but once I found the functions, it was easy enough. However, text size is still a little small and glut doesn't allow for anything larger. Jumping and y-axis ball movement looked hard, and maybe I'll put it in later, but for now, those features are absent.
click here to enlarge
click here to enlarge
click here to enlarge |