~holger-seelig/titania-library/trunk

« back to all changes in this revision

Viewing changes to Tests/Components/ParticleSystems/BoundedPhysicsModel.x3d

  • Committer: Holger Seelig
  • Date: 2017-09-18 02:55:31 UTC
  • Revision ID: holger.seelig@yahoo.de-20170918025531-n60g34kd9bfs41t1
Updated prototypes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
 
3
<X3D profile='Full' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
 
4
  <head>
 
5
    <meta name='comment' content='World of Titania'/>
 
6
    <meta name='created' content='Mon, 02 May 2016 10:03:35 GMT'/>
 
7
    <meta name='creator' content='holger'/>
 
8
    <meta name='generator' content='Titania V3.0.1, http://titania.create3000.de'/>
 
9
    <meta name='identifier' content='file:///home/holger/Projekte/Cobweb/excite/tests/Components/ParticleSystems/BoundedPhysicsModel.x3d'/>
 
10
    <meta name='modified' content='Thu, 13 Apr 2017 15:30:26 GMT'/>
 
11
    <meta name='outputStyle' content='nicest'/>
 
12
  </head>
 
13
  <Scene>
 
14
    <ExternProtoDeclare name='IcoSphere' url='"https://cdn.rawgit.com/create3000/Library/master/Prototypes/1/1.0/Geometry3D/IcoSphere.x3d", "http://cdn.rawgit.com/create3000/Library/master/Prototypes/1/1.0/Geometry3D/IcoSphere.x3d", "https://rawgit.com/create3000/Library/master/Prototypes/1/1.0/Geometry3D/IcoSphere.x3d", "http://rawgit.com/create3000/Library/master/Prototypes/1/1.0/Geometry3D/IcoSphere.x3d"'>
 
15
      <field accessType='inputOutput' type='SFString' name='type'/>
 
16
      <field accessType='inputOutput' type='SFInt32' name='order'/>
 
17
      <field accessType='inputOutput' type='SFFloat' name='radius'/>
 
18
      <field accessType='initializeOnly' type='SFBool' name='solid'/>
 
19
    </ExternProtoDeclare>
 
20
    <WorldInfo
 
21
        title='BoundedPhysicsModel'>
 
22
      <MetadataSet DEF='Titania'
 
23
          name='Titania'
 
24
          reference='http://titania.create3000.de'>
 
25
        <MetadataSet DEF='NavigationInfo' containerField='value'
 
26
            name='NavigationInfo'
 
27
            reference='http://titania.create3000.de'>
 
28
          <MetadataString DEF='type' containerField='value'
 
29
              name='type'
 
30
              reference='http://titania.create3000.de'
 
31
              value='"EXAMINE"'/>
 
32
        </MetadataSet>
 
33
        <MetadataSet DEF='Viewpoint' containerField='value'
 
34
            name='Viewpoint'
 
35
            reference='http://titania.create3000.de'>
 
36
          <MetadataDouble DEF='position' containerField='value'
 
37
              name='position'
 
38
              reference='http://titania.create3000.de'
 
39
              value='0, 0, 15'/>
 
40
          <MetadataDouble DEF='orientation' containerField='value'
 
41
              name='orientation'
 
42
              reference='http://titania.create3000.de'
 
43
              value='0, 0, 1, 0'/>
 
44
          <MetadataDouble DEF='centerOfRotation' containerField='value'
 
45
              name='centerOfRotation'
 
46
              reference='http://titania.create3000.de'
 
47
              value='0, 0, 0'/>
 
48
        </MetadataSet>
 
49
        <MetadataSet DEF='Selection' containerField='value'
 
50
            name='Selection'
 
51
            reference='http://titania.create3000.de'>
 
52
          <MetadataSet DEF='nodes' containerField='value'
 
53
              name='nodes'
 
54
              reference='http://titania.create3000.de'>
 
55
            <Transform DEF='Icosahedron' containerField='value'>
 
56
              <Shape>
 
57
                <Appearance>
 
58
                  <Material/>
 
59
                </Appearance>
 
60
                <ProtoInstance name='IcoSphere' DEF='_1' containerField='geometry'>
 
61
                  <fieldValue name='order' value='3'/>
 
62
                </ProtoInstance>
 
63
              </Shape>
 
64
            </Transform>
 
65
          </MetadataSet>
 
66
        </MetadataSet>
 
67
      </MetadataSet>
 
68
    </WorldInfo>
 
69
    <Background DEF='Gray'
 
70
        skyColor='0.2 0.2 0.2'/>
 
71
    <Viewpoint
 
72
        description='Viewpoint'
 
73
        position='0 0 15'
 
74
        fieldOfView='0.7854'/>
 
75
    <Transform DEF='Box'>
 
76
      <Shape>
 
77
        <Appearance>
 
78
          <Material
 
79
              transparency='0.49'/>
 
80
        </Appearance>
 
81
        <Box DEF='_2'
 
82
            size='7 7 7'/>
 
83
      </Shape>
 
84
    </Transform>
 
85
    <Transform USE='Icosahedron'/>
 
86
    <TimeSensor DEF='_3'
 
87
        cycleInterval='20'
 
88
        loop='true'/>
 
89
    <BooleanSequencer DEF='_4'
 
90
        key='0, 0.3, 1'
 
91
        keyValue='true, false'/>
 
92
    <ParticleSystem DEF='_5'
 
93
        geometryType='POINT'
 
94
        maxParticles='4000'
 
95
        particleLifetime='30'
 
96
        lifetimeVariation='0'
 
97
        particleSize='0.1 0.1'
 
98
        colorKey='0, 0.1, 0.4, 1'>
 
99
      <ConeEmitter
 
100
          position='0 -3 0'
 
101
          direction='1 4 0'
 
102
          angle='0.4'
 
103
          speed='0.2'
 
104
          mass='3200'/>
 
105
      <BoundedPhysicsModel DEF='BoundedSphere'>
 
106
        <ProtoInstance name='IcoSphere' USE='_1' containerField='geometry'/>
 
107
      </BoundedPhysicsModel>
 
108
      <BoundedPhysicsModel DEF='BoundedBox'>
 
109
        <Box USE='_2'/>
 
110
      </BoundedPhysicsModel>
 
111
      <ForcePhysicsModel
 
112
          force='0 -0.098 0'/>
 
113
      <ColorRGBA containerField='colorRamp'
 
114
          color='1 0.38 0 0.5, 1 0.58 0.06 0.5, 1 0.37 0 0.5, 1 0.05 0 0.5'/>
 
115
      <Appearance>
 
116
        <LineProperties
 
117
            linewidthScaleFactor='4'/>
 
118
      </Appearance>
 
119
    </ParticleSystem>
 
120
    <Transform DEF='IndexedLineSet'>
 
121
      <Shape>
 
122
        <IndexedLineSet
 
123
            colorPerVertex='false'
 
124
            colorIndex='0, 1, 2'
 
125
            coordIndex='0, 1, -1, 2, 3, -1, 4, 5, -1'>
 
126
          <Color
 
127
              color='1 0 0, 0 1 0, 0 0 1'/>
 
128
          <Coordinate
 
129
              point='-1 0 0, 1 0 0, 0 -1 0, 0 1 0, 0 0 -1, 0 0 1'/>
 
130
        </IndexedLineSet>
 
131
      </Shape>
 
132
    </Transform>
 
133
    <ROUTE fromNode='_3' fromField='fraction_changed' toNode='_4' toField='set_fraction'/>
 
134
    <ROUTE fromNode='_4' fromField='value_changed' toNode='_5' toField='set_createParticles'/>
 
135
  </Scene>
 
136
</X3D>