POV-Ray : Newsgroups : povray.binaries.images : Gun - 1 attachment : Re: Gun - Flame Code Server Time
10 Aug 2024 09:19:17 EDT (-0400)
  Re: Gun - Flame Code  
From: Rafal 'Raf256' Maj
Date: 29 Oct 2004 19:34:36
Message: <Xns9592105AF617Braf256com@203.29.75.35>
ns### [at] nospamedu news:41825b2f$1@news.povray.org

> I like the "flash."  How did you do that? 

Thanks, it was quite easy - just strethed spheres with emission media.

One big sphere in middle, sorrounded by 6 smaller creating a "star" around 
it.


#declare objGunFire = union {

  #macro objFlame(LT,RND)
  union {
    intersection {
      sphere { 0 1.4 }
      plane { +z,-0.1 }
      pigment { rgb 1 filter 1 }
      hollow
      interior { 
        media { emission 7*<1,.5,.2> 
          density { spherical turbulence .5 rotate 360*rand(RND) }
        }        
      }    
    }  
  
    // small hard blue
    intersection {
      sphere { 0 1.7 }
      plane { +z,-0.1 }
      pigment { rgb 1 filter 1 }
      hollow
      interior { 
        media { emission 40*<.2,.3,1> 
          density { spherical turbulence .7 rotate 360*rand(RND) }
        } 
      }
      translate +z*0.1    
      scale .4
    }  
  }
  #end
 
  object { objFlame(clock,seed(421+58))  translate -z*0.03 scale 
<1,1,5>*1.2 }
  union {
    #local I=0; #while (I<6) 
    object { objFlame(clock,seed(423+I*311))  translate -z*0.05 scale 
<1,1,6>*1.2 rotate x*80 rotate z*60*I }
    #local I=I+1;  #end
    scale .45 
  }
  translate +z*0.04

  translate <0,2.7,-9>
  
  rotate x*15
}   

> And how will you animate it?

see other Re:



-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

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