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: 1 Sep 2008 16:10:00
Message: <web.48bc4b32cd5c21438abea67c0@news.povray.org>
"m_a_r_c" <jac### [at] wanadoofr> wrote:

> 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

Heya!

I've understood! Thanks a lot. I will try this tomorrow and tell you my results.

Phil


Post a reply to this message

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