POV-Ray : Newsgroups : povray.binaries.images : height_field bug? Server Time
1 Nov 2024 07:29:10 EDT (-0400)
  height_field bug? (Message 1 to 1 of 1)  
From: Sebastian H 
Subject: height_field bug?
Date: 9 Apr 2002 09:14:28
Message: <3CB2E9A6.5080602@web.de>
(linux beta 16)
When trying to height_fielding some functions it seems that the hf does 
not take values from

<0, 0, 0> to <1, 1, 0>

but from

<0, dy, 0> <1, 1+dy, 0>


// ----- Scene -----
#include "colors.inc"
#include "functions.inc"

camera {
   location <-2, 1.2, 1>
   look_at <0, 0.5, 0.5>
   angle 45
   //rotate 30*y
}

light_source { <-100, 100, 100> White }

#declare res = 5;
#declare H_Boden=
height_field {
   function res, res {f_gradientY(x,y,z)}

   pigment { Cyan }
   finish {ambient .1 diffuse 1.1 specular 1 roughness 0.005}
}

object {H_Boden translate 0*y}


// To compare the HF with
union {
   box { 0, 1 translate <1, 0, 0> }
   box { 0, 1 translate <0, 0, 1> }
   texture {
     pigment {checker Red,Yellow}
     finish {ambient .5 diffuse 1}
     scale .125
   }
}


// Just ground
plane {
   y, 0
   texture {
     pigment {checker Black, White}
     finish {diffuse 1.2 specular 1 roughness 0.005}
   }
}

// ----- Scene end -----


Post a reply to this message


Attachments:
Download 'grounds.png' (45 KB)

Preview of image 'grounds.png'
grounds.png


 

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