Skip to content

Yu-1218/OpenGL_RayTracing

Repository files navigation

OpenGL_RayTracing

Project of Selective Course 'Computer Graphics'. Implement ray tracing which is a useful technique to generate realistic image of 3D scene.

Main Implementation of Interface:
There are five main functions for the pipeline except for the template:

  • 1.TraceRay(in main.cpp):
    Given a ray, calculate the color at the nearest intersection point.

  • 2.Shade(in main.cpp):
    Given the ray-surface intersection information, calculate the corresponding color.

  • 3.Triangle::Hit(in hittable.cpp):
    Perform intersection calculation between a ray and a triangle.

  • 4.Sphere::Hit(in hittable.cpp):
    Perform intersection calculation between a ray and a sphere.

  • 5.Quadric::Hit(in hittable.cpp):
    Perform intersection calculation between a ray and a quadric surface.

Input format:

Output Rendering result:

About

OpenGL C++ RayTracing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published