POV-Ray : Newsgroups : povray.newusers : Access to height field data : Re: Access to height field data Server Time
28 Jul 2024 20:25:53 EDT (-0400)
  Re: Access to height field data  
From: gregjohn
Date: 3 Sep 2008 13:10:01
Message: <web.48bec46ecd5c214340d56c170@news.povray.org>
"Phil" <nomail@nomail> wrote:
>
> #define norm = <0,0,0>;

// Should that be:
#declare norm = <0,0,0>;

>
> #while (IN A REGION WE WANT TO PLANT)
>   #declare h = trace(map, <x,y,2>, <x,y,0>, norm);
>   #if ((vlength(norm) != 0) & (vlength(h) < 0.5))
>     object {
>       tree
>       translate h
>     }
>   #end

//  And then be sure to reset the norm back to
//  zero at before the next time you use it:

#declare norm = <0,0,0>;

> #end
>


Post a reply to this message

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