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

demo resourses not work in example htmls #9

Open
sdarpeng opened this issue Dec 2, 2022 · 2 comments
Open

demo resourses not work in example htmls #9

sdarpeng opened this issue Dec 2, 2022 · 2 comments

Comments

@sdarpeng
Copy link

sdarpeng commented Dec 2, 2022

I cloned the res pack and found some of them works well but more of them even not work.

1,works well:
tina / ligerZero / toru / trex / vegeta / xboxavatar_dehvor

2, works,but renders only one part of the gltf.scene
ahsoka_tano / cattus / tyranitar
all these 3 gltf files has moran than one part , the gltf parse function ignored the other parts?

3, not work
1),at_rt /cherubbotpm1 / gine / jinx / ronin /
everything is OK in blender but shows the following error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'idx')
Uncaught (in promise) SyntaxError: Unexpected token a in JSON at position 6
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'joints')

2), readplayerme
everything is OK in blender but shows the following error:
UtilArm.js:34 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getSkin')

3),companioncube / sword_war
gltf file has no amature and it shows error:
UtilArm.js:34 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getSkin')

4), suzanne
gltf file can not importted into blender and it shows the following error:
Uncaught (in promise) SyntaxError: Unexpected token a in JSON at position 6

@sdarpeng
Copy link
Author

sdarpeng commented Dec 6, 2022

I find out maybe something wrong in threejs/lib/UtilGltf2.js

image

while the sub-objects of gltf file >1, there need another parser to resolve file, but failed.
This may caused gltf parts disappeared.

image

@trusktr
Copy link

trusktr commented Apr 25, 2024

This is very old, new work in in ossos_next, so this can probably be closed.

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