Skip to content

mbt680/CGP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bradley McFadden
Joy McGibbon
Mathieu Carriere
Computer Graphics project
April 2022

Instructions for running the code of our project
====================================================

Compiling all files
====================================================
.\compile.bat or ./compile.sh

Running ModelViewer.java
====================================================
.\run.bat or ./run.sh

Using different models with the program
========================================
.\run.bat <path-to-obj> <name-of-object>

Examples:

Loading the skull model
.\run.bat /data/skull/skull.obj skull 

Loading the teapot model
.\run.bat /data/teapot/teapot.obj teapot

Loading the teddy model
.\run.bat /data/teddy/teddy.obj teddy

Keyboard controls for the program
=======================================
left/right - Rotate camera about y axis
up/down - Rotate camera about z axis
W - Move camera forward
A - Move camera left
S - Move camera backward
D - Move camera right
Z - Move camera upward
X - Move camera down
= - Zoom in camera 
- - Zoom out camera

Changing the material on an object
====================================
Click select under "Material" group, and choose any png image.
Sample images are available under data/textures.

Releases

No releases published

Packages

No packages published