X3D Model Documentation: PhysicalUnitRepresentationPrototypes.x3d

  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='titlecontent='PhysicalUnitRepresentationPrototypes.x3d'/>
  6            <meta name='descriptioncontent='Prototypes to demonstrate functionality for Real-Length Representation nodes.'/>
  7            <meta name=' warning content=' under development '/>
  8            <meta name='creatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='22 July 2007'/>
 10            <meta name='modifiedcontent='20 October 2019'/>
 11            <meta name='referencecontent='Myeon Won Lee and Sun-Young Cho, "Real Length Representation for Virtual Objects," point paper, University of Suwon, Korea, June 2007.'/>
 12            <meta name='subjectcontent='X3D scaling and metadata convenience nodes'/>
 13            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/development/PhysicalUnitRepresentationPrototypes.x3d'/>
 14            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 15            <meta name='licensecontent='../license.html'/>
 16       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: MyZeptoScale, ZeptoScale

Index for ProtoDeclare definition: ZeptoScale
-->
 17       <Scene>
 18            <!-- ==================== -->
 19            <!-- Initial approach: direct scaling -->
 20            <WorldInfo title='PhysicalUnitRepresentationPrototypes.x3d'/>
 21            <Transform DEF='MyZeptoScalescale='1.0E-10 1.0E-10 1.0E-10'>
 22                 <Transform scale='1.0E-11 1.0E-11 1.0E-11'>
 23                      <MetadataString name='lengthUnitvalue='"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='ZeptoScaleappinfo='ZeptoScale applies a uniform scale factor of 10^-21 to all children'>
 34                 <ProtoInterface>
 35                      <field name='childrentype='MFNodeaccessType='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='ZeptoScalescale='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='childrenprotoField='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.25skyColor='0.25 0.25 0.25'/>
 61       </Scene>
 62  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->

<!-- to top Index for DEF nodes: MyZeptoScale, ZeptoScale

Index for ProtoDeclare definition: ZeptoScale
-->
X3D Tooltips element index: Background, Box, connect, field, fieldValue, head, IS, meta, MetadataString, ProtoBody, ProtoDeclare, ProtoInstance, ProtoInterface, Scene, Shape, Sphere, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

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. 
Additional guidance on X3D animation can be found in the 10-Step Animation Design Process and Event Tracing hint sheets. Have fun with X3D! 😀

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/development/PhysicalUnitRepresentationPrototypesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/PhysicalUnitRepresentationPrototypes.x3d -->

<!-- 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> -->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->