jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
760 stars 44 forks source link

Invalid typed array length #76

Closed andrewdevcup closed 2 years ago

andrewdevcup commented 2 years ago

I got this error when loading the model:

RangeError: Invalid typed array length: 20
    at new Float32Array (<anonymous>)
    at Function.e.from (pixi3d.min.js:17:212373)
    at e.parseBuffer (pixi3d.min.js:17:199160)
    at e.parsePrimitive (pixi3d.min.js:17:204392)
    at pixi3d.min.js:17:203825
    at Array.map (<anonymous>)
    at e.parseMesh (pixi3d.min.js:17:203785)
    at c (pixi3d.min.js:17:206008)
    at c (pixi3d.min.js:17:206399)
    at e.parseModel (pixi3d.min.js:17:206588)

glTF version 2.0 Generator: Created using the official Cinema 4D glTF Exporter 1.000x284978

jnsmalm commented 2 years ago

Can you share the model so I can debug this error?

andrewdevcup commented 2 years ago

mesh_tex_test.gltf

jnsmalm commented 2 years ago

Thanks for reporting this! I think I have fixed this issue, please test with latest version 1.2.0.

andrewdevcup commented 2 years ago

Now it's working correctly, thanks!!