#VRML V2.0 utf8

# This file is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.

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"
]

DEF TimeSensor1 TimeSensor 
  {
  loop TRUE
  }

DEF PositionInterpolator1 PositionInterpolator 
  {
  key 
    [
    0.762219 
    ]
  keyValue 
    [
    0 7.502944 -28.003107 
    ]
  }

ROUTE TimeSensor1.fraction_changed TO PositionInterpolator1.set_fraction

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 "Waterfall"
  }

DEF Transform1 Transform 
  {
  children 
    [
    Shape 
      {
      appearance       Appearance 
	{
	material 	Material 
	  {
	  }
	}
      geometry       Box 
	{
	size 2 2 4.899999
	}
      }
    ]
  rotation 0 1 0 1.544079e-3
  translation -0.982212 0.520671 -3.201421e-10
  }

Transform 
  {
  children 
    [
    DEF WATER ParticleSource 
      {
      particle_node       Billboard 
	{
	axisOfRotation 0 0 0
	children 
	  [
	  Transform 
	    {
	    children 
	      [
	      Shape 
		{
		appearance 		Appearance 
		  {
		  texture 		  ImageTexture 
		    {
		    url 
		      [
		      "waterfall.png"
		      ]
		    }
		  }
		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 1 1.500000 1
	    }
	  ]
	}
      number_particles 30
      energyRange 2 2.200000
      angleRangeDEG -85 -90
      allowedHeightRange -1.500000 0.300000
      sizeRange 0.699998 0.800000
      density 1
      jetRadius 0.3
      }
    ]
  rotation -0.624055 0.489448 0.609093 2.203396
  }

ROUTE PositionInterpolator1.value_changed TO WATER.force_in

