POV-Ray : Newsgroups : povray.general : question about light_source : Re: question about light_source Server Time
6 Oct 2024 11:11:51 EDT (-0400)
  Re: question about light_source  
From: CAS
Date: 20 Mar 2014 11:35:01
Message: <web.532b09cf7ece86556a92a3a00@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> CAS <sup### [at] cstnetcn> wrote:
> > I have known the value of solar irradiance in 817nm band is 1.08279
> > W/(m2*nm).How can I define it?  "light_source {<sun_x,sun_y,sun_z> color rgb
> > 1.08279 } "I set statement as above in pov,but I doublt it is wrong,because
> > 1.08279 is a solar irradiance,color rgb is color ,but I donnot know how
> > to convert them or how to define solar irradiance.beg a hot to help me !thank
> > you!
>
> Note that for the most part POV-Ray uses a quite simplistic Phong
> lighting model with RGB values. It does not model light at different
> wavelengths, nor is it able to process colors in any more complicated
> ways than manipulating RGB values, nor are most of its lighting
> calculations any more complex than the simple Phong lighting model.
>
> (Note that "Phong lighting model", or "Phong reflection model", should
> not be confused with "phong highlights". The lighting model is an
> illumination model that simply adds three components to the color of
> a surface: ambient (a constant), diffuse (a lighting component that's
> independent of the viewing angle) and specular (a lighting component
> that's dependent on the viewing angle).)
>
> Far from me to disparage POV-Ray, but to be completely honest, the
> Phong lighting model is quite poor and simplistic. (It's *major*
> advantage is that it's very fast and can produce, when properly used,
> acceptable results.)
>
> If you want to convert a unit of irradiance into RGB, you'll have to
> figure out the conversion formula. This is probably not a trivial task,
> nor is it probably very productive because of the limitations of the
> lighting model described above.
>
> (There are many problems in getting an "accurate" conversion from some
> standard irradiance unit to RGB. One of them is that the relation between
> irradiance and the apparent brightness of what ends up on your monitor
> screen is subject to rather complex gamma curve functions, which are not
> only dependent on the gamma used by POV-Ray and the image file, but also
> the gamma correction performed by your display hardware and the screen.)
>
> --
>                                                           - Warp

Thanks for your help.I am so sorry to trouble you again. I still have some
confusions:
1:how does pov calculate the value of each pixel of final image? My
understanding is :using the irradiance and surface properties to calculate the
value of each pixel of final image. Using the simplistic Phong lighting model to
calculate the color of each pixel of final image.I didnot set related "phong"
statements but also get a result,my codes are given below,I beg you have a check
whether it is true.Emphasisly,my reflection is BRDF(dependent on suning
angle、 viewing angle 、wavelength).I use "specular X".Is it
right?
2:I know irradiance 1.08279(W/(m2*nm).I have converted XYZ to the values
of color rgb using formula,my conversion formula is:
r=(3.2406*3.815429E-06)+(-1.5372*1.523114E-06)
g=(-0.9689*3.815429E-06)+(1.8758*3.815429E-06)
b=(0.0557*3.815429E-06)+(-0.2040*3.815429E-06)
but the value of b is negative,it must be something wrong in it.I only know the
solar irradiance is 1.08279(W/(m2*nm),not know what color the
light_source,so how can I code with it? "color rgb 1.08279 "must be wrong?
3:HDR image is a image of scene,its dynamic range is generally more than 100: l,
and record each pixel which value is real scene brightness (CD/m^2).so I regard
it as radiance.is it right?
                                                                       miaoyu


Post a reply to this message

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