POV-Ray : Newsgroups : povray.advanced-users : Use Slope pattern for Planting distribution? : Re: Use Slope pattern for Planting distribution? Server Time
6 Oct 2024 13:59:41 EDT (-0400)
  Re: Use Slope pattern for Planting distribution?  
From: Kirk Andrews
Date: 12 Dec 2006 09:35:01
Message: <web.457ebdbcdc80ee109033e1160@news.povray.org>
Honestly, I've had a lot of difficulty understanding exactly how that works.
 When you use the trace command to return the "normal", what exactly is
being returned?  And perhaps someone might provide a short example code of
how I might use that?



"Rune" <new### [at] runevisioncom> wrote:
> 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.