POV-Ray : Newsgroups : povray.binaries.images : terrain elevation Server Time
7 Nov 2024 15:35:28 EST (-0500)
  terrain elevation (Message 1 to 6 of 6)  
From: eticre
Subject: terrain elevation
Date: 17 Dec 2014 10:40:01
Message: <web.5491a33ac9d2e1c65132d0560@news.povray.org>
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


Post a reply to this message


Attachments:
Download 'rmf-func-pigm.png' (235 KB)

Preview of image 'rmf-func-pigm.png'
rmf-func-pigm.png


 

From: FractRacer
Subject: Re: terrain elevation
Date: 17 Dec 2014 11:30:57
Message: <5491afc1$1@news.povray.org>

> 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
>
Hello,
You can use max_gradient in your isosurface block, increase the value to 
obtain a better surface.

-- 
Lionel
<b>Do not judge my words, judge my actions.</b>

---

http://www.avast.com


Post a reply to this message

From: eticre
Subject: Re: terrain elevation
Date: 17 Dec 2014 18:25:00
Message: <web.54921004be345c85132d0560@news.povray.org>
FractRacer <lg.### [at] gmailcom> 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
> >
> Hello,
> You can use max_gradient in your isosurface block, increase the value to
> obtain a better surface.
>
> --
> Lionel
> <b>Do not judge my words, judge my actions.</b>
>
> ---

 active.
> http://www.avast.com

I tried but nothing changed, iso rendered with pigment has artifact


Post a reply to this message

From: Anthony D  Baye
Subject: Re: terrain elevation
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

From: Christian Froeschlin
Subject: Re: terrain elevation
Date: 21 Dec 2014 20:43:50
Message: <54977756$1@news.povray.org>
AFAIK pigments are clipped at 1.0, could this explain your effect?


Post a reply to this message

From: eticre
Subject: Re: terrain elevation
Date: 22 Dec 2014 17:00:01
Message: <web.54989452be345c85132d0560@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> AFAIK pigments are clipped at 1.0, could this explain your effect?
yes thanks
divided by 10 and multiplied by 10 in iso


Post a reply to this message

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