CS6620 Assignment5
From Dangerski
[edit] Assignment 5 Add Texture Mapping to your Ray Tracer
- Reference image produced by my raytracer
[edit] Design Choices
Texture Coordinate Mapping:
I chose to just use the computeUVW from the primative class and override it in each object. To create the spherepolar I just subclassed sphere and implemented computeUVW to return the coordinates in polar form.
I implemented everything based on the class notes. I also computed u,v texture coordinates for the heightfield, triangle, and Rectangle.
To speed up my ray tracer I also added OpenMP support so that I can take advantage of multiple cores. I was able to achieve a little less than 2x speedup.
- Creative image- shows a textured rectangle and a textured heightfield.
- this one has a noise texture on the box
- This one has a textured Triangle (only 1 sample per pixel)
- Code




