POV-Ray : Newsgroups : povray.general : POVRAY Pixel Color Calculation? Server Time
7 Nov 2024 17:31:32 EST (-0500)
  POVRAY Pixel Color Calculation? (Message 1 to 4 of 4)  
From: Marcus Hudritsch
Subject: POVRAY Pixel Color Calculation?
Date: 25 Aug 2003 11:52:30
Message: <3f4a30be@news.povray.org>
Hi all,
I'm writing a raytracer for educational purpose.

I'm using an OpenGL like lighting calculation extendet with the reflected
and tranparent
branch as in classic raytracing.

I'm comparing the generated images with image from POVRAY with the same
scene
definition. Sometimes I see differences and want to know where they come
from.

I can't find the precise formula how POVRAY calculates the pixel color.

Does anyone know where to find a description on the POVRAY pixel color
calculation?

Thanks
Marcus


Post a reply to this message

From: ABX
Subject: Re: POVRAY Pixel Color Calculation?
Date: 25 Aug 2003 11:55:32
Message: <n7ckkvgev61m8mts22l65gecoe8p02k6j8@4ax.com>
On Mon, 25 Aug 2003 17:53:00 +0200, "Marcus Hudritsch" <mhu### [at] bluewinch>
wrote:
> I can't find the precise formula how POVRAY calculates the pixel color.
>
> Does anyone know where to find a description on the POVRAY pixel color
> calculation?

Most of it is in lighting.cpp off course.

ABX


Post a reply to this message

From: Marcus Hudritsch
Subject: Re: POVRAY Pixel Color Calculation?
Date: 25 Aug 2003 11:59:22
Message: <3f4a325a$1@news.povray.org>
Thanks, but is this (important) part documented somewhere?

Marcus

"ABX" <abx### [at] abxartpl> wrote in message
news:n7ckkvgev61m8mts22l65gecoe8p02k6j8@4ax.com...
> On Mon, 25 Aug 2003 17:53:00 +0200, "Marcus Hudritsch"
<mhu### [at] bluewinch>
> wrote:
> > I can't find the precise formula how POVRAY calculates the pixel color.
> >
> > Does anyone know where to find a description on the POVRAY pixel color
> > calculation?
>
> Most of it is in lighting.cpp off course.
>
> ABX


Post a reply to this message

From: ABX
Subject: Re: POVRAY Pixel Color Calculation?
Date: 25 Aug 2003 12:18:22
Message: <padkkv8fj0gtdr7cic1p5qoills9fuhfd3@4ax.com>
On Mon, 25 Aug 2003 17:59:51 +0200, "Marcus Hudritsch" <mhu### [at] bluewinch>
wrote:
> "ABX" <abx### [at] abxartpl> wrote in message
> news:n7ckkvgev61m8mts22l65gecoe8p02k6j8@4ax.com...
> > On Mon, 25 Aug 2003 17:53:00 +0200, "Marcus Hudritsch"
> <mhu### [at] bluewinch>
> > wrote:
> > > I can't find the precise formula how POVRAY calculates the pixel color.
> > > Does anyone know where to find a description on the POVRAY pixel color
> > > calculation?
> >
> > Most of it is in lighting.cpp off course.
>
> Thanks, but is this (important) part documented somewhere?

It is part of POV-Ray sources and algorithms are written there in C++ code
(significantly) commented. For example start from Determine_Apparent_Colour()
function.

ABX


Post a reply to this message

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