Menu

#66 X3DJSAIL file won't validate, but complains about missing texCoordIndex

X3D3
open
None
2025-11-19
2025-08-26
No

Better error message is requested to track down error. I have texCoordIndex in every IndexedFaceSet. Is it a particular index that's the problem?

I will try X3D-Edit.

See attached FACS file, using HAnimDisplacer

jcarl@JustHumans MINGW64 ~/x3djsonld/src/main/shell (master)
$ java -cp "../java;../../../X3DJSAIL.4.0.full.jar" net.coderextreme.CommandLines ../data/JinWink.x3d
CommandLine parameter: "-validate" for model validation
parameter: source file JinWink.x3d filesize 290426 bytes
Parsing using Document Object Model (DOM) based X3DLoaderDOM...
org.web3d.x3d.sai.InvalidFieldException: IndexedFaceSet containing TextureCoordinate node with 295 values must also include texCoordIndex or coordIndex field
at org.web3d.x3d.jsail.Geometry3D.IndexedFaceSet.validate(IndexedFaceSet.java:3919)
at org.web3d.x3d.jsail.Shape.Shape.validate(Shape.java:2143)
at org.web3d.x3d.jsail.Grouping.Transform.validate(Transform.java:2648)
at org.web3d.x3d.jsail.HAnim.HAnimSegment.validate(HAnimSegment.java:6116)
at org.web3d.x3d.jsail.HAnim.HAnimJoint.validate(HAnimJoint.java:7491)
at org.web3d.x3d.jsail.HAnim.HAnimJoint.validate(HAnimJoint.java:7491)
at org.web3d.x3d.jsail.HAnim.HAnimHumanoid.validate(HAnimHumanoid.java:6481)
at org.web3d.x3d.jsail.Core.Scene.validate(Scene.java:876)
at org.web3d.x3d.jsail.Core.X3D.validate(X3D.java:4647)
at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:1150)
at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:244)
at net.coderextreme.CommandLines.main(CommandLines.java:11)
validate results:
[exception] during validation: IndexedFaceSet containing TextureCoordinate node with 295 values must also include texCoordIndex or coordIndex field

1 Attachments

Discussion

  • John W Carlson

    John W Carlson - 2025-08-26

    Apparently, according to X3D-Edit, the file is garbage. If people give me garbage, am I supposed to take out the trash? Are the FacialAnimation scenes in the archive better? Let me know, and I will start over from the beginning with them.

     
  • Don Brutzman

    Don Brutzman - 2025-11-19

    Agreed it is important to start with valid X3D if you want to perform meaningful operations on an X3D model.

    Joe and I have performed a great deal of optimization and validation corrections on the following model recently, including with updated release of X3DJSAIL. Test reports welcome.

     

Log in to post a comment.

MongoDB Logo MongoDB