mcgillowen / cpsc453-hw4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# CPSC453-HW4

To compile run `make all`

To generate images run `./writepixels` and then run convert `convert -size 512x512 -depth 8 TestScene.rgb File.png`

Commandline arguments for writepixels are:
- first argument: the maxdepth, default to 8
- second argument: the sampling, default to 4
- third argument: use personal scene, anything will do, defaults to the test scene, Cornell Box

Examples:
- ./writepixels 12 4 1, will generate the personal scene, with maxdepth of 12, sampling of 4
- ./writepixels, will generate the test scene, with maxdepth of 8, sampling of 4

Features implemented:
- Reflection/Mirroring
- Diffuse lighting

About

License:MIT License


Languages

Language:C++ 98.9%Language:Makefile 1.1%