#VRML V2.0 utf8

EXTERNPROTO ParticleSource
[
  eventIn SFVec3f force_in
  field SFNode particle_node
  field SFInt32 number_particles
  field SFVec3f force 
  field SFVec2f energyRange 
  field SFVec2f angleRangeDEG 
  field SFFloat startHeight 
  field SFVec2f allowedHeightRange 
  field SFVec2f sizeRange 
  field SFFloat density 
  field SFFloat gravitation
  field SFFloat jetRadius
]
[
"../../../lib/VRML97protos/ParticleSourcePROTO.wrl"
"ParticleSourcePROTO.wrl"
"/usr/lib/VRML97protos/ParticleSourcePROTO.wrl"
"/usr/local/lib/VRML97protos/ParticleSourcePROTO.wrl"
]

PROTO Flame
[
  field SFNode texture NULL
]
{
  DEF PARTICLES ParticleSource
    {
    particle_node Billboard 
      {
      axisOfRotation 0 0 0
      children 
        [
        Transform 
       	  {
   	  children 
  	    [
  	    Shape 
  	      {
  	      appearance 	    Appearance 
  	        {
  	        texture IS texture
  	        }
  	      geometry 	    IndexedFaceSet 
  	        {
  	        coord 	      Coordinate 
  		  {
  		  point 
  		    [
  		    -1 -1 1 
  		    1 -1 1 
  		    -1 -1 -1 
  		    1 -1 -1 
  		    ]
  		  }
  	        ccw FALSE
  	        coordIndex 
  		  [
  		  1 3 2 0 -1 
  		  ]
  	        }
  	      }
  	    ]
  	  rotation 1 0 0 -1.570000
  	  scale 0.300000 0.600000 1
  	  }
        ]
      }
    number_particles 10
    force 0 0 0
    energyRange 1.799999 2
    angleRangeDEG 87.500000 88
    startHeight 0
    allowedHeightRange -0.100000 1
    sizeRange 0.300000 0.400000
    density 4
    gravitation 1
  }
  
  DEF TimeSensor1 TimeSensor 
    {
    loop TRUE
    }
  
  DEF PositionInterpolator1 PositionInterpolator 
    {
    key 
      [
      0.173444 
      0.220095 
      0.266746 
      0.295454 
      0.319377 
      0.357655 
      0.434210 
      0.479665 
      0.543062 
      0.581339 
      0.629186 
      0.655502 
      0.678229 
      0.800239 
      0.819378 
      0.850478 
      0.864832 
      0.910287 
      0.954545 
      ]
    keyValue 
      [
      0 0 0.137533 
      0 0 0.262528 
      0 0 0.818756 
      0 0 2.383315 
      0 1.212079e-2 13.919135 
      0 0.118783 0.893754 
      0 0.696691 0.318776 
      0 0.795031 0.193781 
      0.143783 0.533610 0.130308 
      0.750009 0.231655 5.699489e-2 
      10.632407 0.100034 2.503761e-2 
      0.793757 0.106196 0.138180 
      0.112534 0.120206 0.137533 
      9.594482e-2 0.124238 0.312526 
      2.252016e-2 0.142085 0.793757 
      -6.211180e-3 0.149068 11.237856 
      -6.211180e-3 0.149068 0.831256 
      -6.211180e-3 0.149068 0.193781 
      -6.211180e-3 0.149068 6.288337e-3 
      ]
    }
  
  ROUTE TimeSensor1.fraction_changed TO PositionInterpolator1.set_fraction
  ROUTE PositionInterpolator1.value_changed TO PARTICLES.force_in
}

Flame 
  {
  texture   ImageTexture 
    {
    url 
      [
      "flame.png"
      ]
    }
  }

WorldInfo 
  {
  info 
    [
    "Copyright (C) 2003 J. \"MUFTI\" Scheurich"
    " This program is free software; you can redistribute it and/or modify"
    " it under the terms of the GNU General Public License"
    ]
  title "Flame"
  }

