POV-Ray : Newsgroups : povray.newusers : Mountain Server Time
31 Oct 2024 06:00:52 EDT (-0400)
  Mountain (Message 1 to 6 of 6)  
From: tiocfaidh
Subject: Mountain
Date: 24 Aug 2009 00:50:04
Message: <web.4a921b3f64d46b6a4d495c930@news.povray.org>
I was wondering, how would one create a simple mountain?


Post a reply to this message

From: clipka
Subject: Re: Mountain
Date: 24 Aug 2009 01:31:27
Message: <4a9225af$1@news.povray.org>
tiocfaidh schrieb:
> I was wondering, how would one create a simple mountain?

For a 101 on mountain building, I'd suggest running the standard 
orthographics template scene, and using that output for a height field.

 From there on, you can embark on learning how to...

- create the height field directly from the pattern, without the interim 
step of the orthographics scene (you'll probably find "pigment 
functions" and "function images" helpful for that)

- combine multiple patterns (or functions, for that matter) to get more 
control over the mountain's shape

I guess that's the standard route of learning how to create mountains.


Post a reply to this message

From: tiocfaidh
Subject: Re: Mountain
Date: 24 Aug 2009 04:50:00
Message: <web.4a9253b876c01cd7fade07670@news.povray.org>
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 } .....

?


Post a reply to this message

From: St 
Subject: Re: Mountain
Date: 24 Aug 2009 06:06:11
Message: <4a926613$1@news.povray.org>
"tiocfaidh" <nomail@nomail> wrote in message 
news:web.4a9253b876c01cd7fade07670@news.povray.org...
>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 } .....
>
> ?

 Add a curly bracket at the very end.

    ~Steve~


Post a reply to this message

From: clipka
Subject: Re: Mountain
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

From: Reactor
Subject: Re: Mountain
Date: 24 Aug 2009 14:00:01
Message: <web.4a92d4c976c01cd7ffeb02cf0@news.povray.org>
"tiocfaidh" <nomail@nomail> wrote:
> 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 } .....
>
> ?

Can you post the rest of the code?  Even though POV-ray gives a line number of
where it discovered the error, it is quite possible that the actual missing
brace could be somewhere else in the file.  Also, what exactly did the the
error say?  The height_field portion appears to be fine, did it mention the
height_field as not being closed, or something else?

The style tips that others have given you will also help prevent errors, and, if
you are using Windows, the editor has the very handy "Match Brace" feature under
the Search menu.  If a brace or parenthesis is highlighted or the cursor is next
to one, hitting match brace will cause it to jump to the brace or paren it is
paired with.  If one can't be found, it plays the alert sound.


-Reactor


Post a reply to this message

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