The Ray Tracer Challenge - 032 - Gradient Pattern

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2024
  • Let's add a Gradient Pattern for fun and profit.
    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: github.com/jakobwesthoff/the_...
    The Ray Tracer Challenge (affiliate): amzn.to/3xVssbR
    Rust: www.rust-lang.org/
    Contents
    00:00 - Intro
    02:17 - Pattern Recap
    03:29 - Creating a Gradient Pattern
    06:31 - Default for Gradient
    11:03 - Builder Pattern for Gradient
    14:58 - FuzzyEq for Gradient
    18:10 - Stencil for Gradient
    24:19 - Implementing YAML Parsing for Gradient
    26:02 - Static Dispatch for Gradient
    29:05 - World Definition with a Gradient Pattern
    33:25 - Playing a little with the new Gradient Pattern
    41:45 - Outro
    #rustlang #raytracer #gradient
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 3

  • @gregoryarutyunyan5361
    @gregoryarutyunyan5361 2 ปีที่แล้ว

    @MrJakob, can you please tell how important is understanding of underlying mathematics for this book? Does it make sense to work though it without sound understanding of underlying concepts?

    • @MrJakob
      @MrJakob  2 ปีที่แล้ว

      What you need to understand raytracing is a basic knowledge about geometry, which includes vectors and a little trigonometry. If you have basic understanding of those concepts you are perfectly fine, as the book is very detailed in its explanations.
      You might even be able to follow the book, without that knowledge, but I guess it wouldn’t be much fun, as you will be able to „copy“ from the book, but you won’t understand what you are doing exactly. I hope that helps a little.

    • @gregoryarutyunyan5361
      @gregoryarutyunyan5361 2 ปีที่แล้ว

      @@MrJakob Thank you for the reply!