POV-Ray : Newsgroups : povray.general : slope pattern bug? : Re: slope pattern bug? Server Time
1 Aug 2024 08:14:51 EDT (-0400)
  Re: slope pattern bug?  
From: Christian Walther
Date: 18 Jan 2006 05:08:06
Message: <43ce1386$1@news.povray.org>
Kenneth wrote:
> Can someone p*l*e*a*s*e explain why the following two examples show
> different slope pattern results? I have some theories, but they're all pure
> wacky guesswork.
> 
> The first example shows the way the slope pattern worked succesfully for me
> (and it makes sense) :  The pattern is applied over a previous (white)
> texture, and its red color fades to transparency as it reaches the opposite
> side of the sphere.  Just what I wanted! But the second example--using the
> slope pattern alone--shows the red color appearing on BOTH sides of the
> sphere. Why so?

What you're seeing on the right side in the second scene is the back 
surface of the sphere (through the transparent front surface). Its 
normal points inward, and therefore the slope pattern value is between 0 
and 0.5. Try replacing your sphere { 0, 1 } by a difference { sphere { 
0, 1 } plane { -z, 0 } }.

  -Christian


Post a reply to this message

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