Skip to content

siuryan/graphics-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphics-engine

Ryan Siu and Connie Lei, period 4
Computer Graphics MKS66 Final Project

Added Features

  • Lighting
    • ambient, light, constants
    • allow an MDL programmer to set the ambient light, create lighting constants and set multiple point light sources
  • Polygon meshes
    • mesh
    • allow an MDL programmer to specify a polygon mesh defined in an external OBJ file

Instructions

To compile to an executable, run:

$ make all

After compilation, to run the graphics engine on a script:

$ ./mdl <script>

For example,

$ ./mdl robot.mdl

To compile and run the graphics engine on a pre-specified script (cow.mdl), and display the animation:

$ make
$ animate cow.gif

About

Computer Graphics MKS66 Final Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published