For my final project, I implemented a designer for Warhammer 40,000 Space Marine models. Space marines are genetically enhanced super-warriors in robotic suits. They are part of the Imperium of Man, fighting to defend our species against constant attacks from aliens and daemons across the galaxy in the year 40,000. I chose this project because of the difficulty of designing a good looking position and coloring scheme for a model without actually building the model, at which point it is impossible to change your mind. Even while making it, it can be very difficult to position several pieces with fingers covered in paint and glue, and be able to see around your fingers.
To implement this, I used a hierarchical model. The head, body, upper arms, lower arms, upper legs, lower legs, and feet are all positionable. The axes that the pieces can be rotated around are restricted to represent the directions I can rotate the pieces when building the model. In addition, the hands can both hold a bolter, a bolt pistol, or a knife. The knife can be held facing up or down. There are several base colors that can be selected: the main body color, trim (shoulder trim, and kneepads) color, shoulder color, metal color, weapon color, and the eye color. There are many preset colors, which are the paints I most commonly use. There is also a user-specifiable color, which can be modified to represent seldom used colors, and paint mixing. To view the entire model, the mouse can be used to move the camera around the model.
In addition, there is an idle animation. The upper arms, lower arms, and head move around semi-randomly to give realistic motion, as if the marine is shifting around, or looking around on patrol.
Executable: project.exe
Controls:
'w' 'a' 's' 'd' to rotate pieces.
'i' 'k' to adjust red value of user specifiable color.
'o' 'l' to adjust green values.
'p' ';' to adjust blue values.
'[' ']' to adjust shininess.
Right click to open the menu. The menu controls piece, color, and weapon selection, and toggling the idle animation. Click and drag the left mouse button to move the camera around the model.
I have taken pictures of a couple of models I have previously built, along with screen shots of the model represented in my program. I have also included a couple screen shots of models I have designed with my program. The difference in the shoulder color of the Black Templar is intentional; there are two versions of the Black Templar paint scheme and I decided to show one of each.
Emerald Warrior |
Silver Skull |