|
I started out wanting to just create a Kirby character, based on the Nintendo Kirby because his shape was easy to implement. I also wanted to animate him and make him interactive in much of the same way as the games were. However, making him interactively move in a 3D environment according to the user's commands turned out to be a lot harder than I had thought, so in the end, he was only able to move in two directions - to the left or to the right. He can also jump and turn into a brick on command. The environment and textures I created was just a compilation of a couple of photographs that I photoshopped together, and the stone and bark textures were found online. Kirby's arms and legs also move up and down, in tune with his walk, and his shadow gets smaller when he jumps in the air. I mainly used GL_QUADS, spheres, and cylinders to create the scene. The code for the cylinders was found on the book's website and I added the code to add texture to the cylinders. I definitely learned a lot about texture mapping surfaces. I couldn't manage to texture map a portion of a sphere, so kirby's face had to be textured on a rudimentary triangle fan. I'm hoping to map his face onto the sphere that makes his body. |
|
The controls for the program are: Hit "1" to toggle the light on/off Hit "p" to toggle smooth/flat shading Hit "f" to toggle wireframe mode Hit "a" or "d" to move kirby left or right, respectively Hit "w" to make kirby jump Hit "s" to make kirby turn into a brick where he's standing Use the arrow keys to rotate the whole scene. |
| If you want to play the executable, email me at fshu@ucsd.edu and I'll send it on over! |
< wireframe mode
< kirby jumping
< kirby as a brick
< kirby!
< another shot of kirby jumping