[x3d-public] inserting HAnimSite above top-level Viewpoint nodes in HAnim figure; replacing X3D v3.4 with v4.0

Don Brutzman brutzman at nps.edu
Sat Jul 16 20:32:00 PDT 2016


copy to: H-Anim

Made changes to 6 h-anim example scenes have been checked in for this problem, inserting HAnimSite above Viewpoints that were just below HAnimHumanoid.

Example excerpt:

       <HAnimSite containerField='viewpoints' name='BoxMan_view'>
         <Viewpoint DEF='InclinedView' containerField='viewpoints' description='Inclined View' orientation='-0.113 0.993 0.0347 0.671' position='1.62 1.05 2.06'/>
         <Viewpoint DEF='FrontView' containerField='viewpoints' description='Front View' position='0 0.854 2.57665'/>
         <Viewpoint DEF='SideView' containerField='viewpoints' description='Side View' orientation='0 1 0 1.5708' position='2.5929 0.854 0'/>
         <Viewpoint DEF='TopView' containerField='viewpoints' description='Top View' orientation='1 0 0 -1.5708' position='0 3.4495 0'/>
       </HAnimSite>
     </HAnimHumanoid>

Modification diffs can be found at

	https://sourceforge.net/p/x3d/code/23357
	https://sourceforge.net/p/x3d/code/23358

/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/AllenDutton.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/BoxMan.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/DiamondManLOA-0.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/DiamondManLOA-1.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/DiamondManLOA-2.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/NancyNativeTags.x3d

Also fixed hands & feet models to use X3D v4.0 rather than v3.4 (which is no longer under production or supported).

	https://sourceforge.net/p/x3d/code/23359
	
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/HAnimModelFootLeft.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/HAnimModelFootRight.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/HAnimModelHandLeft.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/HAnimModelHandRight.x3d
/www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/HAnimModelsHandsFeet.x3d

On 7/14/2016 8:23 AM, Don Brutzman wrote:
> [cc: H-Anim]
>
> Summary:  HAnimHumanoid cannot directly contain Viewpoint nodes in the /viewpoints/ field, rather it should contain HAnimSite.
>
>
> Thanks for the diagnosis.  Apologies for not tracking this earlier.
>
> My fault for assuming that the viewpoints field containing Viewpoint nodes!  :(
>
> Perhaps we should rename this field as viewpointSites in the future X3D v4 specification?
>
> I will fix example scenes, tooltips, XML DTD/Schema, Schematron and report back when complete.
>
> Roy and I will look at X3D Object Model when X3D XML Schema is modified, then he can confirm that JSON Schema is OK.
>
> We just looked at X3D XML Schema - it is OK.  Added a warning comment (excerpt follows) and an H-Anim link comment for next release.
>
> =========================================
>     <xs:element name="HAnimHumanoid">
>         <xs:annotation>
>             <xs:appinfo>
>                 <xs:element name="joints" type="MFNode" fixed="inputOutputField" default="HAnimJoint"/>
>                 <xs:element name="segments" type="MFNode" fixed="inputOutputField" default="HAnimSegment"/>
>                 <xs:element name="sites" type="MFNode" fixed="inputOutputField" default="HAnimSite"/>
>                 <xs:element name="skeleton" type="MFNode" fixed="inputOutputField" default="HAnimJoint|HAnimSite"/>
>                 <xs:element name="skin" type="MFNode" fixed="inputOutputField" default="X3DChildNode"/>
>                 <xs:element name="skinCoord" type="SFNode" fixed="inputOutputField" default="X3DCoordinateNode"/>
>                 <xs:element name="skinNormal" type="SFNode" fixed="inputOutputField" default="X3DNormalNode"/>
>                 <xs:element name="viewpoints" type="MFNode" fixed="inputOutputField" default="HAnimSite"/><!-- not Viewpoint -->
>                 <xs:attribute name="additionalInterface" type="xs:string" default="X3DBoundedObject"/>
>                 <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="H-Anim"/>
>                 <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
>             </xs:appinfo>
>             <xs:documentation source="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/hanim.html#HAnimHumanoid"/>
>             <!-- H-Anim specification http://www.web3d.org/documents/specifications/19774/V1.0/HAnim/ObjectInterfaces.html#Humanoid -->
>         </xs:annotation>
> =========================================
>
> Good lesson learned:  thank you JSON Schema for uncovering another inconsistency.  Having lots of QA tools with varying expressive power all helps.
>
>     http://www.web3d.org/x3d/content/examples/X3dResources.html#QualityAssurance
>
>
> On 7/14/2016 12:39 AM, Roy Walmsley wrote:
>> John,
>>
>>
>>
>> I reported the failure to pass JSON schema back on 20^th February 2016. This problem occurs in a number of files. The files in question do not meet the current X3D specification, as Viewpoints are not permitted as child nodes of the HAnimHumanoid node /viewpoints/ field. It remains an outstanding issue.
>>
>>
>>
>> Reference: http://web3d.org/mailman/private/x3d_web3d.org/2016-February/004367.html
>>
>> Reference: http://web3d.org/mailman/private/h-anim_web3d.org/2016-February/000843.html
>>
>>
>>
>> Roy
>>
>>
>>
>> *From:*x3d-public [mailto:x3d-public-bounces at web3d.org] *On Behalf Of *John Carlson
>> *Sent:* 14 July 2016 04:42
>> *To:* Don Brutzman; x3dom-users at lists.sourceforge.net; X3D Graphics public mailing list
>> *Subject:* [x3d-public] Missing Text, Sensors on X3D resources HAnim figure, X3DOM
>>
>>
>>
>> Can someone look and see why the text and sensors don’t show up in the rendering of this file? Unimplemented sensors?
>>
>>
>>
>> http://www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/NancyNativeTags.xhtml
>>
>>
>>
>> Also,
>>
>>
>>
>> http://www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/NancyNativeTags.json
>>
>>
>>
>> does not pass JSON schema validation.
>>
>>
>>
>> They show up in BSContact.
>>
>>
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
>>
>>
>>
>
>
> all the best, Don


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list