Thursday, December 20, 2007

Open GL - Assignment 1

Assignment 1

The first assignment was to model a favourite toy of ours using openGL, where not only simple polygons can be used to model the toy, but also lighting, movement enabled functions and many other features to further improve the toy.
What i modelled was an M-16 rifle.

It was pretty tough at first to model such an object, as there were many different small and sophisticated parts that i have to model.
For some of the curved parts, i tried using polygons, but since Polygons may pose quite a bit of a problems sometime, i stick to using Quads.
For the lighting, i used a specular lighting instead of a diffuse lighting, as the rifle's surface is metalic and shiny.

This is the final Product of my M-16 model. Lighting was included, including rotation functions to view different parts of the rifle, there is also a passive function where the rifle fires constanly, bullets can be seen shooting out and the empty shells dropping.
Final Model
The file/code for the model can be downloaded through the download box at the right.

No comments: