|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I am trying to combine pigments and functions in different ways. Here is
an example:
#declare pigment_1 = pigment
{
slope {+y}
color_map
{
[0 rgb 0]
[1 rgb 1]
}
}
#declare function_1 = function {pigment {pigment_1}}
#declare pigment_2 = pigment {function {function_1(x,y,z)}
But I am getting a parse error on pigment_2. What is the correct syntax
to get this example to work?
Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
See my post in p.t.s-f
On 5/13/2021 6:19 PM, Mike Horvath wrote:
> I am trying to combine pigments and functions in different ways. Here is
> an example:
>
>
> #declare pigment_1 = pigment
> {
> slope {+y}
> color_map
> {
> [0 rgb 0]
> [1 rgb 1]
> }
> }
> #declare function_1 = function {pigment {pigment_1}}
> #declare pigment_2 = pigment {function {function_1(x,y,z)}
>
>
> But I am getting a parse error on pigment_2. What is the correct syntax
> to get this example to work?
>
>
> Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mike Horvath <mik### [at] gmailcom> wrote:
> But I am getting a parse error on pigment_2. What is the correct syntax
> to get this example to work?
You don't have to use the x, y, z until you actually evaluate the function for
something.
So you should just be able to do:
#declare pigment_2 = pigment {function {function_1}}
Also, test_clu.pov ran for 6:45, and I halted it, as it was still parsing away
like mad. You must have quite a system if you did it in 2:20.
Maybe just attach your completed render?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 5/13/2021 7:07 PM, Bald Eagle wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
>
>> But I am getting a parse error on pigment_2. What is the correct syntax
>> to get this example to work?
>
> You don't have to use the x, y, z until you actually evaluate the function for
> something.
>
> So you should just be able to do:
>
> #declare pigment_2 = pigment {function {function_1}}
>
I found what I was looking for here:
http://news.povray.org/povray.newusers/thread/%3C5473da29%40news.povray.org%3E/
But I cannot get it to produce anything other than rgb <0,0,0> in the
render. See p.t.s-f.
> Also, test_clu.pov ran for 6:45, and I halted it, as it was still parsing away
> like mad. You must have quite a system if you did it in 2:20.
>
> Maybe just attach your completed render?
>
>
>
>
I got this all to work. Will update the other thread later.
Mike
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |