POV-Ray : Newsgroups : povray.newusers : Access to height field data : Re: Access to height field data Server Time
28 Jul 2024 14:18:15 EDT (-0400)
  Re: Access to height field data  
From: m a r c
Date: 1 Sep 2008 15:30:05
Message: <48bc42bd$1@news.povray.org>

web.48bc338bcd5c21438abea67c0@news.povray.org...
>>   See the trace() function at
>> http://povray.org/documentation/view/3.6.1/229/#s02_02_01_04_05
>
> Thanks for this tip, but what, if the surface is not hit by a ray at the
> location, I want to plant a tree?
>
If the surface is not hit by a ray with a -z direction, there is no terrain 
at this location.

It is a good idea to test the length of the returned normal vector : it is 
null if the trace vector does not intersect the surface.

Marc


Post a reply to this message

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