News for hackers. Stuff that matters.
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by penteract on Monday June 10, 2024 @11:02AM (#40634389)
Until you can observe that light doesn't travel instantaneously, it would be consistent to believe that a beam leaves your eyes, bounces off a surface, and informs you (as though it were a limb, perhaps) when it hits a light source.
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by jagged-chisel on Monday June 10, 2024 @12:54PM (#40635530)
The more I think about it the weirder it gets.

It’s day time, the sun is up, it’s a cloudless day. Ambient light is bouncing all over, including into a south facing window (i.e. no direct sunlight.) How does the Eye Light Emitter do its job in this case?

Now, I don’t mean “this concept is impossible” because that’s clear. I’m genuinely curious how this would have been explained by someone at the time.

Re:Scratchapixel 4.0, Learn Computer Graphics Programming by meindnoch on Monday June 10, 2024 @01:41PM (#40636021)
Vision rays emanate from your retina, get refracted by the lens, exit the pupil, go outside the window, get scattered in the air, and - some of them - end up hitting the sun.
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by SapThePixelFox on Thursday June 13, 2024 @02:20AM (#40666504)
You should read scratchapixel really)

https://www.scratchapixel.com/lessons/3d-basic-rendering/int...

In the real world light travels from the light source to the eye. But this lesson xplains that simulating this with a computer is not efficient. A more efficient technique is to follow the path of light but in reverse, starting from the eye and waking back to the lights making up the scene. Again read the lesson(s) it's all explained and that's why the lessons are there in the first place.

Re:Scratchapixel 4.0, Learn Computer Graphics Programming by adamhartenz on Monday June 10, 2024 @09:18PM (#40641225)
Except that would never explain shadows. Why does my eye beam not let me see what is in shadow, if there is no such thing as light beams coming from a light source?
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by penteract on Friday June 14, 2024 @05:07AM (#40679016)
Because the beam coming from your eyes and hitting a shadow would never reach a light source (you could say it gets absorbed before it reaches a light source).