P A01-Ray Casting
- PA1 Ray Casting is due on Sep 15, 11:59pm, 2016
- Code: cs451-PA01.7z (last update: 9/15/2016)
- Solution: cs451-PA01-solution.7z (last update: 9/21/2016)
- OpenGL ray viewer code: cs451-rt-viewer.7z (last update: 9/15/2016)
- This assignment will help you deepen the understanding of the following topics
- Ray generation
- Ray-sphere Intersection
- Basic shading (Diffusion, Specular, and Ambient)
- What to submit
- Your code (with everything)
- You RT file (name it cs451_pa01.rt)
- Rendered images. Make sure that you name your images as follows
- 6 images with 1, 10, 100 rays per pixel using orthogonal and perspective cameras
- name these images cs451_pa01_ortho_0001.jpg, cs451_pa01_ortho_0010.jpg, cs451_pa01_ortho_0100.jpg, cs451_pa01_persp_0001.jpg, cs451_pa01_persp_0010.jpg, cs451_pa01_persp_0100.jpg
- 6 images with 1, 10, 100 rays per pixel using orthogonal and perspective cameras
- README.txt file in cs451-PA01 folder with the following information
- The OS and compiler that you compile your code
- How to build your program
- Tasks that you completed
- Tasks that you started but did not complete
- Tasks that you did not start
- What are the known bugs in your code?
- How to submit
- Submit your files in a single zip file on blackboard.
- Please do not send us the file directly
Tasks
- Task 1 (30%): Generate rays for both orthogonal and perspective cameras
- Task 2 (20%): Compute Intersection between rays and the spheres
- Task 3 (20%): Determine the normal direction of the intersection point
- Task 4 (20%): Determine the color of the ray
- Task 5 (5%): Create your own *.RT file.
- Task 6 (5%): Compelete the README file.
Examples:
These results are rendered from this .rt file: env-2.rt
- with 1 ray per pixel
(orthogonal view) | (perspective view) |
- with 10 rays per pixel
(orthogonal view) | perspective view) |
- with 100 rays per pixel
(orthogonal view) | (perspective view) |