Ray Tracing in 5 minutes

Поділитися
Вставка
  • Опубліковано 14 тра 2024
  • Equivalent to a 50 minute university lecture on Ray Tracing. Part 1 of 3.
    Part 2: • Ray Tracing in 5 minut...
    0:00 - intro
    1:27 - tracing from the eye
    1:48 - single bounce tracing
    3:03 - reflection
    3:21 - refraction
    4:17 - ray tracer on the back of a business card
    Graphics in 5 minutes is a series of cartoon-style videos that teach computer graphics in 10x less time. You can take the equivalent of a University level computer graphics course in just over two hours. The playlist is here:
    • Graphics in 5 minutes ...
    See here for more information: g5m.cs.washington.edu/

КОМЕНТАРІ • 6

  • @victorgarciacarrasco9925
    @victorgarciacarrasco9925 Рік тому +5

    simple and sensational

  • @jessejsamuel
    @jessejsamuel 5 місяців тому +1

    great explanation! short & sweet.

  • @bugra7097
    @bugra7097 22 дні тому +1

    you are the best. I watched many vids but that is the only one makes sense.

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 7 місяців тому +1

    amazing

  • @ocamlmail
    @ocamlmail Рік тому

    Thank you! Consider the case on 0:35 -- am I right that because of refraction/reflection of ray we have distorted image of mountain? I'm comparing this with gps case where we have signal reflection hence timing issues hence distorted true distance. Here we have no issues with time, no close time binding, rather we have multiply rays goint into our eye but the distance of these rays were different, so how eye form visualization and capture proper distance and scaling? Simple averaging? I mean that there should be different images based only on reflected rays vs direct rays, but in reality we see them all (mixed case), so how final visualization is produced?

    • @HenryLoenwind
      @HenryLoenwind Рік тому +1

      Simply put, for each pixel to be drawn on the screen, many rays are sent out with slight offsets. The pixel covers an area of the screen, not a single point, so just using one ray would give some really random result that may not be correct for the majority of the pixel's area. Each ray then has a probability of being reflected/refracted depending on the material it hits. A shiny surface will reflect all rays in the same direction every time, while a matte surface will scatter them.
      If you have ever seen a video showing a raytraced image being formed over time, each frame was adding an additional ray for each pixel. After the first one, you have what looks like random pixels where you can guess the outline of objects, but a couple of hundred or thousand rays later, you get a pretty nice picture.
      However, be advised that this describes real raytracing. Modern GPUs use path tracing instead, where they send out a couple of rays to determine how objects are lit and then use traditional rendering to do the heavy lifting.