POV-Ray : Newsgroups : povray.general : Heightfields from textures? : Re: Heightfields from textures? Server Time
3 Aug 2024 06:13:35 EDT (-0400)
  Re: Heightfields from textures?  
From: Thomas de Groot
Date: 7 May 2004 08:40:09
Message: <409b83a9@news.povray.org>
Now consider the code Isosurface/Heightfield:
#if (HF)
  height_field{function 300,300{P(x,0,y)}
    translate <-0.5,0,-0.5>
    scale <4,0.75,4>
    pigment{G}
  }
#else
  isosurface {
    function { y - P(x,0,1-z)}
    open
    max_gradient 7
    contained_by{box{<0,0,0>,<1,1,1>}}
    translate <-0.5,0,-0.5>
    scale <4,0.75,4>
    pigment {G}
  }
#end

It is possible, for later use, to increase the isosurface by increasing the
bounding box. If I want to test this larger object with a heightfield
because my landscape is larger than the unit HF (not considering the scale
of course), how should I do that? Is that possible at all?

Thomas


Post a reply to this message

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