POV-Ray : Newsgroups : povray.unofficial.patches : Facets feature request : Re: Facets feature request Server Time
6 Oct 2024 11:38:13 EDT (-0400)
  Re: Facets feature request  
From: Ron Parker
Date: 7 Aug 2001 14:11:08
Message: <slrn9n0bpt.44k.ron.parker@fwi.com>
On Tue, 07 Aug 2001 19:28:15 +0200, Christoph Hormann wrote:
>Another thought: why is it not possible to be used as a pigment, it
>would probably look similar to crackle/crackle solid, but i don't really
>see a reason for that restriction.

The first (curved-surfaces-only) version doesn't work on pigments because the
way it works is by (essentially) quantizing the normal vector.  It's not really
a pattern at all; it's more of an operation.  The second version doesn't work
on pigments because it is identical to crackle solid except that it works with
vectors rather than pattern values.  In addition, the design of POV makes it 
impossible to make one set of parameters work with pigments and another not.

I have considered the possibility that the second method in facets should be 
dropped, but it does fill a niche that can't be filled with other existing 
patterns.  However, as an operator rather than a pattern, I wonder if the 
syntax should be changed somehow.

--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

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