POV-Ray : Newsgroups : povray.binaries.images : Media - Developments : Re: Media - Developments Server Time
2 Oct 2024 16:29:36 EDT (-0400)
  Re: Media - Developments  
From: Ken
Date: 11 Apr 2000 08:19:24
Message: <38F3185D.E5C84EE4@pacbell.net>
Lewis wrote:
> 
> I was trying to do a colored fireball. How??

Here is something I was playing around with a while ago. It is not
perfect but should get you started.

#declare Media =
media {
  emission .5
  intervals 25
  samples 1, 50
  confidence 0.99
  variance 1/100
  density {
    spherical
    ramp_wave
//    turbulence 1
    color_map {
      [0.000  rgb <0.01, 0.005, 0>]
      [0.025  rgb <0.04, 0.020, 0>]
      [0.050  rgb <0.03, 0.015, 0>] 
      [0.100  rgb <1.00, 0.500, 0>]

    } 
  }
}

      sphere { 0, 2 
     pigment { color rgbf<1, 1, 1, 1> }
      finish { ambient 0 diffuse 0    }
    interior { 
       media { Media scale .50        } 
       media { Media scale .50        }
             }
    scale 50 
      hollow 
             }

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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