Viewpoint : X3DViewpointNode {
SFBool [in] set_bind
SFVec3f [in,out] centerOfRotation 0 0 0 (-∞,∞)
SFString [in,out] description ""
SFFloat [in,out] farDistance -1 -1 or (0,∞)
SFFloat [in,out] fieldOfView π/4 (0,π)
SFBool [in,out] jump TRUE
SFNode [in,out] metadata NULL [X3DMetadataObject]
SFNode [in,out] navigationInfo NULL [NavigationInfo]
SFFloat [in,out] nearDistance -1 -1 or (0,∞)
SFRotation [in,out] orientation 0 0 1 0 [-1,1],(-∞,∞)
SFVec3f [in,out] position 0 0 10 (-∞,∞)
SFBool [in,out] retainUserOffsets FALSE
SFBool [in,out] viewAll FALSE
SFTime [out] bindTime
SFBool [out] isBound
}
NavigationInfo should be in Viewpoint.navigationInfo , not -children
From www.web3d.org/x3d/stylesheets/java/examples/SmokeTestProgramOutput.json
{ "Viewpoint":
{
"@DEF":"DefaultView",
"@description":"Hello X3DJSAIL",
"-children":[
{ "NavigationInfo":
{
"@DEF":"ViewpointChildNavigationInfo"
}
}
]
}
},
Should be (SFNode, not MFNode, see above from standard):
{ "Viewpoint":
{
"@DEF":"DefaultView",
"@description":"Hello X3DJSAIL",
"-navigationInfo":
{ "NavigationInfo":
{
"@DEF":"ViewpointChildNavigationInfo"
}
}
}
},
This problem is in the X3DJSAIL archive, and so the deficiency is probably in the X3dToJSON.xslt conversion stylesheet.