News for hackers. Stuff that matters.
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by jagged-chisel on Monday June 10, 2024 @10:53AM (#40634285)
> "...vision occurred through beams of light emitted from the eyes, interacting with the environment"

How did they explain lanterns and torches in this theory?

Re:Scratchapixel 4.0, Learn Computer Graphics Programming by meindnoch on Monday June 10, 2024 @11:31AM (#40634647)
What do you mean lanterns and torches?

On the macroscopic scale, light rays can be replaced with vision rays, and everything works out the same. That's how ray tracing works. People thought eyes were doing ray tracing.

Re:Scratchapixel 4.0, Learn Computer Graphics Programming by Keyframe on Monday June 10, 2024 @11:45AM (#40634804)
That's how we still do (simulation of) ray tracing (Whitted).
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by _a_a_a_ on Monday June 10, 2024 @01:24PM (#40635846)
What do you think he means? It's a good question.
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).
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by HideousKojima on Monday June 10, 2024 @01:32PM (#40635931)
I remember a guy who had a novel theory (mostly as a joke, I think) that light bulbs don't emit light, they simply suck away the darkness. He literally called lightbulbs "darksuckers."
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by lupire on Monday June 10, 2024 @10:01PM (#40641490)
Roger Wilcox, from the 1990s?

http://www.rogermwilcox.com/darksucker.html

Re:Scratchapixel 4.0, Learn Computer Graphics Programming by HideousKojima on Tuesday June 11, 2024 @02:20AM (#40643097)
It was someone I knew IRL but I guess that's where they got it from
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by Phrodo_00 on Monday June 10, 2024 @01:33PM (#40635942)
A far as I know, in raytracing, you bounce your ray from the surface's normal and if it hits a "light source" then it's brighter (by the inverse square distance to the source). Maybe they explained the same way, except they used a different name?
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by jagged-chisel on Monday June 10, 2024 @01:42PM (#40636042)
I think this is plausible. I guess they thought unlimited ray bounces were a thing.
Re:Scratchapixel 4.0, Learn Computer Graphics Programming by SapThePixelFox on Thursday June 13, 2024 @02:13AM (#40666464)
That's why the lessons are online. You can read through them and everything is explained there. In ray-tracing light most often travels from the eyes to the surface and from the surface to the lights (direct illumination). Various laws (such as as the inverse square and lambert-cosine laws) are applied to simulate reality.