POV-Ray : Newsgroups : povray.general : ChromaDepth : Re: ChromaDepth Server Time
15 May 2024 17:25:53 EDT (-0400)
  Re: ChromaDepth  
From: Mike Horvath
Date: 18 Jan 2016 00:11:39
Message: <569c740b@news.povray.org>
On 1/17/2016 11:07 PM, Mike Horvath wrote:
> I created the following pigment to be used with ChromaDepth glasses:
>
>      pigment
>      {
>          gradient vnormalize(Camera_Location - Camera_LookAt) * -1
>          color_map
>          {
>              [0/4 srgb <1,0,0,>]
>              [1/4 srgb <1,1,0,>]
>              [2/4 srgb <0,1,0,>]
>              [3/4 srgb <0,1,1,>]
>              [4/4 srgb <0,0,1,>]
>          }
>          scale vlength(Camera_Location - Camera_LookAt) * 100
>          translate Camera_Location
>      }
>
> However, the relationship between distance and color is linear in my
> example. How do I change this so that the hue is based on atan(distance
> from camera)? Thanks!
>
>
> Mike

Or maybe it should be twice the distance from the camera location to 
look_at?


Mike


Post a reply to this message

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