POV-Ray : Newsgroups : povray.advanced-users : My first grass. : Re: My first grass. Server Time
29 Jul 2024 12:20:41 EDT (-0400)
  Re: My first grass.  
From: Christopher James Huff
Date: 4 Oct 2002 13:55:02
Message: <chrishuff-653276.13514304102002@netplex.aussie.org>
In article <3d9dbd7c$1@news.povray.org>,
 "Tom Melly" <tom### [at] tomandlucouk> wrote:

> I haven't used trace for a while now, but iirc what you want to do is check
> whether Norm.x and Norm.z are under a certain range. I think the following 
> would only place a sphere if the point was perfectly flat:

Just checking y would be easier. If it is very near 1, both x and y must 
be near 0. It is equal to the sine of the angle to a horizontal plane. 
And if it is non-0, the intersection is valid, so you don't even have to 
check for < 0, 0, 0> any more.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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