POV-Ray : Newsgroups : povray.beta-test : pattern{pigment_pattern{..... Server Time
31 Jul 2024 02:32:14 EDT (-0400)
  pattern{pigment_pattern{..... (Message 1 to 2 of 2)  
From: ingo
Subject: pattern{pigment_pattern{.....
Date: 19 Sep 2001 14:00:53
Message: <Xns9121CB9962792seed7@povray.org>
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

From: Nathan Kopp
Subject: Re: pattern{pigment_pattern{.....
Date: 30 Sep 2001 23:43:17
Message: <3bb7e655$1@news.povray.org>
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

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