POV-Ray : Newsgroups : povray.programming : Apply gamma correction after antialiasing : Re: Apply gamma correction after antialiasing Server Time
6 Oct 2024 13:18:29 EDT (-0400)
  Re: Apply gamma correction after antialiasing  
From: Anders K 
Date: 27 Nov 2002 16:57:34
Message: <3de53fce$1@news.povray.org>
Christoph Hormann wrote:
> Just for the record: although such a change is surely a good idea this
> does not mean the linear interpolation of colors in rgb space is the
> optimal solution for color blending problems.

I'm not sure I see why. I've never seen unwanted colors testing my patch,
even when I deliberately lined up two clashing colors halfway between pixel
boundries:

// +w160 +h120 +am1 +r8 +a0.0
global_settings { assumed_gamma 1.0 }
camera { orthographic right 4/3*x up y direction z }
plane { -z, -1 pigment { checker rgb <0, 1, 1>, rgb <1, 0, 1> scale 1/4
translate 1/240 } finish { ambient 1 } }

But I'm curious to hear what you have in mind.

Anders

--
light_source{6#local D=#macro B(E)#macro A(D)#declare E=(E-#declare
C=mod(E D);C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(
C>2)}torus{1..2clipped_by{box{-2y}}rotate<1 0C>*90translate<D+1A(2)
*2+1#else}cylinder{0(C-v=1).2translate<D+C*A(2)A(4)#end-2 13>finish
{specular 1}pigment{rgb x}#end#end#end-8;1B(445000298)B(519053970)B
(483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

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