POV-Ray : Newsgroups : povray.binaries.images : Isosurface landscape - any suggestions? Server Time
31 Jul 2024 08:32:34 EDT (-0400)
  Isosurface landscape - any suggestions? (Message 1 to 5 of 5)  
From: Jörg 'Yadgar' Bleimann
Subject: Isosurface landscape - any suggestions?
Date: 26 Feb 2010 17:18:24
Message: <4b8848b0@news.povray.org>
High!

While my machine closes in on the last few hundred frames of a 
3600-frame animation of an isosurface desert world, I started to ask 
myself how to achieve a more realistic surface relief. From high 
altitudes, my simple granite pattern mountains look fairly believable, 
but when rendering a scene from "pedestrian perspective" (as attached 
below), they look like soft undulating sand dunes rather than rugged 
mountains - and the outlines of land forms are very crude!

I would like to add some "ruggedness" while also keeping the lower 
altitudes smooth - how can it be done? Is it possible to use a 
texture_map also with isosurfaces?

See you in Khyberspace!

Yadgar


Post a reply to this message


Attachments:
Download '2010-02-22 ghurghusht, glatzer lacus from jawand insula, pedestrian view,take 1.jpg' (24 KB)

Preview of image '2010-02-22 ghurghusht, glatzer lacus from jawand insula, pedestrian view,take 1.jpg'
2010-02-22 ghurghusht, glatzer lacus from jawand insula, pedestrian view,take 1.jpg


 

From: Alain
Subject: Re: Isosurface landscape - any suggestions?
Date: 26 Feb 2010 20:23:04
Message: <4b8873f8$1@news.povray.org>

> High!
>
> While my machine closes in on the last few hundred frames of a
> 3600-frame animation of an isosurface desert world, I started to ask
> myself how to achieve a more realistic surface relief. From high
> altitudes, my simple granite pattern mountains look fairly believable,
> but when rendering a scene from "pedestrian perspective" (as attached
> below), they look like soft undulating sand dunes rather than rugged
> mountains - and the outlines of land forms are very crude!
>
> I would like to add some "ruggedness" while also keeping the lower
> altitudes smooth - how can it be done? Is it possible to use a
> texture_map also with isosurfaces?
>
> See you in Khyberspace!
>
> Yadgar

You may try with an onion or spherical pattern.
If you multiply your function by an onion pattern, that is properly 
scaled, Areas with altitudes near sea level will remain relatively 
unchanged while areas at higher altitude sould get more rugged.
Play with the wave type and the range of values.
You can also divide if you use an inverted fradient for your pattern.
In both cases, make sure that the function used don't reach zero.


Alain


Post a reply to this message

From: Reactor
Subject: Re: Isosurface landscape - any suggestions?
Date: 26 Feb 2010 21:20:01
Message: <web.4b8880239a68f28c7985c2ad0@news.povray.org>
=?ISO-8859-1?Q?J=F6rg_=27Yadgar=27_Bleimann?= <yaz### [at] gmxde> wrote:
> High!
>
> While my machine closes in on the last few hundred frames of a
> 3600-frame animation of an isosurface desert world, I started to ask
> myself how to achieve a more realistic surface relief. From high
> altitudes, my simple granite pattern mountains look fairly believable,
> but when rendering a scene from "pedestrian perspective" (as attached
> below), they look like soft undulating sand dunes rather than rugged
> mountains - and the outlines of land forms are very crude!
>
> I would like to add some "ruggedness" while also keeping the lower
> altitudes smooth - how can it be done? Is it possible to use a
> texture_map also with isosurfaces?
>
> See you in Khyberspace!
>
> Yadgar



Right now it looks like your isosurface is suffering from accuracy and
max_gradient problems.  The granite pattern with the default color_map is much
more complex than that with many small details.  Controlling the shape is
possible by using other functions to add details, and functions to control them.

For instance, if we have a landscape being produced by a pigment function
fn_land and details by fn_detail, and we only want these details to appear below
a certain altitude:

fn_land(x,y,z).red
- 0.10 * (fn_land(x,y,z).red < 0.25) *fn_detail(x,y,z).red

This means that fn_details will only be applied if the values for fn_land are
below 0.25.  Of course, this gives a sharp cut-off point, but that can be
controlled by a more complex function:

#local CutOffAlt   = 0.20;
#local FallOffDist = 0.10;

select( fn_land(x,y,z).red - CutOffAlt, 1,
    select( fn_land(x,y,z).red - CutOffAlt - FallOffDist,
        (fn_land(x,y,z).red - CutOffAlt) / FallOffDist , 0 ) )

The above looks a little funky, but is very similar to things I've used in the
past.  The first select statement subtracts the cut-off altitude.  If the result
is less than zero, then 1 is returned, since the effect is to be fully applied
below the cut-off alt.  If the result is greater than zero (indicating an
altitude above cut off), then the second select statement comes into play.  This
time, both the cut off altitude and the blend space is subtracted.  If the
result is below zero, the equation is applied to smoothly map the value to the
range 1..0.  If the result is above zero, then zero is returned, preventing the
effect from being applied above that altitude.

Variations on this are easy - you could make the falloff quadratic, have both a
min and max altitude for various functions, etc.  This could also be adapting
into a macro to make things look cleaner.

HTH
-Reactor


Post a reply to this message

From: Jörg 'Yadgar' Bleimann
Subject: Re: Isosurface landscape - any suggestions?
Date: 27 Feb 2010 21:03:18
Message: <4b89cee6@news.povray.org>
High!

Alain wrote:
 > You may try with an onion or spherical pattern.

Until now I just tried onion...

 > If you multiply your function by an onion pattern, that is properly 
scaled, Areas with altitudes near sea level will remain relatively 
unchanged while areas at higher altitude sould get more rugged.

Are you sure you mean "multiply" rather than "add"? I tried multiplying, 
but all I got was a uniformly flat surface without any visible relief 
(see attached first image below - remember that I speak of a spherical 
planet, not a "flat" landscape!), almost regardless of how I scaled the 
onion part of the function - only at scale 0.001, strange interference 
patterns showed up (second image), but probably only because of a too 
low max_gradient.

I also tried adding rather than multiplying - then the surface shrunk 
way below the water sphere. When I tried subtracting instead, I got 
broad gaps and a warning of absurdly high max_gradient values (about 1.5 
million - see third image).

Dividing resulted in a "division by zero" error...

 > Play with the wave type and the range of values.

What values?

 > You can also divide if you use an inverted fradient for your pattern.

Inverted gradient? Probably not - color maps are not only irrelevant for 
patterns used as functions within isosurfaces, using them even results 
in error messages!

Generally, should I turbulate the onion of spherical pattern?

See you in Khyberspace!

Yadgar


Post a reply to this message


Attachments:
Download '2010-02-28 ghurghusht, granite x onion+bozo isosurface, high altitude limbview, take 1.jpg' (8 KB) Download '2010-02-28 ghurghusht, granite x onion+bozo isosurface, high altitude limbview, take 3.jpg' (76 KB) Download '2010-02-28 ghurghusht, granite-onion+bozo isosurface, high altitude limb view,take 3.jpg' (72 KB)

Preview of image '2010-02-28 ghurghusht, granite x onion+bozo isosurface, high altitude limbview, take 1.jpg'
2010-02-28 ghurghusht, granite x onion+bozo isosurface, high altitude limbview, take 1.jpg

Preview of image '2010-02-28 ghurghusht, granite x onion+bozo isosurface, high altitude limbview, take 3.jpg'
2010-02-28 ghurghusht, granite x onion+bozo isosurface, high altitude limbview, take 3.jpg

Preview of image '2010-02-28 ghurghusht, granite-onion+bozo isosurface, high altitude limb view,take 3.jpg'
2010-02-28 ghurghusht, granite-onion+bozo isosurface, high altitude limb view,take 3.jpg


 

From: Jörg 'Yadgar' Bleimann
Subject: Re: Isosurface landscape - any suggestions?
Date: 27 Feb 2010 21:12:39
Message: <4b89d117$1@news.povray.org>


> Generally, should I turbulate the onion of spherical pattern?

...of course it should read "onion OR spherical pattern", not "of"!


Post a reply to this message

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