0
$\begingroup$

I am obviously not understanding something related to light for a ray tracer.

Reading Spectral representation and Point light calculation

A bit of a context:

My question is: in room at X degrees Celsius, for ray of light with an originating linear RGB color of (0.4,0.6,0.6), with an originating power in Watts of 750W, at what distance would it become invisible, with a color (0,0,0)?

My limited understanding tells me that light intensity decreases at the rate given by 1/(d*d).

At 500 meters: (what I am about to write is so ridiculous, but let's do it) So we would have A = 750 / (500*500) = .765 and put back in sRGB I multiply by 255

(A * 0.4, A * 0.6, A* 0.6) = (0, 0, 0) approx.

500m look way to high for a 750W light to reach a sRGB color of 0. So my calculation is wrong from the start.

My experiments so far:

Using Blender, with a white spotlight of 750W oriented at 90d, it takes approx 80m for it to be invisible to my eye, on a white plane.

We are talking of very non scientific measure, obviously but it gives an order of magnitude: 80m is far more plausible.

Could someone tell me how to correctly calculate the power and color of a light, from its originating color at distance X meters?

Thanks!

Edit:

My current decision is to use a completely different light calculation and it yields visually correct results. Instead of starting with known units, I just decide the length in meters a ray can have and apply my attenuation according to the cumulated distance.

It works.

$\endgroup$
7
  • $\begingroup$ Cycles in Blender does not produce correct light intensities for spotlights. If you set a light to emit some amount of watts and then reduce the spotlight angle, the light intensity does not increase. $\endgroup$ Mar 15 at 8:35
  • $\begingroup$ Also it's not clear to me what you're actually asking... $\endgroup$ Mar 15 at 8:39
  • $\begingroup$ I had an issue with the attenuation calculation for ray tracing. The result was very incorrect. Now it is a problem solved :) $\endgroup$
    – LeXav
    Mar 15 at 8:54
  • 2
    $\begingroup$ A light source has the same apparent intensity regardless of how far away it is, assuming a perfect vacuum. Lights don’t get dimmer with distance; they just get smaller. $\endgroup$ Mar 15 at 9:40
  • 1
    $\begingroup$ Mimic it in what context? A naive path tracer solves it via monte carlo integration: the further away a light is, the less likely it is to be hit by a ray, so fewer rays will hit it, resulting in less light. Of course that's super noisy and only works with really big lights, so direct light sampling needs to estimate the probability first. If the light is a point source with zero surface area, you can use the inverse square law and just shoot a ray directly at it. $\endgroup$ Mar 15 at 14:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.