|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I was wondering, how would one create a simple mountain?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
|
|