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

ColladaLoader: Error while parsing/building skeleton #13335

Closed
jadutter opened this issue Feb 15, 2018 · 4 comments
Closed

ColladaLoader: Error while parsing/building skeleton #13335

jadutter opened this issue Feb 15, 2018 · 4 comments

Comments

@jadutter
Copy link

I asked stackoverflow, and the first comment suggested it may be a bug that I should report.

I give a detailed report in my post here:

https://stackoverflow.com/questions/48796931/why-cant-colladaloader-js-from-three-js-load-my-file/48797863#48797863

And here's extra relevant info not mentioned on stackoverflow.

Chrome requesting http://127.0.0.1:5000/raptor

Flask web server returns raptor.html that imports three.js and ColladaLoader.js and contains the script to import the raptor.dae.
Substituting raptor.dae with the elf.dae from the demo works.

Windows 10

NVIDIA GeForce GTX 950

Files saved and server run on Samsung 128GB USB 3.0 Flash Drive Fit (MUF-128BB/AM) https://www.amazon.com/dp/B017DH3O5A/ref=cm_sw_r_cp_apa_m3pHAbXRXVACJ

Everything I've done is self taught, and this issue is just the one obstacle where I don't have the knowledge to solve it, let alone the minimum amount of knowledge to search for the answer.
Any guidance I can get would be greatly appreciated.

@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 15, 2018

File: https://drive.google.com/drive/folders/1jR--PnBAwM6R2cgb0CvrIkGbVaD99WHI

I see multiple problems with this dae model. Investigating...

@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 15, 2018

Your model should now load with the latest dev version of ColladaLoader. But there is still one problem in context of skeleton parsing. I'll provide more details as soon as i know what's going wrong.

@jadutter
Copy link
Author

I've loaded the dev version of three.js and ColladaLoader.js
Elf.dae still loads, and Raptor still does not load.

The raptor file is ripped from Ark Survival Evolved and I found it online.
image

Let me know if there's anything I can do to help.

@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 16, 2018

Elf.dae still loads, and Raptor still does not load.

Yeah, you're right. I've added a change to my local dae file and that solved the issue 😅

The problem is that the file refers to the skeleton in an unusual way. It does not refer to the top most bone but to the node of the visual scene. ColladaLoader can't process this setup at the moment. If you change the following section from

<skeleton>#ID8</skeleton>

to

<skeleton>#ID9</skeleton>

the file should actually load (ID9 is the id of the top most bone whereas ID8 is the id of the visual scene).

@Mugen87 Mugen87 changed the title ColladaLoader won't load my file ColladaLoader: Error while parsing/building skeleton Feb 16, 2018
@Mugen87 Mugen87 added the Bug label Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants