1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
|
3 | <X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'> |
4 | <head> |
5 | <meta name='title' content='PhysicalUnitRepresentationPrototypes.x3d'/> |
6 | <meta name='description' content='Prototypes to demonstrate functionality for Real-Length Representation nodes.'/> |
7 | <meta name=' warning ' content=' under development '/> |
8 | <meta name='creator' content='Don Brutzman'/> |
9 | <meta name='created' content='22 July 2007'/> |
10 | <meta name='modified' content='20 October 2019'/> |
11 | <meta name='reference' content='Myeon Won Lee and Sun-Young Cho, "Real Length Representation for Virtual Objects," point paper, University of Suwon, Korea, June 2007.'/> |
12 | <meta name='subject' content='X3D scaling and metadata convenience nodes'/> |
13 | <meta name='identifier' content='https://www.web3d.org/x3d/content/examples/Basic/development/PhysicalUnitRepresentationPrototypes.x3d'/> |
14 | <meta name='generator' content='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/> |
15 | <meta name='license' content='../license.html'/> |
16 | </head> |
17 | <Scene> |
18 | <!-- ==================== --> |
19 | <!-- Initial approach: direct scaling --> |
20 | <WorldInfo title='PhysicalUnitRepresentationPrototypes.x3d'/> |
21 | <Transform DEF='MyZeptoScale' scale='1.0E-10 1.0E-10 1.0E-10'> |
22 | <Transform scale='1.0E-11 1.0E-11 1.0E-11'> |
23 | <MetadataString name='lengthUnit' value='"ZEPTO meters"'/> |
24 | <!-- scaled content goes here --> |
25 | <Shape> |
26 | <Box/> |
27 | </Shape> |
28 | </Transform> |
29 | </Transform> |
30 | <!-- ==================== --> |
31 | <!-- Second approach: prototype nodes for scaling --> |
32 | <!-- ==================== --> |
33 | <ProtoDeclare name='ZeptoScale' appinfo='ZeptoScale applies a uniform scale factor of 10^-21 to all children'> |
34 | <ProtoInterface> |
35 | <field name='children' type='MFNode' accessType='inputOutput'> |
36 | <!-- initialization: NULL node --> |
37 | </field> |
38 | <!-- TODO: can add other fields for Transform node here to ensure completeness --> |
39 | </ProtoInterface> |
40 | <ProtoBody> |
41 | <Transform DEF='ZeptoScale' scale='1.0E-10 1.0E-10 1.0E-10'> |
42 | <Transform scale='1.0E-11 1.0E-11 1.0E-11'> |
43 | <IS> |
44 | <connect nodeField='children' protoField='children'/> |
45 | </IS> |
46 | </Transform> |
47 | </Transform> |
48 | </ProtoBody> |
49 | </ProtoDeclare> |
50 | <!-- ==================== --> |
51 | <!-- Example use of prototype: the following should be very very small... --> |
52 | <ProtoInstance name='ZeptoScale'> |
53 | <fieldValue name='children'> |
54 | <Shape> |
55 | <Sphere/> |
56 | </Shape> |
57 | </fieldValue> |
58 | </ProtoInstance> |
59 | <!-- ==================== --> |
60 | <Background groundColor='0.25 0.25 0.25' skyColor='0.25 0.25 0.25'/> |
61 | </Scene> |
62 | </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.
ProtoInstance ZeptoScale |
No ROUTE connection found for output events from this node. This ProtoInstance contains SFNode/MFNode fieldValue declaration with direct access to other nodes, and thus has potential to produce run-time animation. |
<!--
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)
<ProtoInstance
name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->