POV-Ray : Newsgroups : povray.advanced-users : Transforming old halos to media? : Re: Transforming old halos to media? Server Time
28 Jul 2024 10:31:07 EDT (-0400)
  Re: Transforming old halos to media?  
From: Warp
Date: 1 May 2006 18:31:10
Message: <44568c2d@news.povray.org>
Icetoaster <icetoaster_at_gmx.de> wrote:
> Hi, I have found an interesting halo statement, which
> produces a stunning fireball.
> How could I convert that to a Povray's 3.6 media/interior statement?

  Something like this is probably close (although probably not identical):

camera { location -z*5 look_at 0 angle 35 }

sphere
{ 0, 2 hollow
  pigment { rgbt 1 }
  interior
  { media
    { emission 1
      density
      { spherical density_map
        {
          [ 0.0 rgb <0, 0, 0> ]
          [ 0.25 rgb <.5, 0, 0> ]
          [ 0.5 rgb <1, 1, 0> ]
          [ 0.75 rgb <.5, 0, 0> ]
          [ 1.0 rgb <0, 0, 0> ]
        }
        turbulence 1.5
        frequency 2
      }
    }
  }
}


-- 
                                                          - Warp


Post a reply to this message

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