POV-Ray : Newsgroups : povray.advanced-users : Use Slope pattern for Planting distribution? : Re: Use Slope pattern for Planting distribution? Server Time
6 Oct 2024 15:24:13 EDT (-0400)
  Re: Use Slope pattern for Planting distribution?  
From: Thomas de Groot
Date: 13 Dec 2006 07:20:39
Message: <457ff017$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> schreef in bericht 
news:457fc925@news.povray.org...
> Thomas de Groot <t.d### [at] internldotnet> wrote:
>>     #if (Norm.x != 0 | Norm.y != 0 | Norm.z != 0)
>
>  Btw, another way of testing that is:
>
>  #if(vlength(Norm) > 0)

Ah, yes! that's neat!

>
>>       #if ((vdot(Norm, y)>0.5) & (Pos.y < 5.5))
>
>  Does trace() always return a normalized vector?
>

Yes, if you define also the fourth trace parameter (a vector), Norm in this 
case (see documentation 3.2.1.4.5). This works fine as far as I can tell. To 
tell the truth, I used this after an example from somebody else :-)  So, 
things are transmitted on. However, there might be an even better way to do 
this, but I have not investigated that far as this worked for me.

Thomas


Post a reply to this message

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