POV-Ray : Newsgroups : povray.general : Completely ignoring my media settings Server Time
5 Nov 2024 05:21:57 EST (-0500)
  Completely ignoring my media settings (Message 1 to 4 of 4)  
From: Cousin Ricky
Subject: Completely ignoring my media settings
Date: 10 Sep 2008 12:15:00
Message: <web.48c7f0b2fa9ee86385de7b680@news.povray.org>
I cannot get POV-Ray to so much as acknowledge the media statement in this scene
file:
___________________________________

global_settings { assumed_gamma 1 }

light_source
{  10000 * z
   rgb 1
   rotate <-45, 135, 0>
}

camera
{  angle 40
   location <0, 1, -10>
   up image_height * y
   right image_width * x
}

sphere { y, 1 pigment { rgb 1 } }

background { rgb 1 }

plane
{  y, 0
   texture { pigment { rgbf 1 } }
   interior
   {  media
      {  absorption rgb <0, 1, 1>
         scattering { 3, rgb 1 }
      }
   }
   hollow
}
___________________________________

The scene renders as if the media statement weren't even there.  The funny thing
is that I've done this sort of thing before, and it always worked.  I'm hoping
that more sets of eyes will spot my obvious mistake.  Thanks!


Post a reply to this message

From: Mike Williams
Subject: Re: Completely ignoring my media settings
Date: 10 Sep 2008 13:16:04
Message: <jTAjGMAMDAyIFwv7@econym.demon.co.uk>
Wasn't it Cousin Ricky who wrote:
>I cannot get POV-Ray to so much as acknowledge the media statement in 
>this scene

You've got the sphere and the media on the opposite side of the plane, 
so your view of the sphere isn't affected by the media. With those 
settings, you don't see anything if there's only background behind the 
media.

Either move the sphere down into the media
  sphere { -y, 1 pigment { rgb 1 } }
or move the media up around the sphere
  plane { -y, 0

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Cousin Ricky
Subject: Re: Completely ignoring my media settings
Date: 10 Sep 2008 14:55:00
Message: <web.48c816e619da6cb085de7b680@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> You've got the sphere and the media on the opposite side of the plane,
> so your view of the sphere isn't affected by the media.

That wasn't my intention.  Sorry, I should have been clear about that.

> With those
> settings, you don't see anything if there's only background behind the
> media.

Oh.  I need a surface behind the media for it to show up?  I wonder how long it
would have taken for me to figure that out.  *Makes a note to review the
documentation.*

Putting a second plane below the media plane did the trick.  Thank you, much.


Post a reply to this message

From: Alain
Subject: Re: Completely ignoring my media settings
Date: 10 Sep 2008 16:01:59
Message: <48c827b7@news.povray.org>
Cousin Ricky nous illumina en ce 2008-09-10 14:50 -->
> Mike Williams <nos### [at] econymdemoncouk> wrote:
>> You've got the sphere and the media on the opposite side of the plane,
>> so your view of the sphere isn't affected by the media.
> 
> That wasn't my intention.  Sorry, I should have been clear about that.
> 
>> With those
>> settings, you don't see anything if there's only background behind the
>> media.
> 
> Oh.  I need a surface behind the media for it to show up?  I wonder how long it
> would have taken for me to figure that out.  *Makes a note to review the
> documentation.*
> 
> Putting a second plane below the media plane did the trick.  Thank you, much.
> 
> 
If the ray that enters the media have an "infinite" lenght (reatch the 
background before anything else), you can't eveluate the media. On an infinite 
ray, you can't find the needed sampling points.

-- 
Alain
-------------------------------------------------
  My bologna has a first name.

                    Oscar Mayer


Post a reply to this message

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