|
|
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
|
|