[x3d-public] [x3dom-users] X3DOM not loading this file?

Don Brutzman brutzman at nps.edu
Sun Apr 8 15:59:03 PDT 2018


I tried sending it to X3D Validator via url

	https://savage.nps.edu/X3dValidator?url=http://coderextreme.net/X3DJSONLD/src/main/data/ifs.x3d

but it didn't eventually return.  Scene is fairly large (2.8 MB) so testing will be easier on a smaller excerpt; perhaps include same number of values but only use 1-2 places beyond decimal point for file reduction..

I also ran X3D Validator in Netbeans using X3D-Edit and got the following:

--------- Commence validation checks for ifs.x3d ---------

Performing well-formed XML check...
Checking file:/C:/installs/ifs.x3d...
Well-formed XML check: pass

Performing DOCTYPE check...
[X3dDoctypeChecker] success: valid XML declaration found; success: final X3D 3.3 DOCTYPE found.

Performing DTD validation...
Checking file:/C:/installs/ifs.x3d...
XML DTD validation: pass

Performing X3D schema validation...
Checking file:/C:/installs/ifs.x3d...
Referenced entity at "nbres:/org/web3d/x3d/externals/schemas/x3d-3.3-Web3dExtensionsPublic.xsd".
cvc-pattern-valid: Value '-1.5717495803202972 1.5010459735645993 -0.9984927008286802 -1.579391660072666 1.551492859008854 -0.9864885983744568 -1.57079 0.9724032096291927 -1 -1.5707958351153464 0.9724150552548111 -0.999990834259165 -1.5707917219270615 0.9724303160837228 -0.9999972952141909 -1.570811598646887

[... snip ...]

-0.8268688097168273 0.6117797847733457 -2.1685439664849047 -0.8484724749836337 1.031108768482434 -2.134609145120458 -0.8754682244714049 1.2986451920818023 -2.092204491782562 -0.9034445552370282 1.372625773813016 -2.0482595511792283 -0.9271920890568556 1.2403361339622263 -2.0109571625303815 -2.565880204623874 -0.045153193449661636 0.5630777425211346'
of attribute 'vector' on element 'Normal' is not valid with respect to its type, 'MFVec3f'.
XML schema validation: fail!

Performing X3D regular expression (regex) values check...

Performing X3dToClassicVrml.xslt conversion check...

Performing X3D Schematron check...
It is good practice to identify editor used, for example <meta name='generator' content='X3D-Edit, https://savage.nps.edu/X3D-Edit'/> [/X3D/head, info]

--------- Validation checks complete for ifs.x3d ---------

It looks to me like your normal value is failing the regular-expression check for MFVec3f in X3D Schema.

Am noticing that many of your normal values are greater than 1, you likely want to convert all normal vectors to 1.0 unit magnitude (and none with 0.0 magnitude).

FYI there was once a regex in place that only allowed such unit-magnitude vectors; I disabled it because many tools do not bother to normalize that content.  Perhaps we should have a strict mode in X3D-Tidy for that.

For you a good generator meta tag might be something like the following (I'll restore the meta/generator menu in X3D-Edit).

	<meta name='generator' content='X3DJSONLD Loader, http://coderextreme.net/X3DJSONLD'/>

On 4/2/2018 9:28 PM, John Carlson wrote:
> This file doesn’t load in X3DOM:
> 
> http://coderextreme.net/X3DJSONLD/src/main/html/x3domframe.html
> 
> http://coderextreme.net/X3DJSONLD/src/main/data/ifs.x3d
> 
> Loads in BS Contact and X_ITE fine, but the object is kind of flat.  Not sure why—perhaps it really is flat.  Gotta work on my transforms from JSON -> STL, I guess.

A handful of players forgave the normal problem and showed a flat neon-green helicopter pointing straight down.

Others did not forgive.  Xj3D independently noted the same MFVec3f error.

> Sigh, more work!

thank goodness   8)

> I’m guessing I’m going over the limit on coordinates or Indexes, but there’s no warning???  Did I already report this bug?
> 
> John

minimum support levels in X3D specification are pretty high (and there is no maximum):

X3D v3.3 Abstract Specification, B Interchange Profile, B.4 Conformance criteria
Table B.3 — Nodes for conforming to the Interchange profile
http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#SupportLevels

Item 		X3D File Limit,	Minimum Browser Support
=======================================================
Color 		15,000 colours. 15,000 colours.
Coordinate 	65,535 points 	65,535 points.
Normal 		15,000 normals 	15,000 normals.

etc.

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