|
![](/i/fill.gif) |
"eticre" <eti### [at] tin it> 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
|
![](/i/fill.gif) |