mbt680 / CGP

project
0 stars 1 forks source link

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

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

Changing the material on an object

Click select under "Material" group, and choose any png image. Sample images are available under data/textures.