cw2_presentation - Computer Graphics Assignment Two...

Info icon This preview shows pages 1–12. Sign up to view the full content.

Computer Graphics Assignment Two
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Objective Input Output
Image of page 2
Objective 3 Primitive shapes Plane Sphere Triangle
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Objective 3 Primitive shapes Sphere Plane Triangle Lighting
Image of page 4
Objective 3 Primitive shapes Sphere Plane Triangle Lighting Shadows
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Objective 3 Primitive shapes Sphere Plane Triangle Lighting Shadows Reflections
Image of page 6
Source Code – The Ray class
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Source Code – Setting up the Ray Project 1 ray per pixel Demo code converts pixel from raster space to world space Demo code accounts for aspect ratio and field of view
Image of page 8
Source Code – Setting up the Ray Project 1 ray per pixel Demo code converts pixel from raster space to world space
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 10
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Source Code – Projecting the Ray ● Use “CastRay” as recursive function ● Use “PayLoad” to record current state of the ray Source Code – Ray-Object intersections ● Extend “Object” class for primitive shapes – Override “Intersect” function: – Use to fill in “IntersectInfo” class – Find material properties for the nearest object to the Ray’s origin Additional Functions ● Refractions ● Intersection of other primitives ● Acceleration structures e.g. Grid, BVHs ● Soft shadows ● Soft reflections ● Depth of Field ● Subsurface scattering...
View Full Document

  • Spring '14
  • primitive shapes

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern