|
|
On 7/6/2017 5:55 PM, peyrol wrote:
> In the documentation for height fields, I read this:
>
> "POT files generated with [Fractint] create fantastic landscapes."
>
> It also says a user defined function is possible. I want to put a steep and
> jagged, possibly surreal looking, mountain in the background of an image. Any
> reference to POT files or user functions which might work for me would be most
> welcome. TIA
>
>
Ah! the very reason I downloaded PovRay almost 20 years ago. :)
You can use a POT file as a heightfield (Although I've never got round
to doing it. :( )
I found that using png files quite satisfactory for my needs.
You can use functions or isosurfaces as another method.
--
Regards
Stephen
Post a reply to this message
|
|
|
|
On 07/06/2017 12:55 PM, peyrol wrote:
> In the documentation for height fields, I read this:
>
> "POT files generated with [Fractint] create fantastic landscapes."
>
> It also says a user defined function is possible. I want to put a steep and
> jagged, possibly surreal looking, mountain in the background of an image. Any
> reference to POT files or user functions which might work for me would be most
> welcome. TIA
>
>
A collection of sample scenes ships with POV-Ray. On Unix based systems
you can find them in your local install at:
<installdir>/share/povray-<version>/scenes
so something like:
/usr/local/share/povray-3.7/scenes
To your question there is for example a mountain in the benchmark scene
using a function to drive the creation of a height_field. Search for
height_field in <..>/scenes/advanced/benchmark/benchmark.pov.
Useful includes can be found in
/usr/local/share/povray-3.7/include
With the code base on github you can always grab these files off the web
too - if your install is perhaps more minimal. For scenes in the current
master branch see for look in:
https://github.com/POV-Ray/povray/tree/master/distribution/scenes
Bill P.
Post a reply to this message
|
|
|
|
"peyrol" <nomail@nomail> wrote:
> In the documentation for height fields, I read this:
>
> "POT files generated with [Fractint] create fantastic landscapes."
>
> It also says a user defined function is possible. I want to put a steep and
> jagged, possibly surreal looking, mountain in the background of an image. Any
> reference to POT files or user functions which might work for me would be most
> welcome. TIA
A subject close to my heart!
Like Thomas I would say all of the above. But I would also add that if you know
the rough outline of your topography, you can:
1) create a grey scale png file on which you have placed a rough outline,
2) run it through 'wilbur' which has very good erosion functions,
3) generate a function pattern in pov-ray using the png file
4) create an isosurface and transform the original function pattern with other
predefined functions.
like this:
#####
#declare fn_Map01=function {
pigment { image_map {png "IslandMask.png" interpolate 2 } rotate<90, 0, 0>
scale <50, 0, 50> translate <-25, 0, -25>}
}
#declare P1 = function(x,y,z){f_ridged_mf(x, y, z, 0.9, 5, 10, 0.75, 1, 0)}
#declare P2 = function {
pigment { dents colour_map {[0 rgb 0][1 rgb 0.001]} scale 0.001 }
}
isosurface {
function { y-((P1(x,0,z)*fn_Map01(x, y, z).gray*0.5)+P2(x,0,z).gray) }
contained_by { box { <-25, -1, -25> <25, 1, 25> } }
max_gradient 3
scale 3000
rotate <0, 180, 0>
translate <0, -100, 0>
texture {T_Landscape}
}
#####
I do this kind of thing alot.
all the best,
Simon.
Post a reply to this message
|
|
|
|
On 2-8-2017 8:28, ingo wrote:
> in news:595f31fd$1@news.povray.org Thomas de Groot wrote:
>
>> dedicated height_field generators
>
> Though with some manual labour a lot can be done, a scanner and Krita for
> manipulating the scanned image, it has excellent 24 bit support. Leaves
> give nice HF's after quite a bit of smoothing,
>
Krita: One I didn't know about :-)
And for that matter of course, the Gimp, or PSP, or Photoshop can be
used too. It is a matter of creativity.
--
Thomas
Post a reply to this message
|
|