POV-Ray : Newsgroups : povray.newusers : Media?? : Re: Media?? Server Time
28 Jul 2024 22:19:13 EDT (-0400)
  Re: Media??  
From: OpalPlanet
Date: 26 Jun 2007 15:50:01
Message: <web.46816d27ce26776539928d3a0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> OpalPlanet wrote:
>
> > Whenever I add media to a scene, all I get is a black container object.
> > Help!
>
> The container needs to be at least partially transparent ;)
>
> pigment {color rgbt 1}

It is! I'm taking this code directly from the program docs:

global_settings { assumed_gamma 1 }

 background { rgb 1 }

 camera { location <3,4,-5>*.8 look_at 0 angle 35 }

 light_source { <20,40,10>, 1 }

 box // floor
  { <-1.5,-1.01,-1.5>, <1.5,-1.2,1.5>
  pigment {
   checker rgb 0.75, rgb 0.25 scale 0.2 } }

sphere // transparent sphere containing media
{ 0,1
pigment {
 rgbt 1 }
 hollow
 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]
     } } } } }

Still, just a black sphere.


Post a reply to this message

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