ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

The Ray Tracer Challenge - 026 - Pattern in Yaml

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2024
  • Let's add support for the definition of Patterns to our YAML world loader. This will allow to define patterns on the cli as well as in our REPL.
    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:32 - Implementing Yaml Pattern Parsing
    03:13 - Defining the Yaml Structure
    05:38 - with_pattern Builder Function
    07:40 - Visit the structure and parse it
    26:40 - Trying the Parser for a Spin
    27:35 - Creating a Scene with a Pattern
    29:59 - Committing the Changes
    33:05 - Rebuilding the REPL with Pattern Support
    37:06 - Recap / Outro
    #raytracer #rustlang #yaml

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

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

    How did you calculate the cofactors for a 4x4 matrix on page 38? I'm stuck. The book only showed how to do 3x3's. He gets to the 4x4 and never explains how!