Skip to content

fremag/ray-tracer

Repository files navigation

ray-tracer

The Ray Tracer Challenge

Ambiguous cylinder Thanks to TJ Wei for his video
Triangle optimizations
Scene Standard Vector3 Inline AVX 256
Dragons 22 s 17 s 7 s 3 s
Christmas 11 s 9 s 4 s 3 s
Bonus chapter: Bounding Volume hierarchy
Reference:
BVH #Tri. Inters. # Box Inters. Time (1 thread)
No 7512 M 2.6 M 325 s
Yes 347 M 14.3 M 15 s
Ratio x 22 / 5.5 x 22
Iso surface marching cubes / Metaballs



Thanks to Scrawk for his code.
Christmas
Reference:
Orthographic camera Penrose triangle
Perlin noise / pattern
Spot lights
Bonus Chapter: soft shadows

Reference:

Chapter xx: demos
Chapter xx: basic UI
Chapter xx: more triangles
Chapter 16: Constructive Solid Geometry (CSG)
Chapter 15: triangles

Smooth triangles

Chapter 14: groups
Chapter 13: cylinders
Chapter 12: cubes
Pov-ray ?
Chapter 11: Reflection and Refraction

Thanks to Javan Makhmali I wanted to check my ray tracer was correct so I got the same scene as him to compare results.

Chapter 10: patterns
Chapter 9: planes
Chapter 8: shadows
Chapter 8: Shadows with "acne" issue
Chapter 7: making a scene
Chapter 6: lighting and shading

About

The Ray Tracer Challenge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages