POV-Ray : Newsgroups : povray.general : Latitude, longitude, radius pattern? : Re: Latitude, longitude, radius pattern? Server Time
15 Jun 2024 11:48:13 EDT (-0400)
  Re: Latitude, longitude, radius pattern?  
From: Mike Horvath
Date: 21 Aug 2015 01:37:08
Message: <55d6b904$1@news.povray.org>
I forgot I did this once before for an object collection item. I ended 
up copying the code and re-using it.

#declare latitude_pigment_1 = pigment
{
	radial
	color_map
	{
		[0.5 color srgb <040,066,018>/255]
		[0.5 color srgb <067,084,029>/255]
	}
	frequency longitude_div/2
}
#declare latitude_pigment_2 = pigment
{
	radial
	color_map
	{
		[0.5 color srgb <067,084,029>/255]
		[0.5 color srgb <040,066,018>/255]
	}
	frequency longitude_div/2
}
/*
#declare radius_pigment = pigment
{
	function {f_r(x,y,z)}
	pigment_map
	{
		[0 color srgb 1/2]
		[1 latitude_pigment_1]
	}
}
*/
#declare longitude_pigment = pigment
{
	function {f_ph(x,y,z)/pi}
	pigment_map
	{
		[0.5 latitude_pigment_1]
		[0.5 latitude_pigment_2]
	}
	frequency longitude_div/4
}
#declare checker_sphere_pigment = pigment {longitude_pigment}


Post a reply to this message

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