POV-Ray : Newsgroups : povray.general : Slope pattern in function : Re: Slope pattern in function Server Time
19 Nov 2024 13:32:18 EST (-0500)
  Re: Slope pattern in function  
From: Christoph Hormann
Date: 27 Feb 2002 13:09:20
Message: <3C7D20D0.BE37CEA8@gmx.de>
theVIPER wrote:
> 
> When a slope pattern based pigment is used in a function, it always returns
> the beginning of the color_map.
> This seems logical, because the function only has the position in space and
> not the normal vector.
> 
> Does anyone know a workaround (or dirty trick ;) for this?

The slope pattern is only defined at the surface of the object it is
applied to.  Therefore you question does not seem to make sense to me.  

Using intersection information with an arbitrary object is of course an
interesting concept for a pattern or function.  See:

http://www-public.tu-bs.de:8080/~y0013390/povcyg/docu/docu_pattern01.html#OBJSLOPE

for an example.  It might be that in the future 'trace' will be made
available in functions too but not in Povray 3.5.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 21 Feb. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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