petrbroz / svf-utils

Utilities for working with the SVF file format used by Autodesk Platform Services.
https://petrbroz.github.io/svf-utils/
MIT License
127 stars 55 forks source link

Accessor element at index ${number} is NaN. #57

Open VFedyk opened 2 years ago

VFedyk commented 2 years ago

During the local conversion (with the help of the samples/local-svf-to-gltf.sh script) of the SVF file to gLTF, I get a lot of errors like this in the validator report:

{
    "code": "ACCESSOR_INVALID_FLOAT",
    "message": "Accessor element at index 52 is NaN.",
    "severity": 0,
    "pointer": "/accessors/32334"
},

As far as I understand, there is some wrong number somewhere in the ".bin" file, but I'm not sure how to debug this thing.

The next stage (Draco-compression) fails, and I think the roots of the issue is in the wrong format (or type) of numbers in a bin file.

Where should I start with this stuff? (I can also provide the file itself, but it is confidential).

petrbroz commented 2 years ago

I haven't seen this error before so I'm wondering if this is something related to the specific SVFs? If you could share one of these, that would certainly help. Could you perhaps DM a link to my Twitter handle @ipetrbroz?

wallabyway commented 2 years ago

@petr - hi Petr, You can see the same error here... and the sample glb and gltf file is provided,

https://github.com/petrbroz/forge-convert-utils/issues/47#issuecomment-1093279474