POV-Ray : Newsgroups : povray.advanced-users : My first grass. : Re: My first grass. Server Time
29 Jul 2024 06:26:38 EDT (-0400)
  Re: My first grass.  
From: Christoph Hormann
Date: 30 Sep 2002 05:51:47
Message: <3D981EB4.4DECCE3B@gmx.de>
Corey Woodworth wrote:
> 
> I'm making an image with a big HF in the foreground. I want to put grass on
> the HF but only on the flat areas. What is the most conventional way to do
> this? I can make an image that describes which areas should and shouldn't
> have grass by using world forge, but I still wouldn't know how to apply the
> image to a macro for placing grass. Thanks in advance!

The easiest is usually to use 'trace()'.  You can use the returned normal
vector to determine the slope at the position.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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