POV-Ray : Newsgroups : povray.advanced-users : "f_r" function help : "f_r" function help Server Time
23 Apr 2024 21:50:45 EDT (-0400)
  "f_r" function help  
From: Mike Horvath
Date: 8 Mar 2017 19:44:56
Message: <58c0a588$1@news.povray.org>
I want to use the "f_r" function to color a sphere from black (inner) to 
white (outer). However, there needs to be a hole in the center equal to 
1/7 of the sphere's radius, and the gradient must start at this location 
instead of the sphere's exact center.

Here is what I have:

pigment
{
	function {f_r(x,y,z) * 6/7 + 1/7}
	pigment_map
	{
		[0 color srgb 0]
		[1 color srgb 1]
	}
}

But the results are not correct.

How do I accomplish this? Thanks!


Mike


Post a reply to this message

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