POV-Ray : Newsgroups : povray.general : ChromaDepth : Re: ChromaDepth Server Time
1 Jun 2024 09:08:39 EDT (-0400)
  Re: ChromaDepth  
From: Mike Horvath
Date: 17 Feb 2018 05:52:06
Message: <5a880956$1@news.povray.org>
On 2/17/2018 2:55 AM, Thomas de Groot wrote:
> On 17-2-2018 6:24, Mike Horvath wrote:
>> I found a paper which proposes an alternate color interpolation for 
>> the same glasses. Instead of using red, green and blue to encode 
>> depth, the new method uses red, white and blue.
>>
>> https://graphics.tudelft.nl/Publications-new/2014/SE14a/
>>
>> How would I create a pigment that works like this? Thanks.
>>
>>
> 
> Maybe this?
> 
> pigment {
>    gradient z
>    color_map {
>      [0.00 Red]
>      [0.50 White]
>      [1.00 Blue]
>    }
>    scale <1, 1, DepthOfScene>
> }
> 
> Maybe you have to switch Blue and Red. Not sure.
> 


Would spherical be better than gradient? That's what I've been using.


Mike


Post a reply to this message

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