POV-Ray : Newsgroups : povray.newusers : Media woes : Re: Media woes Server Time
23 Feb 2025 14:55:29 EST (-0500)
  Re: Media woes  
From: Kenneth
Date: 20 Feb 2025 17:45:00
Message: <web.67b7b02a2d33f923e83955656e066e29@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
> >
> > Personally, I have always wondered why a z-plane doesn't have it's 'outside'
> > facing the -z direction by default, rather than the other way around. I
> > suppose that there are old and deep reasons for this.

Hmm, not so deep as I thought. In the documentation for a plane:

"...most planes are defined with surface normals in the direction of an axis
[meaning the positive direction, which is not specifically mentioned.]"

"By definition the normal vector points to the outside of the plane."

So all of the three (simple) x-y-z planes have their 'outsides' in the positive
directions of the axes. That's logically consistent-- but has to be taken into
account when media is used *inside* the planes. It's a subtle "Gotcha!"

>
> I also didn't quite know that any overlapping container needed to be hollow as
> well.
>

Yeah, this situation has tripped me up in the past as well, when using planes.
We don't usually run into such problems with typical media-filled objects, or
even CSG constructs that have the proper 'master' hollow keyword.


Post a reply to this message

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