POV-Ray : Newsgroups : povray.general : question about light_source : Re: question about light_source Server Time
6 Oct 2024 11:14:01 EDT (-0400)
  Re: question about light_source  
From: Alain
Date: 21 Mar 2014 14:28:22
Message: <532c84c6@news.povray.org>

> scott <sco### [at] scottcom> wrote:
>>> It is my code.Real image is a photograph.the value of each pixel in real image
>>> are like these:
>>> 0.220900
>>> 0.375800
>>> 0.375800
>>> 0.346500
>>> 0.277700
>>> 0.355800
>>> 0.396900
>>> 0.441800
>>> 0.442800
>>> 0.382300
>>> I doublt this statement "pigment {color rgb spectral}"is wrong.spectral is
>>> responsible to  "pov-ref.txt" which save the value of each pixel of real image.
>>
>> In general, writing "pigment{color rgb X}" does not mean the output
>> image will have a pixel value of X. The value X tells POV how diffusely
>> reflective the surface is, POV then uses the brightness of any lights,
>> the relative position of the objects and surface normals to calculate
>> what the pixel colour should be.
>>
>> If your goal is to match the brightness of POV's output with your photo,
>> then I suggest you simply add a multiplier to your light source and
>> tweak it until they match:
>>
>> #local FACTOR = 10.0;
>> light_source {<sun_x,sun_y,sun_z>
>>               color rgb <1.00229e-005,3.46021e-006,-5.65828e-007>*FACTOR }
>
> I have modified my code:
> " #local FACTOR = 10.0;
>> light_source {<sun_x,sun_y,sun_z>
>>               color rgb <1.00229e-005,3.46021e-006,-5.65828e-007>*FACTOR }"
> I find the result is the same as "light_source {<sun_x,sun_y,sun_z>
>>               color rgb <1.00229e-005,3.46021e-006,-5.65828e-007>",nor I mutiply 10
or 100,the result is not change.I
> am so confuse!
>
>
By default, every textures have this:
finish{diffuse 0.7 ambient 0.1}

Your red component, the largest one, is 10000 times smaller than the 
ambient value.
With such a disproportion, it's normal that you don't see any 
difference. By multiplying your light intensity by 10 to 100, you bring 
the light's intensity from 1/10000 to 1/1000 up to 1/100 of the ambient 
level.


Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.