POV-Ray : Newsgroups : povray.newusers : Mountain : Re: Mountain Server Time
5 Oct 2024 15:52:15 EDT (-0400)
  Re: Mountain  
From: clipka
Date: 24 Aug 2009 08:18:54
Message: <4a92852e$1@news.povray.org>
tiocfaidh schrieb:
> I have tried this:
> 
> height_field{ tga "test.TGA" smooth
>               texture {
>                       pigment{quick_color Tan}
>                       finish {ambient 0.10 diffuse 0.75 phong 0.1}}
>               translate<-0.5,-0.001,0> scale<100,15,100>}
> 
> But doesnt work, I keep getting parse errors, no matching } .....

Parses fine here; your "brace imbalance" must be due to some other parts 
of your source file.

Here's where it pays off to develop a consistent coding (and indenting) 
style. Cleaned up a bit, your code is as follows:

   height_field {
     tga "test.TGA" smooth
     texture {
       pigment {
         quick_color Tan
       }
       finish {
         ambient 0.10 diffuse 0.75 phong 0.1
       }
     }
     translate<-0.5,-0.001,0> scale<100,15,100>
   }

Beautifying the rest of the code should help you locate the problem.


Post a reply to this message

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