POV-Ray : Newsgroups : povray.general : Lighting questions... : Re: Lighting questions... Server Time
10 Aug 2024 21:04:25 EDT (-0400)
  Re: Lighting questions...  
From: Nathan Kopp
Date: 4 Nov 1999 23:34:37
Message: <38225e5d@news.povray.org>
Alexander Enzmann <xan### [at] mitreorg> wrote...
> I'm a little confused by part of the implementation of the shading model
> used in POV-Ray.  There are parts that have changed substantially over
> the last couple of versions and I don't quite see why.
>
> 1) When transmit is used, the shading model is now using the refracted
> ray to determine the color.  That wasn't how (or why) I added transmit -
> it's supposed to be an unrefracted ray (unaffected by IOR).  You might
> as well not bother with transmit - in it's current form it just provides
> a way to add white to the basic filter color.

I agree with how POV treats treats this  (well, kind of).  I do think that
POV should re-use intersections that have already been computed if the two
IORs on the sides of the surface are identical.  No need to do extra work.
Also, I wish POV used a color model similar to <red, green, blue,
red_filter, green_filter, blue_filter> - UVPov does this internally,
actually.

> 2) The ambient and diffuse contributions are modified by (1 -
> transparency).  Why?  And why just the ambient/diffuse and not specular
> or reflection?

Good question.  I agree that consistency is important.  Unfortunately,
backwards compatibility is also important, and the two do not always work
well together.

> 3) The shadow rays through a (partially) transparent surface aren't
> modified the same way as eye rays.  You end up with colored shadows that
> are either brighter or darker than the surface itself.  Results are even
> worse with distance based attenuation (extinction) in an interior.

I'd have to look into this more closely to understand what you mean.  Do you
have any demo scenes that could demonstrate this?

> Don't know that I'd call any of these bugs - POV-Ray works the way it
> works.  I just wonder if anyone knows why these choices were made.

You'd have to ask that of those who made the decisions.  And povray.general
might not be the best place to ask.  povray.programming might be better.

- Nathan


Post a reply to this message

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