POV-Ray : Newsgroups : povray.binaries.images : Seascape ... Help! : Re: Seascape ... Help! Server Time
12 Aug 2024 11:13:41 EDT (-0400)
  Re: Seascape ... Help!  
From: Mick Hazelgrove
Date: 23 Aug 2003 04:34:44
Message: <3f472724@news.povray.org>
Try in your trace loop

#if(vdot(y,vnormalize(Norm))>0.9725)

where 0>.9725 is the flatness of the angle of flatness you want.

or

#if (VAngleD(Norm, y) < 20)  from math.inc which you need to include


This will place trees only on the flatter parts of your height field.

Thanks to Tor OLav Kristensen

Mick


Post a reply to this message

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