POV-Ray : Newsgroups : povray.beta-test : Difference in height_fields between beta 35 and previous betas or 3.6 : Re: Difference in height_fields between beta 35 and previous betas or 3.6 Server Time
4 Jul 2024 13:04:06 EDT (-0400)
  Re: Difference in height_fields between beta 35 and previous betas or 3.6  
From: Thomas de Groot
Date: 14 Jan 2010 03:28:10
Message: <4b4ed59a$1@news.povray.org>
Further testing of the discrepancy reveals that it occurs when using a 
function for the height_field. Using an image_map directly into a 
height_field - wether it being a png or a tga - renders correctly and is 
identical in all versions.

Using the following function however - either with png or with tga - results 
in a *wrong* render. Is this due to gamma? I have no idea....

//----start code
#declare F_HF_01 =
function {
  pigment {
    image_map {
      tga "RidgedFractal1.tga" //or the same as png
      map_type 0
      interpolate 2
    }
    warp {repeat x}
    warp {repeat y}
    scale 50
    warp {
      turbulence 0.2
      octaves 1
      lambda 1
      omega 0.2
    }
    scale 1/50
  }
}

height_field {
  function 2000, 2000 {F_HF_01(x,y,z).hf}
  smooth
  translate <-0.5, 0.0, -0.5>
  texture {mytex}
  transform {mytrans}
}
//----endcode

Thomas


Post a reply to this message

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