POV-Ray : Newsgroups : povray.bugreports : Bug between plane and media : Re: Bug between plane and media Server Time
8 Nov 2024 23:00:40 EST (-0500)
  Re: Bug between plane and media  
From: Bald Eagle
Date: 10 Aug 2019 19:20:01
Message: <web.5d4f503ac5e0ae964eec112d0@news.povray.org>
//A scene that works and displays a checkered plane in the background with a
media in the view:
#version 3.8;
global_settings{ assumed_gamma 1.0 }
camera{
 location <0, 1, -6>
 look_at <0, 0, 0>
 sky y
 right 1*x
 up 1*y
 direction 1*z
 rotate -x*90
}

light_source{ <20, 20, -40> color srgb 1 }

#declare Mode = 0;  // <--- change this to see what I mean


plane{z, 4 pigment{ checker color srgb <0, 0, 1>, color srgb <1, 1, 0> }
#if (Mode) inverse #end

}

sphere{ 0, 1 hollow on pigment{ color srgbft <0, 0, 0, 0, 1> }
  interior{
    media{ emission 1 samples 1,30 intervals 10
      density{
        spherical density_map{
          [0 color srgb 0 ]
          [0.4 color srgb <1, 1, 0> ]
          [1 color srgb <1, 0, 0> ]
        }
       warp{ turbulence 0.25 lambda 4 omega 0.6 }
      }
    }
  }
  translate -2*z
}

//But if I change the plane statement line with the following:
//plane{z, 4 pigment{ checker color srgb <0, 0, 1>, color srgb <1, 1, 0> } }


Post a reply to this message

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