CS6620 Assignment5

From Dangerski

Jump to: navigation, search

[edit] Assignment 5 Add Texture Mapping to your Ray Tracer

  • Reference image produced by my raytracer

Image:prog05.png


[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.

Image:p5cr1.png

  • this one has a noise texture on the box

Image:p5cr2.png

  • This one has a textured Triangle (only 1 sample per pixel)

Image:everything.png


  • Code

Media:prog5.zip

Personal tools