|
|
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
|
|