POV-Ray : Newsgroups : povray.unofficial.patches : A pattern for each color component : Re: A pattern for each color component Server Time
2 Sep 2024 08:15:29 EDT (-0400)
  Re: A pattern for each color component  
From: Bouf
Date: 17 Mar 2000 02:58:34
Message: <38D1E9DC.1E3BA88E@nanterre.marelli.fr>
Peter Popov wrote:
> 
> 
> #declare R_Bozo=function{pigment{bozo{color_map{[0 Red][1 Black}}}
> #declare B_Wood=function{pigment{wood{color_map{[0 Blue][1 Black}}}
> #declare G_Agate=function{pigment{agate{color_map{[0 Green][1 Black}}}
> 
> sphere
> {0,1 pigment{function{R_Bozo(x,y,z)+B_Wood(x,y,z)+G_Agata(x,y,z)}}}

I think that this doesn't work for the effect Warp is looking for...

Try something like this:

#declare R_Bozo=pigment{bozo{color_map{[0 Red*3][1 Black}}
#declare B_Wood=pigment{wood{color_map{[0 Blue*3][1 Black}}
#declare G_Agate=pigment{agate{color_map{[0 Green*3][1 Black}}

sphere
{0,1 pigment{
	average
	pigment_map {
		[1 R_Bozo]
		[1 B_Wood]
		[1 G_Agate]
	}
}

But there is no solution for the filter (or transmit) channel...

Bouf.


Post a reply to this message

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