Skip to content
/ raykat Public

Simple raytracing engine in C (WIP). Based on "Ray Tracing in One Weekend" by Peter Shirley.

Notifications You must be signed in to change notification settings

ktkk/raykat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raykat

Simple raytracing engine in C (WIP). Based on Ray Tracing in One Weekend by Peter Shirley.

Watch image.png for a rough estimate of what the raytracer is capable of at this moment.

Progress image

Build

Build with make:

$ make

To generate the image, run the make rule "image":

$ make image

Todo

Here is what I'm planning to to next (eventually):

  • Improve vector operations: Changed pointer params to const.
  • Fix the coordinate system: This was really as easy as changing v-up.
  • Materials: Implemented. Lacks the shared pointer capability of the original. One material can only be used by one object.
  • Const correctness: Const all the things.
  • Inline utility functions: Vec3.h now just holds static inline declarations.
  • Command line arguments: Reading resolution and other settings from argv.
  • Read geometry from file: Implemented a rudimentary obj parser. Loading objs with tons of tris slows down renders tremendously though.
  • Environment maps.
  • Threading: I have no experience with pthread.h so this ought to be fun.
  • Textures.
  • Volumes.

References

About

Simple raytracing engine in C (WIP). Based on "Ray Tracing in One Weekend" by Peter Shirley.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published