|
|
The pattern{} doesn't like the pigment_pattern{} although it turns any
pigment into a pattern.
The scene below gives:
Parse error: no matching } in 'pattern', pigment_pattern found instead.
---%<------%<---
#version 3.5;
camera {location <0,0,-13> look_at 0}
light_source {<50,200,-500> rgb 1}
#declare P=pigment{
wood
sine_wave
warp{turbulence 0.3}
scale 0.3
translate <0.5,0.5,0>
}
height_field {
function 200,200 {
pattern {
pigment_pattern{pigment{P}}
}
}
translate -0.5
scale <10,2,10>
rotate <90,0,0>
pigment {rgb 1}
}
---%<------%<---
PII 233 192MB NT4 SP6 POV-Ray-beta.2
Ingo
--
Photography: http://members.home.nl/ingoogni/
Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|
|
|
Fixed for the next beta, though the correct syntax is:
function 200,200 {
pattern {
pigment_pattern{P}
}
}
Also, note that you could (and should) do this instead:
function 200,200 {
pigment{P}
}
I did "fix" it, but simply for language consistency... not because the
feature was really necessary.
-Nathan
"ingo" <ing### [at] homenl> wrote ...
> The pattern{} doesn't like the pigment_pattern{} although it turns any
> pigment into a pattern.
>
> The scene below gives:
> Parse error: no matching } in 'pattern', pigment_pattern found instead.
>
> ---%<------%<---
> #version 3.5;
> camera {location <0,0,-13> look_at 0}
> light_source {<50,200,-500> rgb 1}
>
> #declare P=pigment{
> wood
> sine_wave
> warp{turbulence 0.3}
> scale 0.3
> translate <0.5,0.5,0>
> }
>
> height_field {
> function 200,200 {
> pattern {
> pigment_pattern{pigment{P}}
> }
> }
> translate -0.5
> scale <10,2,10>
> rotate <90,0,0>
> pigment {rgb 1}
> }
> ---%<------%<---
>
> PII 233 192MB NT4 SP6 POV-Ray-beta.2
>
> Ingo
>
> --
> Photography: http://members.home.nl/ingoogni/
> Pov-Ray : http://members.home.nl/seed7/
Post a reply to this message
|
|