POV-Ray : Newsgroups : povray.programming : exposure control woes : Re: exposure control woes Server Time
28 Jul 2024 08:17:23 EDT (-0400)
  Re: exposure control woes  
From: Kari Kivisalo
Date: 23 Sep 2002 07:14:52
Message: <3D8EF7B8.A5596C82@luxlab.com>
Kevin Loney wrote:
>
> I'm getting strange black bands
> everywhere. any thoughts as to why?
>
> void Expose_Color (COLOUR Color, DBL Time)
> {
>  register DBL gray, expgray;
>  gray = GREY_SCALE(Color);
>  if(gray)
>  {
>   expgray = 1-exp(-Time*gray);
>   Color[pRED] = (expgray/gray) * Color[pRED];
>   Color[pGREEN] = (expgray/gray) * Color[pGREEN];
>   Color[pBLUE] = (expgray/gray) * Color[pBLUE];
>  }
> }

The color channels are separate so try this:

Color[pRED] =   1-exp(-Time*Color[pRED]);
Color[pGREEN] = 1-exp(-Time*Color[pGREEN]);
Color[pBLUE] =  1-exp(-Time*Color[pBLUE]);



_____________
Kari Kivisalo


Post a reply to this message

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