petrbroz/svf-utils

Accessor element at index ${number} is NaN.

Opened this issue · 2 comments

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).

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?

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

#47 (comment)