POV-Ray : Newsgroups : povray.newusers : Confusing error when trying to use brick pattern : Confusing error when trying to use brick pattern Server Time
13 Jun 2024 18:56:42 EDT (-0400)
  Confusing error when trying to use brick pattern  
From: kirbyanddee
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

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