1#VRML V2.0 utf8
2
3# This file is free software; you can redistribute it and/or
4# modify it under the terms of the GNU Library General Public
5# License as published by the Free Software Foundation; either
6# version 2 of the License, or (at your option) any later version.
7
8EXTERNPROTO ParticleSource
9[
10  eventIn SFVec3f force_in
11  field SFNode particle_node
12  field SFInt32 number_particles
13  field SFVec3f force
14  field SFVec2f energyRange
15  field SFVec2f angleRangeDEG
16  field SFFloat startHeight
17  field SFVec2f allowedHeightRange
18  field SFVec2f sizeRange
19  field SFFloat density
20  field SFFloat gravitation
21  field SFFloat jetRadius
22]
23[
24"../../../lib/VRML97protos/ParticleSourcePROTO.wrl"
25"ParticleSourcePROTO.wrl"
26"/usr/lib/VRML97protos/ParticleSourcePROTO.wrl"
27"/usr/local/lib/VRML97protos/ParticleSourcePROTO.wrl"
28]
29
30DEF TimeSensor1 TimeSensor
31  {
32  loop TRUE
33  }
34
35DEF PositionInterpolator1 PositionInterpolator
36  {
37  key
38    [
39    0.762219
40    ]
41  keyValue
42    [
43    0 7.502944 -28.003107
44    ]
45  }
46
47ROUTE TimeSensor1.fraction_changed TO PositionInterpolator1.set_fraction
48
49WorldInfo
50  {
51  info
52    [
53    "Copyright (C) 2003 J. \"MUFTI\" Scheurich"
54    " This program is free software; you can redistribute it and/or modify"
55    " it under the terms of the GNU General Public License"
56    ]
57  title "Waterfall"
58  }
59
60DEF Transform1 Transform
61  {
62  children
63    [
64    Shape
65      {
66      appearance       Appearance
67	{
68	material 	Material
69	  {
70	  }
71	}
72      geometry       Box
73	{
74	size 2 2 4.899999
75	}
76      }
77    ]
78  rotation 0 1 0 1.544079e-3
79  translation -0.982212 0.520671 -3.201421e-10
80  }
81
82Transform
83  {
84  children
85    [
86    DEF WATER ParticleSource
87      {
88      particle_node       Billboard
89	{
90	axisOfRotation 0 0 0
91	children
92	  [
93	  Transform
94	    {
95	    children
96	      [
97	      Shape
98		{
99		appearance 		Appearance
100		  {
101		  texture 		  ImageTexture
102		    {
103		    url
104		      [
105		      "waterfall.png"
106		      ]
107		    }
108		  }
109		geometry 		IndexedFaceSet
110		  {
111		  coord 		  Coordinate
112		    {
113		    point
114		      [
115		      -1 -1 1
116		      1 -1 1
117		      -1 -1 -1
118		      1 -1 -1
119		      ]
120		    }
121		  ccw FALSE
122		  coordIndex
123		    [
124		    1 3 2 0 -1
125		    ]
126		  }
127		}
128	      ]
129	    rotation 1 0 0 -1.570000
130	    scale 1 1.500000 1
131	    }
132	  ]
133	}
134      number_particles 30
135      energyRange 2 2.200000
136      angleRangeDEG -85 -90
137      allowedHeightRange -1.500000 0.300000
138      sizeRange 0.699998 0.800000
139      density 1
140      jetRadius 0.3
141      }
142    ]
143  rotation -0.624055 0.489448 0.609093 2.203396
144  }
145
146ROUTE PositionInterpolator1.value_changed TO WATER.force_in
147
148