the-ray-tracer-challenge-racket
lisp-sandbox
the-ray-tracer-challenge-racket | lisp-sandbox | |
---|---|---|
1 | 1 | |
2 | 5 | |
- | - | |
1.7 | 1.1 | |
11 months ago | 9 months ago | |
Racket | Common Lisp | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
the-ray-tracer-challenge-racket
-
The joy of building a ray tracer, for fun, in Rust
Yes, the book has both implementations of the required functions (for all the complicated ones you need) and tests all written in pseudocode.
The book is really good. I have a half-finished implementation in F#, and what I find striking is just how close the F# code is to the pseudocode. I have also started an idiomatic port to Racket but have only done the tuples, vector, and point implementations so far. I need to pick these up again.
https://github.com/bmitc/the-ray-tracer-challenge-fsharp
https://github.com/bmitc/the-ray-tracer-challenge-racket
I mean, check this out: https://github.com/bmitc/the-ray-tracer-challenge-fsharp/blo...
I have also worked through pieces of Ray Tracing in One Weekend (what was referenced in this post). They get you going much faster, but the code is written in C++. I found the translation to a functional style was harder (was just using Racket and F#'s mutability features), whereas the way The Ray Tracer Challenge is laid out and specified, I found it much easier to translate to an idiomatic functional style.
lisp-sandbox
-
The joy of building a ray tracer, for fun, in Rust
When I wrote my ray tracer, I set up a simple websocket server to stream pixels to a canvas element.[1] it’s a trivial way to do this without a ton of GUI code.
[1]: https://github.com/fiddlerwoaroof/lisp-sandbox/blob/master/r...
What are some alternatives?
the-ray-tracer-challenge-fsharp - F# implementation of the ray tracer found in The Ray Tracer Challenge by Jamis Buck
raytracer-exp - A simple raytracer built as an exercise to learn some Rust
tev - High dynamic range (HDR) image viewer for graphics people
RayTracingWeekend.jl - Ray Tracing in a week-end, implemented in Julia
minifb - MiniFB is a small cross platform library to create a frame buffer that you can draw pixels in
keikan - An elegant (imo) rendering engine written in Rust.