POV-Ray : Newsgroups : povray.general : Media + Output_Alpha = ? : Re: Media + Output_Alpha = ? Server Time
11 Aug 2024 15:16:55 EDT (-0400)
  Re: Media + Output_Alpha = ?  
From: Tony Vigil
Date: 28 Jun 1999 17:36:35
Message: <3777EAD9.D23A5D93@emc-inc.com>
Try changing the green part of your media to white & render using the
hf_gray_16 option.

Ole Laursen wrote:

> Hi!
>
> Have anyone here succeded in producing a TGA with alpha channel of a scene
> with a media object?
>
> I can't get it to work; if I place the media inside a sphere with the
> pigment "rgbt 1", nothing show up in the alpha channel. If I use the
> pigment "rgbf 1", a totally solid circle show up.
>
> // test scene; produces nothing in the alpha channel
> #include "colors.inc"
>
> camera {
>   location <0,0,2.4>
>   up y
>   right x
>   look_at 0
> }
>
> light_source {<10,10,10>, 0.65}
>
> sphere { 0, 1
>   hollow on
>   pigment {rgbt 1} // change this to rgbf 1
>   interior {       // and a solid circle occurs
>     media {
>       emission 1
>       density {
>         spherical
>         turbulence 0.8 omega 0.75
>         color_map {
>           [0 Black filter 1]
>           [1 Green filter 0]
>         }
>       }
>     }
>   }
> }
>
> sphere { 0, 0.5 pigment{Red transmit 0.5}}
>
> // .ini file settings
> Width=100
> Height=100
> Antialias=Off
>
> Output_Alpha = on
> Output_File_Type = T
>
> Is it my head or is it POV-Ray that is broken? I need the alpha channel for
> an explosion in a game.
>
> Ole Laursen - http://sunsite.auc.dk/olau/
> ARRGGH! IT'S ALIVE!


Post a reply to this message

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