POV-Ray : Newsgroups : povray.advanced-users : slope function ?? Server Time
25 Nov 2024 19:34:35 EST (-0500)
  slope function ?? (Message 1 to 5 of 5)  
From: ahmet oktar
Subject: slope function ??
Date: 20 Apr 2002 19:21:29
Message: <3cc1f7f9@news.povray.org>
hi dear Povers!!
 i want to make a slop function but always return zero. is it possible?
  #declare ff =  function { pigment {slope {<0,0,1> ,0,1} }}


Post a reply to this message

From: Christoph Hormann
Subject: Re: slope function ??
Date: 21 Apr 2002 05:10:39
Message: <3CC2820F.C84D7164@gmx.de>
ahmet oktar wrote:
> 
> hi dear Povers!!
>  i want to make a slop function but always return zero. is it possible?
>   #declare ff =  function { pigment {slope {<0,0,1> ,0,1} }}

No, it is not, the slope pattern requires the normal vector from the
intersection test which is not available in fucnctions.  

There is no method in Povray 3.5 to do this for arbitrary shapes but you
can use the object_slope pattern from megapov MCP that was made exactly
for this purpose:

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

Christoph

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


Post a reply to this message

From: ahmet oktar
Subject: Re: slope function ??
Date: 21 Apr 2002 08:42:02
Message: <3cc2b39a@news.povray.org>
thanks christoph! i can't understand why not for 3.5. it's important like
this features!

"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:3CC2820F.C84D7164@gmx.de...
>
>
> ahmet oktar wrote:
> >
> > hi dear Povers!!
> >  i want to make a slop function but always return zero. is it possible?
> >   #declare ff =  function { pigment {slope {<0,0,1> ,0,1} }}
>
> No, it is not, the slope pattern requires the normal vector from the
> intersection test which is not available in fucnctions.
>
> There is no method in Povray 3.5 to do this for arbitrary shapes but you
> can use the object_slope pattern from megapov MCP that was made exactly
> for this purpose:
>
> http://www.tu-bs.de/~y0013390/povcyg/docu/docu_pattern01.html#OBJSLOPE
>
> Christoph
>
> --
> POV-Ray tutorials, IsoWood include,
> TransSkin and more: http://www.tu-bs.de/~y0013390/
> Last updated 20 Apr. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Warp
Subject: Re: slope function ??
Date: 21 Apr 2002 10:29:37
Message: <3cc2ccd1@news.povray.org>
ahmet oktar <ahm### [at] yahoocom> wrote:
> thanks christoph! i can't understand why not for 3.5.

  If you have a slope function defined and you call it with some values,
what should the function return?

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: ahmet oktar
Subject: Re: slope function ??
Date: 21 Apr 2002 13:38:03
Message: <3cc2f8fb@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3cc2ccd1@news.povray.org...
> ahmet oktar <ahm### [at] yahoocom> wrote:
> > thanks christoph! i can't understand why not for 3.5.
>
>   If you have a slope function defined and you call it with some values,
> what should the function return?
>
yes return a value but it's always constant. It not give slope values in
render time


Post a reply to this message

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