Skip to content

A Kotlin Version of Peter Shirley's 'Ray Tracing in One Weekend'

License

Notifications You must be signed in to change notification settings

chrisdenman/RayTracingInOneWeekend

Repository files navigation

A Kotlin implementation of Peter Shirley's 'Ray Tracing in One Weekend' book.

Chapter Links

  1. Overview
  2. Output An Image
  3. The vec3 class
  4. Rays, a Simple Camera, and Background
  5. Adding a Sphere
  6. Surface Normals and Multiple Objects
  7. Antialiasing
  8. Diffuse Materials
  9. Metal
  10. Dielectrics
  11. Positionable Camera
  12. Defocus Blur
  13. Where Next?

Notes

  • Not optimised for efficiency.
  • I use a slightly different method for refraction calculation (see first reference).

Final Scene

An image of the final rendered scene Rendered at: 2000px * 1333px, 500 samples/px, maximum depth of 50.

Future Work

  • Rectangular parallelepipeds.
  • Triangle support.
  • Abstracting the description of scenes (maybe a DSL and custom file-format).

References

About

A Kotlin Version of Peter Shirley's 'Ray Tracing in One Weekend'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages