Menu ▾ ▴

#124 JSON: NavigationInfo in wrong field (children) in Viewpoint

X3D4
open
None
2026-10-06
2026-10-05
No

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"
}
}
}
},

Discussion

  • John W Carlson

    John W Carlson - 2026-10-05
    • summary: NavigatiowpoinInfo in wrong field (children) in Viewpoint --> NavigationInfo in wrong field (children) in Viewpoint
    • assigned_to: Don Brutzman
    • Milestone: X3D3 --> X3D4
     
  • John W Carlson

    John W Carlson - 2026-10-05
    • summary: NavigationInfo in wrong field (children) in Viewpoint --> JSON: NavigationInfo in wrong field (children) in Viewpoint
     
  • Don Brutzman

    Don Brutzman - 2026-10-06

    This problem is in the X3DJSAIL archive, and so the deficiency is probably in the X3dToJSON.xslt conversion stylesheet.

     

Log in to post a comment.