POV-Ray : Newsgroups : povray.newusers : Media woes : Media woes Server Time
23 Feb 2025 18:45:53 EST (-0500)
  Media woes  
From: Bald Eagle
Date: 19 Feb 2025 18:30:00
Message: <web.67b66943b239df5d1f9dae3025979125@news.povray.org>
Can someone tell me why this virtually identical scene to that in the docs
doesn't show the 2 media spheres?

#version 3.8;
global_settings {assumed_gamma 1.0 }

camera {
 location <0, 10, -20>
 right x*image_width/image_height
 up y
 look_at <0, 0, 0>
}

light_source {<100, 50, -100> rgb 1}


#declare BS = 1;
plane {z,  2 texture {pigment {checker rgb 0, rgb 1 scale BS} finish {diffuse
1}} }

plane {y, -2 texture {pigment {checker rgb 0, rgb 1 scale BS} finish {diffuse
1}} }

// show all permutations of solo and mixed media

// Emitting, Absorbing, Scattering
// 15 combinations
// 5 across, 3 down

sphere {0, 1
 hollow
 pigment {rgbt 1}
 interior {
  media {
  emission 1
   density {
    spherical
    density_map {
     [0 rgb 0]
     [0.4 rgb <1,0,0>]
     [0.8 rgb <1,1,0>]
     [1 rgb 1]
    }
   }
  }
 }
 translate -x*2
}

sphere {0, 1 texture {pigment {rgb 1} finish {emission 1}} }

sphere {0, 1
 pigment {rgbt 1}
 hollow
 interior {
  media {
  absorption 1
   density {
    spherical
    density_map {
     [0 rgb 0]
     [0.4 rgb <1,0,0>]
     [0.8 rgb <1,1,0>]
     [1 rgb 1]
    }
   }
  }
 }
 translate x*2
}


Post a reply to this message

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