#raytracer — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #raytracer, aggregated by home.social.
-
Light Branch Flow. Stunning and at some point shows how is present in tsunami wave travel and lights caustics. I wonder if it should affect how a #raytracer calculates light paths.
-
Last year I started to implement the raytracer from the book The Ray-Tracer Challenge from Pragmatic Programmer by Jamis Buck. It describes all concepts very well, and the implementation is done through cucumber test cases, so it can be followed in any language you want.
http://www.raytracerchallenge.com/
My implementation is coded in Rust and renders the images using the game library Macroquad.
https://github.com/ollej/macroquad-raytracer#Rust #RustLang #Macroquad #raytracer #gfx #RayTracerChallenge
-
The fifteenth chapter of the ray tracing book is a bit more exciting as it adds the triangle and smooth triangle shapes as well as a parser for OBJ files. This makes it possible to load 3D models and add them to the scene.
I also made an optimization to cache the inverse of the transformation matrix which sped up the calculations a lot.
Here is an image of a smooth high polygon version of the Utah Teapot.
#RayTracer #RayTracerChallenge #Rust #RustLang #PragmaticProgrammer #3DModel
-
I had to do a lot of refactoring of my ray-tracer to get Chapter 14 working where Groups are added. Making it possible to combine shapes and translate them at the same time.
The end result is not very exciting though. This is a hexagon made up of six cylinders as edges and six spheres as corners.
#RayTracer #RayTracerChallenge #Rust #RustLang #PragmaticProgrammer
-
In chapter 13 two more shapes are added to the ray tracer. A cylinder and a cone.
#RayTracer #RayTracerChallenge #RayTracing #Rust #RustLang #programming #book #PragmaticProgrammer
-
My progress has been a bit slower, but I've now finished chapter chapter 11 in the Ray-Tracer Challenge. My raytracer now has both reflection and refraction and it's possible to generate images with mirrored and transparent objects.
#RayTracer #RayTracerChallenge #RustLang #PragmaticProgrammer
-
I just finished following chapter 7 of the Ray Tracer Challenge book from Pragmatic Programmer. It is now possible to raytrace a scene with multiple objects.
-
Today I completed chapter 6 of the book The Ray Tracer Challenge from Pragmatic Programmer in Rust and Macroquad. My raytracer can now display a sphere with reflection. It takes about 200 seconds to generate an image of 1000x1000 pixels, so it isn't very efficient.
The book is great, it is very easy to follow, with cucumber tests describing what needs to be implemented and pseudo code for the algorithms so it can be implemented in any language.
https://pragprog.com/titles/jbtracer/the-ray-tracer-challenge/