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='Pdm1BottomMinePrototype.x3d'/> |
6 | <meta name='description' content='Russian bottom mine triggered by tilt bar (whisker); prototype declaration for reuse in other scenes.'/> |
7 | <meta name='creator' content='Don Brutzman and Jeff Weekley, LAX Gate 65'/> |
8 | <meta name='created' content='20 March 2001'/> |
9 | <meta name='modified' content='28 November 2019'/> |
10 | <meta name='reference' content='Pdm1BottomMineExample.x3d'/> |
11 | <meta name='photo' content='Pdm1AssembledMine97cm.jpg'/> |
12 | <meta name='photo' content='Pdm1Fuse.jpg'/> |
13 | <meta name='photo' content='Pdm1FuseBoxLabel.jpg'/> |
14 | <meta name='photo' content='Pdm1MineBoxLabel.jpg'/> |
15 | <meta name='photo' content='Pdm1MineCaseAnchorFrame.jpg'/> |
16 | <meta name='reference' content='https://www.fas.org/man/dod-101/navy/docs/swos/cmd/miw/Sp6-4-1/sld065.htm'/> |
17 | <meta name='identifier' content='https://savage.nps.edu/Savage/Weapons/UnderwaterMines/Pdm1BottomMinePrototype.x3d'/> |
18 | <meta name='generator' content='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/> |
19 | <meta name='license' content='../../license.html'/> |
20 | </head> |
21 | <Scene> |
22 | <WorldInfo title='Pdm1BottomMinePrototype.x3d'/> |
23 | <ProtoDeclare name='Pdm1BottomMine' appinfo='PDM-1 underwater mine'> |
24 | <ProtoInterface> |
25 |
<field name='mineColor' type='SFColor' value='0.4 0.3 0.1' accessType='inputOutput'
appinfo='useful for classification'/> |
26 |
<field name='viewpointDescription' type='SFString' value='PDM-1 mine' accessType='initializeOnly'
appinfo='customize to match each instance'/> |
27 | </ProtoInterface> |
28 | <ProtoBody> |
29 | <LOD range='100 1000'> |
30 | <Group> |
31 |
<Anchor description='link to image' parameter='"target=_blank"'
url=' "Pdm1AssembledMine97cm.jpg![]() ![]() |
32 | <Transform translation='0 0.02 0'> |
33 | <Shape> |
34 | <Extrusion creaseAngle='0.785' crossSection='1.00 0.00 0.92 -0.38 0.71 -0.71 0.38 -0.92 0.00 -1.00 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1.00 -0.00 -0.92 0.38 -0.71 0.71 -0.38 0.92 0.00 1.00 0.38 0.92 0.71 0.71 0.92 0.38 1.00 0.00' scale='0.16 0.16 0.14 0.14 0.08 0.08 0.025 0.025 0.025 0.025 0.005 0.005 0.005 0.005' spine='0 0 0 0 0.02 0 0 0.04 0 0 0.05 0 0 0.10 0 0 0.10 0 0 0.97 0'/> |
35 | <Appearance> |
36 | |
37 | <IS> |
38 | <connect nodeField='diffuseColor' protoField='mineColor'/> |
39 | </IS> |
40 | </Material> |
41 | </Appearance> |
42 | </Shape> |
43 | </Transform> |
44 | <Transform translation='0 0.015 0'> |
45 | <Shape> |
46 | <Cylinder height='0.01' radius='0.3'/> |
47 | <Appearance> |
48 | <Material USE='MineColor'/> |
49 | </Appearance> |
50 | </Shape> |
51 | </Transform> |
52 | </Anchor> |
53 | <Viewpoint DEF='EntryViewpoint0' description='PDM-1 (Russian bottom mine)' position='0 0.5 1.5'> |
54 | <IS> |
55 | <connect nodeField='description' protoField='viewpointDescription'/> |
56 | </IS> |
57 | </Viewpoint> |
58 | </Group> |
59 | <!-- interestingly, USE EntryViewpoint0 didn't work when switching LOD levels, apparently due to viewpoint losing scope before handoff --> |
60 | <Viewpoint DEF='EntryViewpoint1' description='PDM-1 (Russian bottom mine)' position='0 0.5 1.5'> |
61 | <IS> |
62 | <connect nodeField='description' protoField='viewpointDescription'/> |
63 | </IS> |
64 | </Viewpoint> |
65 | <WorldInfo info='"empty node"'/> |
66 | </LOD> |
67 | </ProtoBody> |
68 | </ProtoDeclare> |
69 | <Background skyColor='0 0.3 1.0'/> |
70 | <Anchor description='Pdm1BottomMineExample' parameter='"target=_blank"' url=' "Pdm1BottomMineExample.x3d" "https://savage.nps.edu/Savage/Weapons/UnderwaterMines/Pdm1BottomMineExample.x3d" "Pdm1BottomMineExample.wrl" "https://savage.nps.edu/Savage/Weapons/UnderwaterMines/Pdm1BottomMineExample.wrl" '> |
71 | <Shape> |
72 | <Text string='"Pdm1BottomMinePrototype" "is a prototype definition file" "" "Click this text to see" "Pdm1BottomMineExample"'> |
73 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
74 | </Text> |
75 | <Appearance> |
76 | <Material diffuseColor='0.6 0.8 0.4'/> |
77 | </Appearance> |
78 | </Shape> |
79 | </Anchor> |
80 | </Scene> |
81 | </X3D> |
<!--
Color-coding 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.
-->