POV-Ray : Newsgroups : povray.newusers : Confusing error when trying to use brick pattern Server Time
26 Dec 2024 06:09:08 EST (-0500)
  Confusing error when trying to use brick pattern (Message 1 to 4 of 4)  
From: kirbyanddee
Subject: Confusing error when trying to use brick pattern
Date: 4 Aug 2023 16:40:00
Message: <web.64cd6200ecd88e5be64c9d33df55a48b@news.povray.org>
Hi, I'm very new to POV-Ray so i've been looking at the reference docs to find
out what I can do. this code is present in the docs:

pigment {
  brick pigment{Jade}, pigment{Black_Marble}
  }

but i can't seem to get it working in a file. here's an example:

#include "colors.inc"
#include "textures.inc"
#include "shapes.inc"

background { color Cyan }
camera {
  location <0, 2, -3>
  look_at  <0, 1,  2>
}
sphere {
  <0, 1, 2>, 2

 pigment {
   brick pigment{Jade}, pigment{Black_Marble}
 }

}

light_source { <5, 30, -30> color White }



the render fails and it leaves this error:

File 'firstimg.pov' line 13: Possible Parse Error: Unmatched {
File 'firstimg.pov' line 14: Parse Error: No matching }, pigment identifier
 found instead
Fatal error in parser: Cannot parse input.


I can't get the brick pattern to work with two pigments, so i'm kind of confused
here, especially since this code was copy-pasted from the docs. Could I get some
help with this? Thank you (:


Post a reply to this message

From: Cousin Ricky
Subject: Re: Confusing error when trying to use brick pattern
Date: 4 Aug 2023 18:01:09
Message: <64cd7525$1@news.povray.org>
On 2023-08-04 16:39 (-4), kirbyanddee wrote:
> Hi, I'm very new to POV-Ray so i've been looking at the reference docs to find
> out what I can do. this code is present in the docs:
> 
> pigment {
>   brick pigment{Jade}, pigment{Black_Marble}
>   }
> 
> but i can't seem to get it working in a file. here's an example:
> 
> [snip]
> 
> the render fails and it leaves this error:
> 
> File 'firstimg.pov' line 13: Possible Parse Error: Unmatched {
> File 'firstimg.pov' line 14: Parse Error: No matching }, pigment identifier
>  found instead
> Fatal error in parser: Cannot parse input.

This appears to be an error in the documentation, as there is no such
pigment Black_Marble.  Try Red_Marble, White_Marble, or Blood_Marble.


Post a reply to this message

From: Bald Eagle
Subject: Re: Confusing error when trying to use brick pattern
Date: 4 Aug 2023 18:45:00
Message: <web.64cd7f691baad9131f9dae3025979125@news.povray.org>
"kirbyanddee" <nomail@nomail> wrote:

>  pigment {
>    brick pigment{Jade}, pigment{Black_Marble}
>  }

Also, if those things are textures, you may have to use texture {brick ....} in
order for it to work properly.

- BW


Post a reply to this message

From: Cousin Ricky
Subject: Re: Confusing error when trying to use brick pattern
Date: 4 Aug 2023 19:56:57
Message: <64cd9049$1@news.povray.org>
On 2023-08-04 18:44 (-4), Bald Eagle wrote:
> "kirbyanddee" <nomail@nomail> wrote:
> 
>>  pigment {
>>    brick pigment{Jade}, pigment{Black_Marble}
>>  }
> 
> Also, if those things are textures, you may have to use texture {brick ....} in
> order for it to work properly.

Jade is a pigment, defined in textures.inc.  Black_Marble is not defined
anywhere, but there are 3 other marble pigments defined in textures.inc.
 No 'texture' keyword is needed.


Post a reply to this message

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