1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
3 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
4 | <head> |
5 | <meta name='title' content='Vector.x3d'/> |
6 | <meta name='description' content='Vector: this world illustrates the use of a Prototype declaration to define a generic vector whose position, orientation, scale, and color are all set by incoming fields. The vector is used by the VectorField1 example to fill a volume with visualization vectors, all pointing different directions and with different colors.'/> |
7 | <meta name='creator' content='David R. Nadeau'/> |
8 | <meta name='translator' content='Don Brutzman'/> |
9 | <meta name='created' content='1 July 1998'/> |
10 | <meta name='translated' content='2 February 2014'/> |
11 | <meta name='modified' content='20 October 2019'/> |
12 | <meta name='reference' content='VectorField1.x3d'/> |
13 | <meta name='reference' content='originals/vector.wrl'/> |
14 | <meta name='reference' content='http://www.siggraph.org/s98'/> |
15 | <meta name='reference' content='http://www.siggraph.org/s98/conference/courses/18.html'/> |
16 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/slides/mt0496.htm'/> |
17 | <meta name='reference' content='http://www.sdsc.edu/~moreland/courses/Siggraph98/vrml97/vrml97.htm'/> |
18 | <meta name='reference' content='https://www.web3d.org/x3d/content/examples/X3dResources.html'/> |
19 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/Vector.x3d'/> |
20 | <meta name='generator' content='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/> |
21 | <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> |
22 | <meta name='license' content='../license.html'/> |
23 | </head> |
24 | <Scene> |
25 | <WorldInfo info='"Copyright (c) 1997, David R. Nadeau"' title='Vector'/> |
26 | <ProtoDeclare name='Vector'> |
27 | <ProtoInterface> |
28 | <field name='color' type='SFColor' value='0.8 0.8 0.8' accessType='initializeOnly'/> |
29 | <field name='rotation' type='SFRotation' value='0.0 1.0 0.0 0.0' accessType='initializeOnly'/> |
30 | <field name='scale' type='SFVec3f' value='1.0 1.0 1.0' accessType='initializeOnly'/> |
31 | <field name='translation' type='SFVec3f' value='0.0 0.0 0.0' accessType='initializeOnly'/> |
32 | </ProtoInterface> |
33 | <ProtoBody> |
34 | <Transform> |
35 | <IS> |
36 | <connect nodeField='translation' protoField='translation'/> |
37 | <connect nodeField='scale' protoField='scale'/> |
38 | <connect nodeField='rotation' protoField='rotation'/> |
39 | </IS> |
40 | |
41 | <Appearance> |
42 | <Material ambientIntensity='0.0' diffuseColor='0.0 0.0 0.0'> |
43 | <IS> |
44 | <connect nodeField='emissiveColor' protoField='color'/> |
45 | </IS> |
46 | </Material> |
47 | </Appearance> |
48 | <IndexedFaceSet solid='false' coordIndex='0 1 2 3 0 -1 4 5 6 4'> |
49 | <Coordinate point='-0.1 0.0 0.0 0.1 0.0 0.0 0.1 0.75 0.0 -0.1 0.75 0.0 -0.25 0.75 0.0 0.25 0.75 0.0 0.0 1.0 0.0'/> |
50 | </IndexedFaceSet> |
51 | </Shape> |
52 | <Transform rotation='0.0 1.0 0.0 1.57'> |
53 | <Shape USE='flatArrow'/> |
54 | </Transform> |
55 | </Transform> |
56 | </ProtoBody> |
57 | </ProtoDeclare> |
58 | <!-- Display scene instructions for viewing an example scene with a corresponding prototype instance --> |
59 | <Background skyColor='0 0.333333 0.66667'/> |
60 | <Anchor description='select text to view parent scene' url=' "VectorField1.x3d" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/VectorField1.x3d" "VectorField1.wrl" "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/VectorField1.wrl" '> |
61 | <Shape> |
62 | <Text string='"The Vector.x3d scene holds" "a prototype declaration" "" "Select this text to view example usage" "in VectorField1.x3d scene"'> |
63 | <FontStyle justify='"MIDDLE" "MIDDLE"' style='BOLD'/> |
64 | </Text> |
65 | <Appearance> |
66 | <Material diffuseColor='1 0.9 0.4'/> |
67 | </Appearance> |
68 | </Shape> |
69 | <!-- Invisible box behind text makes selection easier --> |
70 | <Shape> |
71 | <Box size='12 5 0.1'/> |
72 | <Appearance> |
73 | <Material transparency='1'/> |
74 | </Appearance> |
75 | </Shape> |
76 | </Anchor> |
77 | </Scene> |
78 | </X3D> |
Event Graph ROUTE Table with 0 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
Anchor |
description='select text to view parent scene' User-interaction hint for this node. |
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
<ProtoDeclare
name='ProtoName'>
<field
name='fieldName'/> </ProtoDeclare>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->