The Ray Tracer Challenge - 028 - Pattern Transformation

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

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

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

    this is actually ALL i was looking for ! Great Work ! :D

  • @meowsqueak
    @meowsqueak ปีที่แล้ว

    I enjoyed watching this, seeing your thought processes and how they translate into Rust changes.
    In your YAML for transforms, I think “by:” would be a better term than “to:”, as the former sounds relative and the latter sounds absolute.

    • @MrJakob
      @MrJakob  ปีที่แล้ว +1

      Thanks for your kind words. You might be right. I will consider this, when I start working on this again in the future.

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

    In chapter 14 - groups. I'm struggling to add the Group in the parent attribute within my shapes without giving the error "field does not implement `Copy`".
    Looks like I'm going to have to refactor all the code to support this 🥲
    Get ready.

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

      Thanks for the hint. Should it come to that I will deal with it, when the problem arises. Refactoring can be fun too, as it means always learning better ways to do things. I try and always such things positive.

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

      @@MrJakob no pain no gain hahaha

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

      Indeed

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

    Chapter One. The explanation of "w" is super confusing. The author says it should be 0 or 1 for vector or point. He says 2 is invalid. THEN goes on to show it getting values like -14 or -2 during multiplication on Page 8. Other times he completely drops w entirely and shows points and vectors as only 3 values.... Can anyone clarify if w should ALWAYS be 0 or 1? Thanks.

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

      As questions about the 4x4 matrices as well as 4 dimensional vectors are coming up quite often, I decided to make a video about, why and how those are used. Currently I am hoping to have some time this week to produce such a video. But to answer your question quickly, the w component can be something different than 0 or 1 in certain situations. However those situations are not really relevant within the current raytracer implementation.

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

    Thanks for the feedback; you are correct, i created the stripes different than what the book asked for and i thought my implementation was wrong.
    Thank you, it helped me a lot to understand where I was going wrong; because the stripes were getting wrong when I put them in a Cone.
    My github -> ViniciusSJV