POV-Ray : Newsgroups : povray.beta-test : color function Server Time
31 Jul 2024 02:20:26 EDT (-0400)
  color function (Message 1 to 1 of 1)  
From: Elias Pschernig
Subject: color function
Date: 12 Sep 2001 19:08:26
Message: <3b9feaea@news.povray.org>
I wasn't sure if I should post this to "newusers" (as I might just have made
a simple mistake, or mis-read the docs) or "beta-test", but anyway:

#declare PIG = function { pigment { crackle } }

#declare TEX = texture { function { PIG(x, y, z) } }

Why does this not work ? If I use pattern, it works, but the colors are lost..

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

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