Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glTFLoader issues with models that contain over 60k vertices #9205

Closed
lyaunzbe opened this issue Jun 24, 2016 · 3 comments
Closed

glTFLoader issues with models that contain over 60k vertices #9205

lyaunzbe opened this issue Jun 24, 2016 · 3 comments

Comments

@lyaunzbe
Copy link

lyaunzbe commented Jun 24, 2016

r77

I'm trying to use the glTFLoader to load in a glTF files (converted from obj) that can be around ~100k vertices, or more, where the indices need to be stored as integers instead of shorts. It seems however that the way in which the loader is build only supports a limited amount of vertices (CesiumGS/obj2gltf#12 (comment)).

screen shot 2016-06-23 at 5 55 07 pm

screen shot 2016-06-23 at 5 51 41 pm

line 237 in glTFLoaderUtils.js

The componentType in this case is an UNSIGNED_INT, which isn't being handled at the moment.

Any guidance or help would be much appreciated if possible! Thank you!

cc @tparisi

@lyaunzbe lyaunzbe changed the title glTFLoader issues with models over 60k vertices glTFLoader issues with models that contain over 60k vertices Jun 24, 2016
@mrdoob
Copy link
Owner

mrdoob commented Jun 24, 2016

Have you tried with the new GLTFLoader?
https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js

@lyaunzbe
Copy link
Author

lyaunzbe commented Jun 24, 2016

@mrdoob thank you for pointing me to that. After adding int to component types, 5125: Uint32Array (https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js#L100), my model loaded successfully!

@mrdoob
Copy link
Owner

mrdoob commented Jun 24, 2016

@lyaunzbe Thank you for patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants