Hello everyone,
I like to save time of others, so I explained my question just in the picture.
I have no idea, how to solve this, can someone help, please?
In the simplest sense, the 'free space' light intensity is given by
\(\displaystyle I(R)\, =\, \frac{S}{R^2}\)
Where S is a source level constant for a point source and R is the distance from the source [typically there is a reference distance, e.g. 1 m, and, because of the problems at R=0, one doesn't get much closer than that reference distance]. The distance from the fixed source point at (x
0,y
0,z
0) is
R = \(\displaystyle \sqrt{(x-x_0)^2\, +\, (y-y_0)^2\, +\, (z-z_0)^2}\)
Now, to your problem: If we let the origin of your system be the lower left of your board, that is the lower left of square a1, and R
1 be the distance above the board (flat screen) of the point source. Then the point source is at (5.5, 4.5, R1) then we have the point R
1=(5.5, 4.5, 0) and
\(\displaystyle I(R_1)\, =\, \frac{S}{R_1^2}\, =\, 1\)
so that S = R
12 and
\(\displaystyle I(R)\, =\, \frac{R_1^2}{R^2}\)
If you want the center of a square to represent the average intensity in that square, then you can either compute on the fly, i.e. divide your square into n sections, compute intensities and average, or build an array to store values, retrieve values and average.