POV-Ray : Newsgroups : povray.general : Media question : Media question Server Time
8 Aug 2024 08:15:20 EDT (-0400)
  Media question  
From: Jonathan Hunt
Date: 21 Jan 2001 11:59:07
Message: <3a6b155b@news.povray.org>
Hi folks,

I'm trying to update one of my old POVray files that used 'halo' to
work with 3.1 using media.  The original halo block looked like...

      halo {
        emitting
        spherical_mapping
        linear
        turbulence 1.5
        color_map {
          [ 0.0 color rgbt <1, 0, 0,  1> ]
          [ 0.5 color rgbt <1, 1, 0, -2> ]
          [ 1.0 color rgbt <1, 0, 0,  1> ]
        }
        frequency 2
        samples 20
        scale 0.3
      }


And I've got so far as using the following media...

      interior {
        media {
          emission rgb<1, 1, 1>
          density {
            spherical
            turbulence 1.5
            color_map {
              [ 0.0 rgbt <1, 0, 0, 1> ]
              [ 0.5 rgbt <1, 1, 0, -2> ]
              [ 1.0 rgbt <1, 0, 0, 1> ]
            }
//            frequency 2
            scale 0.3
          }
//          samples 20,20
        }
      }

But the problem I'm having is that with the original halo, the color_map
gave me a graduation from 'completely transparent red' (ie. black if viewed
on a black surface) to yellow and back again.

Where as with the media, I'm getting red to yellow to red. i.e It's
ignoring the transparency completely, and I get a mainly red sphere
rather than a mainly transparent one.

Am I doing something silly?

Cheers,

--
Jonathan Hunt
jon### [at] xlcuscouk


Post a reply to this message

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