|
![](/i/fill.gif) |
"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
|
![](/i/fill.gif) |