Strongbad 64

------------------------------------------------------

The Curse of the Smoking Dragon

By Jacob Rochester

 

 

 

 

Running the project:

Press ‘f” to breath fire!!!

Press ‘t’ for special Trogdor music!!!

Press the arrows to glide through a nearly 3d virtual Strongbadia!!!

 

 

 

 

 

Strongbad:

Strongbad’s head was made with a red sphere. I drew the objects on his head with numerous quadratic and trigometric equations in two dimensions then used a level surface equation to put these shapes on the sphere. The calculations used to draw these head objects were done once at the beginning of the program and stored in an array, from which they can be read each time the head needs to be redrawn. This was done for performance reasons. The eyes are half spheres of my own design. All holes in these half spheres were filled with special equations of my own design.

 

The torso was made with two spheres one slightly above the other. The legs and arms are cylinders of my own design. The feet are made with half spheres of my own design with a different whitish color draw for the bottom of the feet. The gloves are made with two red spheres and a white cone.

 

Background:

 

The background was implemented with one texture that was distributed over a cube.  The sky is just the top of the background texture the ground was the bottom of background texture, the vertical planes in the cube are textured to repeat over and over. To do this I enabled horizontal texture wrapping and no wrap for the vertical aspects of the texture.

 

 

 

Dragon (AKA Trogdor):

 

This is also a 2d texture, but it utilizes transparencies. To implement this a I made my bitmap loader turn all white parts of the texture into transparent parts, also the whitish grey parts of the picture are made slightly transparent to smooth the edges of the texture.

 

The Shadows:

The Strongbad’s shadow is made by horizontally crushing the strongbad model, and disabling all light ambient, diffuse, and specular light properties while this is drawn. The Trogdor shadow was made by removing all colors from the original Trogdor texture with transparencies shadow. Trigonometric function are used to move this shadow as the Trogdor jumps up and down in order to make that shadow look more realistic.

 

 

 

 

 

Smoke and Fire Effects:

I also added a little smoke and fire to Trogdor. The smoke and fire are modeled by two arrays of x and y positions of triangle strips. Each of the triangles takes a little slice of a texture of smoke or fire. The triangles are textured with corresponding portions of the overall texture as they move. Also the triangles are faded as they move further from the source of the smoke, which creates an effect that looks like dissipation of the smoke or fire.

 

 

 

Inspiration:

Please go to:

http://www.homestarrunner.com/sbemail58.html

And let the hilarity ensue!

 

 

 

 

To view the readme.txt for this project click here.