POV-Ray : Newsgroups : povray.newusers : Access to height field data : Re: Access to height field data Server Time
28 Jul 2024 14:20:49 EDT (-0400)
  Re: Access to height field data  
From: Phil
Date: 2 Sep 2008 20:40:00
Message: <web.48bddbcdcd5c21439ef408df0@news.povray.org>
As promised here are my results:

The trace-Makro is really perfect for my needs, and I wonna thanks you all a lot
for the quick and high-quality answers.

My planting now like this:

#declare map = object {
  height_field {
  ...
  }
}

map

#define 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
#end


This is working pretty good. Thanks again.

Phil


Post a reply to this message

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