tar.gz
archive of your asg7/ directory, including:
README
file containing
Makefile
.h
headers and .cpp
source)
make clean
before tar
)
handin
notes
model_t
object's
find_closest()
function,
implement a simple (one-hit) ray tracer
(known as a ray caster) to process the model file
given below.
rgb_t
pixel class discussed
in class.
camera cam1 { pixeldim 640 480 worlddim 8 6 viewpoint 4 3 6 } material green { ambient 0 5 0 } material yellow { ambient 5 4 0 diffuse 4 4 0 specular 1 1 1 } plane leftwall { material green normal 3 0 1 point 0 0 0 } plane rightwall { material yellow normal -3 0 1 point 8 0 0 } material gray { ambient 2 2 2 } plane floor { material gray normal 0 1 0 point 0 -0.2 0 }
0.1
, i.e.,
plane leftwall { material green normal 3 0 0.1 point 0 0 0 } plane rightwall { material yellow normal -3 0 0.1 point 8 0 0 }and re-running the code produces the image below: