POV-Ray : Newsgroups : povray.animations : How could i get an explosion? : Re: How could i get an explosion? Server Time
1 Jun 2024 07:24:25 EDT (-0400)
  Re: How could i get an explosion?  
From: Warp
Date: 21 Nov 2005 16:45:48
Message: <4382400b@news.povray.org>
Alfredo <ful### [at] yahoocom> wrote:
> I'm trying to make an animation where i have a sphere with holes and i would
> like to put inside something like a light And be able to see light rays
> coming out.

camera { location -z*10 look_at 0 angle 35 }
light_source { <100,200,-300>, .5 media_interaction off }

sphere
{ 0,4 hollow
  pigment { rgbt 1 }
  interior
  { media
    { scattering { 1, .2 extinction .1 }
      samples 50,100
    }
  }
}

light_source
{ 0, 1
  fade_distance 2 fade_power 2
}
sphere
{ 0, 1
  clipped_by
  { union
    { #declare Angle1 = 0;
      #declare Angle2 = 0;
      #while(Angle2 < 180)
        sphere { y, .1 rotate <Angle2, Angle1> }
        #declare Angle2 = Angle2 + 2;
        #declare Angle1 = Angle1 + 42;
      #end
      inverse
    }
  }
  pigment { rgb <1,.7,.4> }
}


-- 
                                                          - Warp


Post a reply to this message

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