The Ray Tracer Challenge - 023 - The World in YAML

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ค. 2024
  • Instead of defining the World/Scene to be rendered within our code, lets define it using an easy to write YAML syntax. We parsing the YAML and constructing the needed world object from it on the fly.
    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
    0:00:00 - Intro
    0:00:30 - Recap
    0:01:51 - Upcoming
    0:03:37 - WorldLoader trait
    0:04:50 - YAML
    0:10:42 - Yaml Loader Implementation
    0:15:43 - Learning: Mutable Encapsulation
    0:20:59 - Learning: anyhow
    0:29:13 - Using the WorldLoader
    0:54:41 - Using AsRef
    0:59:23 - First World Yaml
    1:00:42 - First render with World Yaml
    1:04:01 - A second Camera
    1:06:19 - Playing around with the Yaml
    1:12:26 - Outro
    #raytracer #rustlang #yaml
  • วิทยาศาสตร์และเทคโนโลยี

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