X3D Model Documentation: HAnimPoseExternProtoDeclare.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
  3  <X3D profile='Full' version='4.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-4.0.xsd'>
  4       <head>
  5            <meta name='titlecontent=' HAnimPoseExternProtoDeclare.x3d '/>
  6            <meta name='descriptioncontent='Define ExternProtoDeclare for an experimental new node to simply capture a single pose for an HAnimHumanoid model. Expected usage is to allow HAnimHumanoid to contain multiple Pose nodes which can be activated and composed.'/>
  7            <meta name='createdcontent='1 November 2025'/>
  8            <meta name='modifiedcontent='2 November 2025'/>
  9            <meta name='creatorcontent='Don Brutzman'/>
 10            <meta name='creatorcontent='Joe Williams'/>
 11            <meta name='contributorcontent='Holger Seelig for X_ITE, Sunrize on Windows, scripting guidance, and Inline IMPORT functionality as node-reference equivalent to USE'/>
 12            <meta name='specificationSectioncontent='HAnim Architecture volume 1 version 2.1 draft, clause 6 Object interfaces, section 6.4 Pose'/>
 13            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19774/ISO-IEC19774-1/ISO-IEC19774-1v2.1/ISO-IEC19774-1v2.1-WD/Architecture/ObjectInterfaces.html#Pose'/>
 14            <meta name='specificationSectioncontent='HAnim Architecture volume 1 version 2.1 draft, clause 4 Concepts, section 4.8.2 Modelling of human-like HAnim figures'/>
 15            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19774/ISO-IEC19774-1/ISO-IEC19774-1v2.1/ISO-IEC19774-1v2.1-WD/Architecture/concepts.html#ModellingHumanLikeHAnimFigures'/>
 16            <meta name='specificationSectioncontent='HAnim Architecture volume 1 version 2.1 draft, clause 4 Concepts, section 4.8.3 Poses'/>
 17            <meta name='specificationUrlcontent='https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19774/ISO-IEC19774-1/ISO-IEC19774-1v2.1/ISO-IEC19774-1v2.1-WD/Architecture/concepts.html#Poses'/>
 18            <meta name='referencecontent='Direct scene manipulations with Javascript, https://doc.instantreality.org/tutorial/direct-scene-manipulations-with-javascript'/>
 19            <meta name='generatorcontent='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/>
 20            <meta name='generatorcontent='Sunrize X3D Editor V1.11.1, https://create3000.github.io/sunrize'/>
 21            <meta name='identifiercontent=' https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Poses/HAnimPoseExternProtoDeclare.x3d '/>
 22            <meta name='licensecontent=' https://www.web3d.org/x3d/content/examples/license.html '/>
 23       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: DisplayHeader1, DisplayHeader2, HeaderFont, ModelInfo, PoseTextAppearance, TransparentAppearance

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: HAnimPose
-->
 24       <Scene>
 25            <WorldInfo DEF='ModelInfoinfo='"Design to illustrate a potential HAnimPose node"title='HAnimPoseExternProtoDeclare'/>
 26            <Background skyColor='0.6 0.6 0.8'/>
 27            <NavigationInfo/>
 28            <ExternProtoDeclare name='HAnimPoseappinfo='Experimental node to support HAnimPosePrototype.x3d usage.'   url=' "HAnimPosePrototype.x3d#HAnimPose" "https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Poses/HAnimPosePrototype.x3d#HAnimPose" '>
 29                 <field name='nametype='SFStringaccessType='inputOutputappinfo='name of this pose'/>
 30                 <field name='parentHAnimHumanoidtype='SFNodeaccessType='initializeOnlyappinfo='Humanoid for this Pose to act upon'/>
 31                 <field name='loatype='SFInt32accessType='initializeOnlyappinfo='default is no loa'/>
 32                 <field name='descriptiontype='SFStringaccessType='inputOutputappinfo='explanation of purpose'/>
 33                 <field name='enabledtype='SFBoolaccessType='inputOutputappinfo='default value true'/>
 34                 <field name='resetAllJointstype='SFBoolaccessType='inputOnlyappinfo='reset the skeleton to I pose with all joints zeroed'/>
 35                 <field name='poseJointstype='MFNodeaccessType='inputOutputappinfo='joint values to apply to HAnimHumanoid'/>
 36                 <field name='transitionDurationtype='SFTimeaccessType='inputOutputappinfo='how many seconds to achieve the pose'/>
 37                 <field name='isActivetype='SFBoolaccessType='outputOnlyappinfo='event indicating when pose transition is active'/>
 38                 <field name='commencePosetype='SFBoolaccessType='inputOnlyappinfo='this event tells the HAnimPose node to fully transition, equivalent to set_fraction=1'/>
 39                 <field name='set_startTimetype='SFTimeaccessType='inputOnlyappinfo='starts the animation clock'/>
 40                 <field name='set_fractiontype='SFFloataccessType='inputOnlyappinfo='allows transition to proceed incrementally from fraction [0..10'/>
 41                 <field name='isLoadedtype='SFBoolaccessType='inputOnlyappinfo='possible notification from LoadSensor if using HAnimHumanoid Inline/IMPORT AS/USE'/>
 42                 <field name='traceEnabledtype='SFBoolaccessType='inputOutputappinfo='debug trace to Browser output console'/>
 43            </ExternProtoDeclare>
 44            <Viewpoint description='HAnimPoseExternProtoDeclare descriptionposition='0 1 4'/>
 45            <Transform DEF='DisplayHeader1translation='0 1.5 0'>
 46                 <Anchor description='go to HAnimPoseExternProtoDeclareIndex pageparameter='"target=_blank"'   url=' "https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Poses/HAnimPoseExternProtoDeclareIndex.html" '>
 47                      <Shape>
 48                           <Text string='"Utility scene" "HAnimPoseExternProtoDeclare.x3d"'>
 49 
                              <!-- FontStyle HeaderFont is a DEF node that has 1 USE node: USE_1 -->
                              <FontStyle DEF='HeaderFontfamily='"SANS"justify='"MIDDLE" "MIDDLE"size='0.15style='BOLD'/>
 50                           </Text>
 51 
                         <!-- Appearance PoseTextAppearance is a DEF node that has 1 USE node: USE_1 -->
                         <Appearance DEF='PoseTextAppearance'>
 52                                <Material diffuseColor='0.1 0.3 0.5'/>
 53                           </Appearance>
 54                      </Shape>
 55                      <Shape>
 56                           <Box size='3.5 0.5 .001'/>
 57 
                         <!-- Appearance TransparentAppearance is a DEF node that has 1 USE node: USE_1 -->
                         <Appearance DEF='TransparentAppearance'>
 58                                <Material transparency='1'/>
 59                           </Appearance>
 60                      </Shape>
 61                 </Anchor>
 62            </Transform>
 63            <Transform DEF='DisplayHeader2translation='0 0.5 0'>
 64                 <Anchor description='go to HAnimPosePrototypeIndex pageparameter='"target=_blank"'   url=' "https://www.web3d.org/x3d/content/examples/HumanoidAnimation/Poses/HAnimPosePrototypeIndex.html" '>
 65                      <Shape>
 66                           <Text string='"This model supports" "HAnimPosePrototype.x3d"'>
 67                                <FontStyle USE='HeaderFont'/>
 68                           </Text>
 69                           <Appearance USE='PoseTextAppearance'/>
 70                      </Shape>
 71                 </Anchor>
 72                 <Shape>
 73                      <Box size='2.6 0.5 .001'/>
 74                      <Appearance USE='TransparentAppearance'/>
 75                 </Shape>
 76            </Transform>
 77       </Scene>
 78  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top DEF nodes index: DisplayHeader1, DisplayHeader2, HeaderFont, ModelInfo, PoseTextAppearance, TransparentAppearance

Index for Viewpoint node: Viewpoint_1

Index for ExternProtoDeclare definition: HAnimPose
-->
X3D Tooltips element index: Anchor, Appearance, Background, Box, ExternProtoDeclare, field, FontStyle, head, Material, meta, NavigationInfo, Scene, Shape, Text, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and 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.

line 46
Anchor
description='go to HAnimPoseExternProtoDeclareIndex page' 
User-interaction hint for this node. 

line 64
Anchor
description='go to HAnimPosePrototypeIndex page' 
User-interaction hint for this node. 

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/HumanoidAnimation/Poses/HAnimPoseExternProtoDeclareIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/HumanoidAnimation/Poses/HAnimPoseExternProtoDeclare.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode DEF='idNamefield='value'/> matches XML terminology <XmlElement DEF='idNameattribute='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> -->

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