POV-Ray : Newsgroups : povray.newusers : Issue with nested spheres Server Time
31 Oct 2024 16:17:17 EDT (-0400)
  Issue with nested spheres (Message 1 to 2 of 2)  
From: mtxcoll
Subject: Issue with nested spheres
Date: 15 Aug 2007 03:40:01
Message: <web.46c2ad848b8621af92d2e3120@news.povray.org>
Hi again, I've tried nesting three concentric spheres thus:


  sphere {
    <0,0,0>,1
    pigment {rgbt 1}
    }
  sphere {
    <0,0,0>,0.9
    pigment {rgbt 1}
    }
  sphere {
    <0,0,0>,0.8
    pigment {rgbt 1}
    }

and the interior sphere ends up black even though it should stay invisible.
Is this an issue with transparency in POV-Ray?


Post a reply to this message

From: Tim Attwood
Subject: Re: Issue with nested spheres
Date: 15 Aug 2007 04:36:15
Message: <46c2baff$1@news.povray.org>
> and the interior sphere ends up black even though it should stay 
> invisible.
> Is this an issue with transparency in POV-Ray?

Yes.  When tracing the color of a pixel the default setting
calculates 5 surface reflections, or partially transparent surfaces.
With three nested spheres a ray from the camera passes through
at least six surfaces, one for the front and back of each sphere.
When a ray is stopped after some depth the pixel is black.
This can be seen as dark spots in multiply reflected areas,
or as black instead of clear objects, also there is a warning
if you read the message output. The fix is to set the maximum
trace level higher in global settings.

global_settings {max_trace_level 10}


Post a reply to this message

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