tar.gz
archive of your asg8/ directory, including:
README file containing
Makefile
.h headers and .c source)
make clean before tar)
handin notes
sphere_t object
light_t object that holds
light location (light position) and emissivity
(light color) information,
both represented as vec_t
rgb_t pixel class discussed
in class
list_t class discussed
in class to hold pointers to
light_t,
material_t,
and
object_t
std::list at
a reduced grade.
)
void *, i.e., 'make clean; make'
produces no warnings:
g++ -c -I. -g -m32 vector.cpp ar rcs libvec.a vector.o ranlib libvec.a g++ -c -I. -g -m32 list.cpp ar rcs libist.a list.o ranlib libist.a g++ -c -I. -g -m32 main.cpp g++ -c -I. -g -m32 pixel.cpp g++ -c -I. -g -m32 material.cpp g++ -c -I. -g -m32 object.cpp g++ -c -I. -g -m32 plane.cpp g++ -c -I. -g -m32 sphere.cpp g++ -c -I. -g -m32 model.cpp g++ -c -I. -g -m32 camera.cpp g++ -c -I. -g -m32 light.cpp g++ -g -m32 -I. -o main main.o pixel.o material.o object.o plane.o sphere.o model.o camera.o light.o -L. -L/usr/lib -lvec -list -lc -lm
camera cam1
{
pixeldim 640 480
worlddim 8 6
viewpoint 4 3 6
}
light centerback
{
location 3 4 -1
emissivity 1 1 1
}
light backleft
{
location 1 1 0
emissivity 1 1 1
}
light topright
{
location 6 4 1
emissivity 1 1 1
}
material green
{
ambient 0 5 0
}
material red
{
ambient 5 0 0
diffuse .4 .4 .4
specular .8 .8 .8
}
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
}
sphere central
{
material red
center 6 4 -2
radius 2
}
sphere upperleft
{
material red
center 2 2 -2
radius 1.3
}