POV-Ray : Newsgroups : povray.binaries.images : terrain elevation : Re: terrain elevation Server Time
3 Jul 2024 01:34:53 EDT (-0400)
  Re: terrain elevation  
From: Anthony D  Baye
Date: 17 Dec 2014 19:00:02
Message: <web.549218f0be345c81538d4890@news.povray.org>
"eticre" <eti### [at] tinit> wrote:
> Hi all
> I tried ridged_mf for terrain on a iso-planet but result is "strange"
> If function (x*x+y*y+z*z - (f_ridged_mf(x,y,z, 0.2 , 5 , 7 , 1.6 , 0.1 ,
> 2)+100)) is used directly in isosurface results ar goog but if same function is
> used in pigment
>
> #declare Dec_p=pigment{function{f_ridged_mf(x,y,z, 0.2 , 5 , 7 , 1.6 , 0.1 , 2)
> }}
>
> #declare fp_mount=function{pigment{pigment_pattern {Dec_p}}}
>
> isosurface { function { (x*x+y*y+z*z - (fp_mount(x,y,z).gray+100)) }
>
> resulting object is broken

you want something like:

f_sphere = function(x,y,z,R) { sqrt(x*x + y*y + z*z) - R }

f_planet = function(x,y,z,R) =
function {
    f_sphere(x,y,z,R + f_ridged_mf...  // here R is the minimum radius.

regards,
A.D.B.


Post a reply to this message

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