9

The Ray Tracer Challenge

 2 years ago
source link: https://www.youtube.com/watch?v=4y1aRPiH9Ko
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
#raytracer #rustlang #plane

The Ray Tracer Challenge - 022 - Planes

210 views
Nov 26, 2021

168 subscribers

Until now our only body type is a sphere. This episode we will introduce the next one: A Plane. Finally a real floor for our renderings.

Join me, while I implement chapter by chapter from the book "The Ray Tracer Challenge" by Jamis Buck in Rust a language completely new to me.

Come with me on the journey of learning the Rust programming language, while implementing a Ray Tracer in a Test driven fashion, to have fun and (hopefully) create some astonishing rendered graphics.

Let's study the inner workings of a Ray Tracer, and take a look under the hood of the Rust language, while taking on this challenge on a weekly basis.

All the code produced within this series is provided on github, for you to follow along.

Github: https://github.com/jakobwesthoff/the_... The Ray Tracer Challenge (affiliate): https://amzn.to/3xVssbR Rust: https://www.rust-lang.org/

Contents

00:00 - Intro 00:17 - Recap 01:47 - Goal of this session 03:17 - Refactoring our Intersectable trait 18:41 - Implementing the Plane Intersectable 22:19 - Normal vector of a plane 24:44 - Intersection with a plane 30:49 - Adding enum dispatch for Plane struct 33:18 - Putting it all together 35:51 - Rendering a Plane

#raytracer #rustlang #plane


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK