|
|
"cpmac" <web### [at] cpmaccom> wrote in message
news:web.44339a126679399260277a370@news.povray.org...
> Hello
> I'm trying to experiment with including bimaps.
> I've used the following code but get the message
> parse error cannot open png file.
> The file renders correctly if I put a simple pigment instead of the
> texture.
>
> What am I doing wrong?
>
> #declare panel= prism {
> linear_sweep
> linear_spline
> 0, // sweep the following shape from here ...
> 0.01, // ... up through here
> 4, // the number of points making up the shape ...
> <0,0>, <2,0>, <2,2>, <0,2>
> texture {
> pigment{ image_map { png "/noddy2.png" }
> }
> rotate<-90,0,0>
> translate<0,6,0>
> scale 0.5
> }
>
I think the forward slash is the problem. I removed it and it parsed without
error on Windows, finding a png file in the same directory as the pov file.
You're also missing a closing curly bracket on the pigment.
Regards,
Chris B.
Post a reply to this message
|
|