|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
|
|