POV-Ray : Newsgroups : povray.advanced-users : Reproducing pigment from functions ... Server Time
29 Jul 2024 16:29:36 EDT (-0400)
  Reproducing pigment from functions ... (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Reproducing pigment from functions ...
Date: 12 Apr 2002 21:16:47
Message: <3cb786ff$1@news.povray.org>
David Wallace <dar### [at] earthlinknet> wrote:
> #declare REBUILD = pigment { function(rd,gr,bl,ft,tr) {FNPIG}}

  Have you actually tried that?

-- 
#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: David Wallace
Subject: Re: Reproducing pigment from functions ...
Date: 12 Apr 2002 22:29:14
Message: <3cb797fa@news.povray.org>
"Michael Andrews" <m.c### [at] readingacuk> wrote in message
news:3CB45A4F.413CA07F@reading.ac.uk...

>

>
> >     [1 function { FNPIG(x,y,z).filter } colour_map {[0 rgb 0][1 filter
5]} ]
>
> Sorry, no, this is always black :-/
>
> I hadn't thought of trying this way though ...
>
> Bye for now,
> Mike Andrews.

I tried a 5-parameter function thinking that the results would be truncated
otherwise... POV rejected it as an error:
"Function parameters for pigment functions are not allowed."

I suspect that your problem is that any 5D color vector that is interpreted
in a function block is truncated to 3D RGB form.  If that's so then you're
SOL.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Reproducing pigment from functions ...
Date: 13 Apr 2002 16:45:08
Message: <3cb898d4@news.povray.org>
In article <3cb797fa@news.povray.org> , "David Wallace" 
<dar### [at] earthlinknet> wrote:

> I tried a 5-parameter function thinking that the results would be truncated
> otherwise... POV rejected it as an error:
> "Function parameters for pigment functions are not allowed."
>
> I suspect that your problem is that any 5D color vector that is interpreted
> in a function block is truncated to 3D RGB form.  If that's so then you're
> SOL.

No, this is not the case.  The error message simply says you may not specify
function parameters for functions with a fixed parameter list, which is
explained in the documentation.


    Thorsten


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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