POV-Ray : Newsgroups : povray.general : ChromaDepth : Re: ChromaDepth Server Time
27 Sep 2024 18:27:26 EDT (-0400)
  Re: ChromaDepth  
From: Mike Horvath
Date: 17 Jan 2016 23:07:40
Message: <569c650c@news.povray.org>
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


Post a reply to this message

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