POV-Ray : Newsgroups : povray.newusers : usage of #declare : Re: usage of #declare Server Time
29 Jul 2024 00:29:41 EDT (-0400)
  Re: usage of #declare  
From: Penelope20k
Date: 5 Jun 2007 04:11:26
Message: <46651aae$1@news.povray.org>
chnge

#declare SourceImage = "F:\apps\POV-Ray for Windows
v3.6\hfields\HF101SizeMaters44.png";

into

#declare SourceImage = "F:\\apps\\POV-Ray for Windows
v3.6\\hfields\\HF101SizeMaters44.png";


double  the \

should be solve the prob






news:web.4664c4dcbdd8b0ac38f605ab0@news.povray.org...
>
> can anyone tell me why this does not work: (the #declare line gets the
> yellow overlay)
>
> #declare SourceImage = "F:\apps\POV-Ray for Windows
> v3.6\hfields\HF101SizeMaters44.png";
>
> height_field {
>   png SourceImage
>   translate -0.5
>   scale <52,12,52>
>   pigment{color rgb <1,1,0> }
> }
>
> but this does:
>
> height_field {
>   png "F:\apps\POV-Ray for Windows v3.6\hfields\HF101SizeMaters44.png"
>
>   translate -0.5
>   scale <52,12,52>
>   pigment{color rgb <1,1,0> }
> }
>
>
>
>
>


Post a reply to this message

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