POV-Ray : Newsgroups : povray.general : interesting mountains using Fractint? or a user defined function? : Re: interesting mountains using Fractint? or a user defined function? Server Time
6 Oct 2024 13:14:23 EDT (-0400)
  Re: interesting mountains using Fractint? or a user defined function?  
From: Simon J  Cambridge
Date: 8 Jul 2017 08:25:00
Message: <web.5960ce88a27e8145d9fe007c0@news.povray.org>
"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

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