Skip to content

My extensions of Peter Shirley's "Ray Tracing in One Weekend"

License

Notifications You must be signed in to change notification settings

ccaitlingo/ray-tracing-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray-tracing-extensions

My implementation and extension of Peter Shirley's "Ray Tracing in One Weekend"

Development Instructions

  1. Open with VS Code Developer command prompt
  2. Run Build Task (Ctrl + Shift + B)
  3. No need to run
  4. src/main.exe > ppms/render_title.ppm
  5. To view your rendered image, upload the .ppm to PPM Viewer

ray_tracing_extensions_multiple_spheres

My Extensions

Emission: Modification of ray_color method and creation of emissive material subclass to add material in the ray tracer that can emit light instead of just reflecting it.

ray_tracing_extensions_before ray_tracing_extensions_after

Object Imports: Creation of triangle_plane class (Möller–Trumbore ray triangle intersection to implement "hit" method). Creation of parser class to read imported .obj or .blend files (after they are converted to .txt), which parse the vertices and faces, extracting information to make the triangles, and adds the triangle mesh to the world.

gem heart gem_pos_1 heart_pos_1

About

My extensions of Peter Shirley's "Ray Tracing in One Weekend"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages