POV-Ray : Newsgroups : povray.advanced-users : Use Slope pattern for Planting distribution? : Re: Use Slope pattern for Planting distribution? Server Time
6 Oct 2024 14:03:18 EDT (-0400)
  Re: Use Slope pattern for Planting distribution?  
From: Rune
Date: 12 Dec 2006 09:24:58
Message: <457ebbba$1@news.povray.org>
Kirk Andrews wrote:
> I'm trying to use the trace command to plant grass on my Isosurface
> landscape, but I don't want it to "grow" on steep grades.  Is it
> possible to use the slope pattern to control my distribution, or is
> there another way to do this?

You can't use the slope pattern for this, but the trace function can return 
a normal vector which you can evaluate directly, for example by using the 
y-component of the normal vector.

Rune
-- 
http://runevision.com


Post a reply to this message

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