POV-Ray : Newsgroups : povray.newusers : artifacts in the heightmap : Re: artifacts in the heightmap Server Time
1 Jul 2024 00:29:06 EDT (-0400)
  Re: artifacts in the heightmap  
From: cartun
Date: 31 Oct 2011 11:05:00
Message: <web.4eaeb8f61f285b8b41b2bbc20@news.povray.org>
Thomas de Groot <tenDOTlnDOTretniATtoorgedDOTt> wrote:
> On 31-10-2011 13:38, cartun wrote:
> > hello there,
> >
> > i have a problem with a heigtmap:
> > http://s14.directupload.net/images/111031/o8sgwpwd.png
> >
> > you have a idea how can I prevent something?
> >
>
> I suppose you make the height_field from an image?
>
Yes!
> You can do two things:
>
> 1) add double_illuminate to the height_field block and see if the
> artifacts disappear;
>
> 2) make the height_field from an image-related function. In this case
> you can increase the resolution as you need it. To do this use the
> following code and adapt to your needs:
>
> #declare F_HF_01 =
> function {
>    pigment {
>      image_map {
>        tga "my_image.tga" gamma 1.0  //or any other image_map type
>        map_type 0
>        interpolate 2
>      }
>      warp {repeat x}
>      warp {repeat y}
>      scale 50
>      warp {
>        turbulence 0.2
>        octaves 1 //[6]
>        lambda 1  //[2]
>        omega 0.2 //[0.5]
>      }
>      scale 1/50
>    }
> }
>
> #declare hf1 =
>    height_field {
>      function HF_res, HF_res {F_HF_01(x,y,z).hf}
>      smooth
>      translate <-0.5, 0, -0.5>
>    }
>
> HF_res is the resolution you want to apply, typically this can be 2000
> or 5000 for very high resolutions, or 500 for low resolution testing.
>
>
> THomas

wow, thanks for your Help!!! I am really Happy... ty!


Post a reply to this message

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