POV-Ray : Newsgroups : povray.bugreports : Media rgb<0,0,0> effects prior media. Server Time
28 Apr 2024 19:52:20 EDT (-0400)
  Media rgb<0,0,0> effects prior media. (Message 1 to 1 of 1)  
From: waggy
Subject: Media rgb<0,0,0> effects prior media.
Date: 23 Oct 2009 01:15:00
Message: <web.4ae13b8f2a33eef3f99d05c80@news.povray.org>
Unless I'm missing something, when using multiple media statements, a medium
with a color of rgb<0,0,0> should have no effect on prior media.  Instead, the
scene below seems to show contrary behavior.

This happens with 3.6.1.msvc8.win64, 3.7.0.beta.34.msvc9.win64, and with Linux
beta.34.

~David

/*
These two spheres should appear exactly the same,
according to sections 2.6.2.1.1 - 2.6.2.1.3.
A media color of rgb<0,0,0> means no light is effected.
However, including a second media statement with a
color of rgb<0,0,0> does effect the object's appearance.
In this example, the effect is more subtle, but still
discernible, for black absorption and emission media.
*/

sphere{<0,0,0>,1 hollow pigment{rgbt<1,1,1,1>}
  interior{
    media{ density{onion} scattering{ 4, rgb<1,0,0> } }

  }
  translate -x
}

sphere{<0,0,0>,1 hollow pigment{rgbt<1,1,1,1>}
  interior{
    media{ density{onion} scattering{ 4, rgb<1,0,0> } }
    media{ density{onion} scattering{ 2, rgb<0,0,0> } }
    //media{ density{onion} absorption rgb<0,0,0>}
    //media{ density{onion} emission rgb<0,0,0>}
  }
  translate x
}


sky_sphere {pigment {color <0.3,0.3,1> } }

camera {
  location  <0, 0, -4>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0,0,0>
}

// The light source is directly behind the camera.
light_source {<0, 0, 4000> color rgb <1,1,1> }


Post a reply to this message

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