POV-Ray : Newsgroups : povray.programming : where can I find the mapping between intensity and point Server Time
28 Jul 2024 08:22:18 EDT (-0400)
  where can I find the mapping between intensity and point (Message 1 to 5 of 5)  
From: Wu Yang
Subject: where can I find the mapping between intensity and point
Date: 18 Oct 2002 10:55:28
Message: <3db020e0@news.povray.org>
Hi,all
  I have found the DBL variable intensity in do_diffuse(), do_irid(),
do_phone(), do_specular() functions in lighting.cpp file. I think this is
what I need. But I can not find the point mapping to this intensity. Could
someone help me to find it? Thanks a lot.
Wu Yang


Post a reply to this message

From: Christopher James Huff
Subject: Re: where can I find the mapping between intensity and point
Date: 18 Oct 2002 12:26:10
Message: <chrishuff-7775A7.12211218102002@netplex.aussie.org>
In article <3db020e0@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu> 
wrote:

>   I have found the DBL variable intensity in do_diffuse(), do_irid(),
> do_phone(), do_specular() functions in lighting.cpp file. I think this is
> what I need. But I can not find the point mapping to this intensity. Could
> someone help me to find it? Thanks a lot.

There is no "point mapping". There is also no "intensity" variable 
except for in do_irid(), though there is a "Intensity" in the others. It 
is just a variable to hold data for the calculations, the same name just 
happens to be used in several functions. For example, in do_diffuse(), 
it is the brightness of the light reflected along the ray from a light 
source. In do_irid(), it is a scaling factor for the intensity of the 
iridescence effect.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Wu Yang
Subject: Re: where can I find the mapping between intensity and point
Date: 18 Oct 2002 14:21:49
Message: <3db0513d@news.povray.org>
Thank you for your reply.
  I think that "Colour" is the key element in forming a camera image, while
"Intensity" is the key element in forming a radar image. And intensity is a
parameter of colour. I am not sure that if these two intensities is the same
one. In light.cpp file, I found intensity variable in several functions and
it is used to calculate the colour of a object. I thought that this maybe
what I need, but I do not know the owner of this intensity,that is to say,
which point have this intensity(this is what mapping means). Maybe not
right, please give me some advice. Thanks a lot.

Best Regard
Wu Yang


 "Christopher James Huff" <chr### [at] maccom> wrote in message
news:chr### [at] netplexaussieorg...
> In article <3db020e0@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu>
> wrote:
>
> >   I have found the DBL variable intensity in do_diffuse(), do_irid(),
> > do_phone(), do_specular() functions in lighting.cpp file. I think this
is
> > what I need. But I can not find the point mapping to this intensity.
Could
> > someone help me to find it? Thanks a lot.
>
> There is no "point mapping". There is also no "intensity" variable
> except for in do_irid(), though there is a "Intensity" in the others. It
> is just a variable to hold data for the calculations, the same name just
> happens to be used in several functions. For example, in do_diffuse(),
> it is the brightness of the light reflected along the ray from a light
> source. In do_irid(), it is a scaling factor for the intensity of the
> iridescence effect.
>
> --
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/


Post a reply to this message

From: ABX
Subject: Re: where can I find the mapping between intensity and point
Date: 18 Oct 2002 14:32:36
Message: <3pk0ru8g4o40lfdvqljm65epjjq4ur51tb@4ax.com>
On Fri, 18 Oct 2002 14:25:00 -0400, "Wu Yang" <wya### [at] cswrightedu> wrote:
> And intensity is a
> parameter of colour.

I'm not familiar with problem you described but if you mean intensity as in
HSI color space perhaps you can use conversion from image/color/pixel in RGB
to HSI and take Intensity components. Is it sufficient ? Check for 'RGB to
HSI' in google.

ABX


Post a reply to this message

From: Christopher James Huff
Subject: Re: where can I find the mapping between intensity and point
Date: 18 Oct 2002 15:50:04
Message: <chrishuff-B2D72D.15450718102002@netplex.aussie.org>
In article <3db0513d@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu> 
wrote:

>   I think that "Colour" is the key element in forming a camera image, while
> "Intensity" is the key element in forming a radar image. And intensity is a
> parameter of colour. I am not sure that if these two intensities is the same
> one. In light.cpp file, I found intensity variable in several functions and
> it is used to calculate the colour of a object. I thought that this maybe
> what I need, but I do not know the owner of this intensity,that is to say,
> which point have this intensity(this is what mapping means). Maybe not
> right, please give me some advice. Thanks a lot.

It isn't. I just told you what it was.
Again, these "Intensity" or "intensity" variables are just variables to 
hold temporary intermediate values in the process of computing shading, 
iridescence, or highlights. They aren't related to each other other than 
holding similar information and thus having the same or similar names, 
and are completely unrelated to the intensity component in some color 
spaces. The "owner" is the function that has the variable...these are 
variables local to the function, as you can see if you bother to read 
the source code.

There is also no "map" of colors to points. It is sounding more and more 
like you don't understand raytracing and have a very simple view of how 
POV-Ray works...raytracing doesn't compute what colors are at what 
points, but the colors seen along rays and the passage of rays of lights 
through the scene. It isn't that hard to figure out, you are in the 
right files, just actually read the code that's there instead of jumping 
on variables that have certain names.
You also keep blathering about radar, which is a very different thing. 
Why don't you just say what you are trying to accomplish? I've asked you 
to do this several times. If I just see more of this kind of message, 
I'm not going to waste my time on them.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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