POV-Ray : Newsgroups : povray.binaries.images : Scatter (103k) : Re: Scatter (103k) Server Time
19 Aug 2024 14:13:05 EDT (-0400)
  Re: Scatter (103k)  
From: Andy Cocker
Date: 18 Dec 2000 21:37:58
Message: <3a3eca06@news.povray.org>
"Chris Huff" <chr### [at] maccom> wrote in message
news:chrishuff-B4EB2C.15073418122000@news.povray.org...
> In article <3a3e6b3d@news.povray.org>, "Andy Cocker"
> <big### [at] mariner9fsnetcouk> wrote:
>
> > I don't quite understand what #if (Norm.x != 0 | Norm.y != 0 | Norm.z
> > != 0) means, but I've yet to really look into it.
>
> If the trace() function doesn't find an intersection, it will return <
> 0, 0, 0> as the normal. This allows you to find out if it actually hit
> something.

Thanks Chris. It was the ! and the | predominantly that I didn't understand,
but I think I've got it figured out... my new scene is behaving as I want it
to anyway.
Would I be correct in thinking that the ! stands for 'does not', and the |
signifies 'and', thus the code reads "unless the trace function returns
<0,0,0>, then parse the following.. otherwise goto #else"?
Forgive me, this is probably really elementary programming syntax, but I'm
no programmer. According to the docs then I think I'm right.

All the best,

Andy Cocker


Post a reply to this message

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