- Run
make
orpython3 main.py [.mdl filename]
- Currently includes a file called "obj.mdl" which will create a spinning teapot animation with PHONG shading, reading from teapot.obj"
- Gouraud Shading
- Use command
shading gouraud
to use Gouraud shading. Default shading is flat shading.
- Phong Shading
- Use command
shading phong
to use Phong shading. Default shading is flat shading.
- .obj Reader
- Use command like so:
mesh constant : teapot.obj
, replacing constant with any color constants and teapot.obj with any .obj file.
I will be working in Python:
- Implement Gouraud Shading
- Implement Phong Shading
- Make animation work in Python if needed (since worked in C for animation assignment)