POV-Ray : Newsgroups : povray.newusers : Parse warning on refraction : Re: Parse warning on refraction Server Time
18 Jun 2024 08:13:00 EDT (-0400)
  Re: Parse warning on refraction  
From: gharryh
Date: 18 Jun 2013 06:00:01
Message: <web.51c02ea0201eece9520168c30@news.povray.org>
"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
>
> To apply this to an object, use the material statement:
>
> [code]
> object { MyObject material { Acrylic } }
> [/code]

Just did that but got a error. I counted all the brackets but found no anomali.
{code]
union {  // Create a box with two rounded edges
    union {
        cylinder{<11,0,24><11,.1,24>1 }
        cylinder{<11,0,-24><11,.1,-24>1 }
        box{<11,0,25><-12,.1,-25> }
        box{<11,0,24><12,.1,-24> }
//    } texture { red_led }
      } material { red_led }
}
[/code]
with this as the material def:
[code]
#declare red_led = material {
    texture {
        pigment {Red filter .6}
        finish {
            specular .7
            roughness .02
//            refraction 1
//            ior 1.5
        }
    }
    interior{ior 1.5}
}
[/code]
The rror is this:
"L:\POV-Ray\Aandrijving\TextLabel.inc" line 23: Parse Error: No matching } in
'material', texture identifier found instead


Post a reply to this message

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