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

Corrupted output .dae file #24

Open
huse360 opened this issue Jun 16, 2020 · 4 comments
Open

Corrupted output .dae file #24

huse360 opened this issue Jun 16, 2020 · 4 comments

Comments

@huse360
Copy link

huse360 commented Jun 16, 2020

Archive.zip

Input file (Link from Wind Waker) cl.bdl
The output cl.dae cannot be opened by Blender or any other app. (Take a look at the attachment, please)
I tested the .dae file with this command line tool
xmllint --noout --schema http://www.khronos.org/files/collada_schema_1_4_1.xsd cl.dae

And got several parser errors:

cl.dae:4393: parser error : Attribute type redefined
<node id="link_root" name="link_root" type="NODE" sid="link_root" type="JOINT"
^
cl.dae:4395: parser error : Attribute type redefined
<node id="center" name="center" type="NODE" sid="center" type="JOINT"
^
cl.dae:4397: parser error : Attribute sid redefined
ody_chn" sid="body_chn" name="body_chn" type="JOINT" sid="body_chn" type="JOINT"
^
cl.dae:4397: parser error : Attribute type redefined
ody_chn" sid="body_chn" name="body_chn" type="JOINT" sid="body_chn" type="JOINT"
^
cl.dae:4399: parser error : Attribute sid redefined
sid="stomach_jnt" name="stomach_jnt" type="JOINT" sid="stomach_jnt" type="JOINT"
^
cl.dae:4399: parser error : Attribute type redefined
sid="stomach_jnt" name="stomach_jnt" type="JOINT" sid="stomach_jnt" type="JOINT"
^
cl.dae:4401: parser error : Attribute sid redefined
_jnt" sid="chest_jnt" name="chest_jnt" type="JOINT" sid="chest_jnt" type="JOINT"
^
cl.dae:4401: parser error : Attribute type redefined
_jnt" sid="chest_jnt" name="chest_jnt" type="JOINT" sid="chest_jnt" type="JOINT"
^
cl.dae:4403: parser error : Attribute sid redefined
shoulder_jnt" name="Lshoulder_jnt" type="JOINT" sid="Lshoulder_jnt" type="JOINT"
^
cl.dae:4403: parser error : Attribute type redefined
shoulder_jnt" name="Lshoulder_jnt" type="JOINT" sid="Lshoulder_jnt" type="JOINT"
^
cl.dae:4405: parser error : Attribute sid redefined
_jnt" sid="LarmA_jnt" name="LarmA_jnt" type="JOINT" sid="LarmA_jnt" type="JOINT"
^
cl.dae:4405: parser error : Attribute type redefined
_jnt" sid="LarmA_jnt" name="LarmA_jnt" type="JOINT" sid="LarmA_jnt" type="JOINT"
^
cl.dae:4407: parser error : Attribute sid redefined
_jnt" sid="LarmB_jnt" name="LarmB_jnt" type="JOINT" sid="LarmB_jnt" type="JOINT"
^
cl.dae:4407: parser error : Attribute type redefined
_jnt" sid="LarmB_jnt" name="LarmB_jnt" type="JOINT" sid="LarmB_jnt" type="JOINT"
^
cl.dae:4409: parser error : Attribute sid redefined
andA" sid="cl_LhandA" name="cl_LhandA" type="JOINT" sid="cl_LhandA" type="JOINT"
^
cl.dae:4409: parser error : Attribute type redefined
andA" sid="cl_LhandA" name="cl_LhandA" type="JOINT" sid="cl_LhandA" type="JOINT"
^
cl.dae:4415: parser error : Attribute sid redefined
shoulder_jnt" name="Rshoulder_jnt" type="JOINT" sid="Rshoulder_jnt" type="JOINT"
^
cl.dae:4415: parser error : Attribute type redefined
shoulder_jnt" name="Rshoulder_jnt" type="JOINT" sid="Rshoulder_jnt" type="JOINT"
^
cl.dae:4417: parser error : Attribute sid redefined
_jnt" sid="RarmA_jnt" name="RarmA_jnt" type="JOINT" sid="RarmA_jnt" type="JOINT"
^
cl.dae:4417: parser error : Attribute type redefined
_jnt" sid="RarmA_jnt" name="RarmA_jnt" type="JOINT" sid="RarmA_jnt" type="JOINT"
^
cl.dae:4419: parser error : Attribute sid redefined
_jnt" sid="RarmB_jnt" name="RarmB_jnt" type="JOINT" sid="RarmB_jnt" type="JOINT"
^
cl.dae:4419: parser error : Attribute type redefined
_jnt" sid="RarmB_jnt" name="RarmB_jnt" type="JOINT" sid="RarmB_jnt" type="JOINT"
^
cl.dae:4421: parser error : Attribute sid redefined
andA" sid="cl_RhandA" name="cl_RhandA" type="JOINT" sid="cl_RhandA" type="JOINT"
^
cl.dae:4421: parser error : Attribute type redefined
andA" sid="cl_RhandA" name="cl_RhandA" type="JOINT" sid="cl_RhandA" type="JOINT"
^
cl.dae:4427: parser error : Attribute sid redefined
d="cl_podA" sid="cl_podA" name="cl_podA" type="JOINT" sid="cl_podA" type="JOINT"
^
cl.dae:4427: parser error : Attribute type redefined
d="cl_podA" sid="cl_podA" name="cl_podA" type="JOINT" sid="cl_podA" type="JOINT"
^
cl.dae:4430: parser error : Attribute sid redefined
eck_jnt" sid="neck_jnt" name="neck_jnt" type="JOINT" sid="neck_jnt" type="JOINT"
^
cl.dae:4430: parser error : Attribute type redefined
eck_jnt" sid="neck_jnt" name="neck_jnt" type="JOINT" sid="neck_jnt" type="JOINT"
^
cl.dae:4432: parser error : Attribute sid redefined
ead_jnt" sid="head_jnt" name="head_jnt" type="JOINT" sid="head_jnt" type="JOINT"
^
cl.dae:4432: parser error : Attribute type redefined
ead_jnt" sid="head_jnt" name="head_jnt" type="JOINT" sid="head_jnt" type="JOINT"
^
cl.dae:4434: parser error : Attribute sid redefined
_jnt" sid="Lmomi_jnt" name="Lmomi_jnt" type="JOINT" sid="Lmomi_jnt" type="JOINT"
^
cl.dae:4434: parser error : Attribute type redefined
_jnt" sid="Lmomi_jnt" name="Lmomi_jnt" type="JOINT" sid="Lmomi_jnt" type="JOINT"
^
cl.dae:4437: parser error : Attribute sid redefined
_jnt" sid="Rmomi_jnt" name="Rmomi_jnt" type="JOINT" sid="Rmomi_jnt" type="JOINT"
^
cl.dae:4437: parser error : Attribute type redefined
_jnt" sid="Rmomi_jnt" name="Rmomi_jnt" type="JOINT" sid="Rmomi_jnt" type="JOINT"
^
cl.dae:4440: parser error : Attribute sid redefined
hin_jnt" sid="chin_jnt" name="chin_jnt" type="JOINT" sid="chin_jnt" type="JOINT"
^
cl.dae:4440: parser error : Attribute type redefined
hin_jnt" sid="chin_jnt" name="chin_jnt" type="JOINT" sid="chin_jnt" type="JOINT"
^
cl.dae:4443: parser error : Attribute sid redefined
de id="cl_eye" sid="cl_eye" name="cl_eye" type="JOINT" sid="cl_eye" type="JOINT"
^
cl.dae:4443: parser error : Attribute type redefined
de id="cl_eye" sid="cl_eye" name="cl_eye" type="JOINT" sid="cl_eye" type="JOINT"
^
cl.dae:4446: parser error : Attribute sid redefined
d="cl_hana" sid="cl_hana" name="cl_hana" type="JOINT" sid="cl_hana" type="JOINT"
^
cl.dae:4446: parser error : Attribute type redefined
d="cl_hana" sid="cl_hana" name="cl_hana" type="JOINT" sid="cl_hana" type="JOINT"
^
cl.dae:4449: parser error : Attribute sid redefined
d="cl_mayu" sid="cl_mayu" name="cl_mayu" type="JOINT" sid="cl_mayu" type="JOINT"
^
cl.dae:4449: parser error : Attribute type redefined
d="cl_mayu" sid="cl_mayu" name="cl_mayu" type="JOINT" sid="cl_mayu" type="JOINT"
^
cl.dae:4452: parser error : Attribute sid redefined
t" sid="hair1A_jnt" name="hair1A_jnt" type="JOINT" sid="hair1A_jnt" type="JOINT"
^
cl.dae:4452: parser error : Attribute type redefined
t" sid="hair1A_jnt" name="hair1A_jnt" type="JOINT" sid="hair1A_jnt" type="JOINT"
^
cl.dae:4454: parser error : Attribute sid redefined
t" sid="hair1B_jnt" name="hair1B_jnt" type="JOINT" sid="hair1B_jnt" type="JOINT"
^
cl.dae:4454: parser error : Attribute type redefined
t" sid="hair1B_jnt" name="hair1B_jnt" type="JOINT" sid="hair1B_jnt" type="JOINT"
^
cl.dae:4458: parser error : Attribute sid redefined
t" sid="hair2A_jnt" name="hair2A_jnt" type="JOINT" sid="hair2A_jnt" type="JOINT"
^
cl.dae:4458: parser error : Attribute type redefined
t" sid="hair2A_jnt" name="hair2A_jnt" type="JOINT" sid="hair2A_jnt" type="JOINT"
^
cl.dae:4460: parser error : Attribute sid redefined
t" sid="hair2B_jnt" name="hair2B_jnt" type="JOINT" sid="hair2B_jnt" type="JOINT"
^
cl.dae:4460: parser error : Attribute type redefined
t" sid="hair2B_jnt" name="hair2B_jnt" type="JOINT" sid="hair2B_jnt" type="JOINT"
^
cl.dae:4464: parser error : Attribute sid redefined
atA_jnt" sid="hatA_jnt" name="hatA_jnt" type="JOINT" sid="hatA_jnt" type="JOINT"
^
cl.dae:4464: parser error : Attribute type redefined
atA_jnt" sid="hatA_jnt" name="hatA_jnt" type="JOINT" sid="hatA_jnt" type="JOINT"
^
cl.dae:4466: parser error : Attribute sid redefined
atB_jnt" sid="hatB_jnt" name="hatB_jnt" type="JOINT" sid="hatB_jnt" type="JOINT"
^
cl.dae:4466: parser error : Attribute type redefined
atB_jnt" sid="hatB_jnt" name="hatB_jnt" type="JOINT" sid="hatB_jnt" type="JOINT"
^
cl.dae:4468: parser error : Attribute sid redefined
atC_jnt" sid="hatC_jnt" name="hatC_jnt" type="JOINT" sid="hatC_jnt" type="JOINT"
^
cl.dae:4468: parser error : Attribute type redefined
atC_jnt" sid="hatC_jnt" name="hatC_jnt" type="JOINT" sid="hatC_jnt" type="JOINT"
^
cl.dae:4478: parser error : Attribute sid redefined
_chn" sid="waist_chn" name="waist_chn" type="JOINT" sid="waist_chn" type="JOINT"
^
cl.dae:4478: parser error : Attribute type redefined
_chn" sid="waist_chn" name="waist_chn" type="JOINT" sid="waist_chn" type="JOINT"
^
cl.dae:4480: parser error : Attribute sid redefined
_jnt" sid="waist_jnt" name="waist_jnt" type="JOINT" sid="waist_jnt" type="JOINT"
^
cl.dae:4480: parser error : Attribute type redefined
_jnt" sid="waist_jnt" name="waist_jnt" type="JOINT" sid="waist_jnt" type="JOINT"
^
cl.dae:4482: parser error : Attribute sid redefined
sid="Lclotch_jnt" name="Lclotch_jnt" type="JOINT" sid="Lclotch_jnt" type="JOINT"
^
cl.dae:4482: parser error : Attribute type redefined
sid="Lclotch_jnt" name="Lclotch_jnt" type="JOINT" sid="Lclotch_jnt" type="JOINT"
^
cl.dae:4484: parser error : Attribute sid redefined
_jnt" sid="LlegA_jnt" name="LlegA_jnt" type="JOINT" sid="LlegA_jnt" type="JOINT"
^
cl.dae:4484: parser error : Attribute type redefined
_jnt" sid="LlegA_jnt" name="LlegA_jnt" type="JOINT" sid="LlegA_jnt" type="JOINT"
^
cl.dae:4486: parser error : Attribute sid redefined
_jnt" sid="LlegB_jnt" name="LlegB_jnt" type="JOINT" sid="LlegB_jnt" type="JOINT"
^
cl.dae:4486: parser error : Attribute type redefined
_jnt" sid="LlegB_jnt" name="LlegB_jnt" type="JOINT" sid="LlegB_jnt" type="JOINT"
^
cl.dae:4488: parser error : Attribute sid redefined
_jnt" sid="Lfoot_jnt" name="Lfoot_jnt" type="JOINT" sid="Lfoot_jnt" type="JOINT"
^
cl.dae:4488: parser error : Attribute type redefined
_jnt" sid="Lfoot_jnt" name="Lfoot_jnt" type="JOINT" sid="Lfoot_jnt" type="JOINT"
^
cl.dae:4490: parser error : Attribute sid redefined
toe_jnt" sid="Ltoe_jnt" name="Ltoe_jnt" type="JOINT" sid="Ltoe_jnt" type="JOINT"
^
cl.dae:4490: parser error : Attribute type redefined
toe_jnt" sid="Ltoe_jnt" name="Ltoe_jnt" type="JOINT" sid="Ltoe_jnt" type="JOINT"
^
cl.dae:4497: parser error : Attribute sid redefined
sid="Rclotch_jnt" name="Rclotch_jnt" type="JOINT" sid="Rclotch_jnt" type="JOINT"
^
cl.dae:4497: parser error : Attribute type redefined
sid="Rclotch_jnt" name="Rclotch_jnt" type="JOINT" sid="Rclotch_jnt" type="JOINT"
^
cl.dae:4499: parser error : Attribute sid redefined
_jnt" sid="RlegA_jnt" name="RlegA_jnt" type="JOINT" sid="RlegA_jnt" type="JOINT"
^
cl.dae:4499: parser error : Attribute type redefined
_jnt" sid="RlegA_jnt" name="RlegA_jnt" type="JOINT" sid="RlegA_jnt" type="JOINT"
^
cl.dae:4501: parser error : Attribute sid redefined
_jnt" sid="RlegB_jnt" name="RlegB_jnt" type="JOINT" sid="RlegB_jnt" type="JOINT"
^
cl.dae:4501: parser error : Attribute type redefined
_jnt" sid="RlegB_jnt" name="RlegB_jnt" type="JOINT" sid="RlegB_jnt" type="JOINT"
^
cl.dae:4503: parser error : Attribute sid redefined
_jnt" sid="Rfoot_jnt" name="Rfoot_jnt" type="JOINT" sid="Rfoot_jnt" type="JOINT"
^
cl.dae:4503: parser error : Attribute type redefined
_jnt" sid="Rfoot_jnt" name="Rfoot_jnt" type="JOINT" sid="Rfoot_jnt" type="JOINT"
^
cl.dae:4505: parser error : Attribute sid redefined
toe_jnt" sid="Rtoe_jnt" name="Rtoe_jnt" type="JOINT" sid="Rtoe_jnt" type="JOINT"
^
cl.dae:4505: parser error : Attribute type redefined
toe_jnt" sid="Rtoe_jnt" name="Rtoe_jnt" type="JOINT" sid="Rtoe_jnt" type="JOINT"
^
cl.dae:4515: parser error : Attribute sid redefined
d="cl_back" sid="cl_back" name="cl_back" type="JOINT" sid="cl_back" type="JOINT"
^
cl.dae:4515: parser error : Attribute type redefined
d="cl_back" sid="cl_back" name="cl_back" type="JOINT" sid="cl_back" type="JOINT"
^

@RenolY2
Copy link
Owner

RenolY2 commented Jun 16, 2020

It looks like you used an old version of superbmd. I converted the bdl to dae with the newest version here: https://github.com/RenolY2/SuperBMD/releases and the resulting dae imports fine into blender

@huse360
Copy link
Author

huse360 commented Jun 16, 2020

I ran the latest release v2.1.0 using mono (macOS 10.15.4) and I got the following exception, that's why previously I compiled it myself using Visual Studio for Mac and got the previous .dae issue.

Unhandled Exception:
Assimp.AssimpException: Error loading unmanaged library from path: libassimp64.dylib, error detail:
dlopen(libassimp64.dylib, 2): image not found
at Assimp.Unmanaged.AssimpLibraryMacImplementation.NativeLoadLibrary (System.String path) [0x0003d] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibraryImplementation.LoadAssimpLibrary (System.String path) [0x00007] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadLibrary () [0x00030] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadIfNotLoaded () [0x00008] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.GetExportFormatDescriptions () [0x00000] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.TestIfExportIdIsValid (System.String exportFormatId) [0x0000e] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.ExportFile (Assimp.Scene scene, System.String fileName, System.String exportFormatId, Assimp.PostProcessSteps preProcessing) [0x00025] in <42f854edfe2046ea85e3a07513737619>:0
at SuperBMDLib.Model.ExportAssImp (System.String fileName, System.String modelType, SuperBMDLib.ExportSettings settings) [0x005ea] in :0
at SuperBMDLib.Program.Main (System.String[] args) [0x00394] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: Assimp.AssimpException: Error loading unmanaged library from path: libassimp64.dylib, error detail:
dlopen(libassimp64.dylib, 2): image not found
at Assimp.Unmanaged.AssimpLibraryMacImplementation.NativeLoadLibrary (System.String path) [0x0003d] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibraryImplementation.LoadAssimpLibrary (System.String path) [0x00007] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadLibrary () [0x00030] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadIfNotLoaded () [0x00008] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.GetExportFormatDescriptions () [0x00000] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.TestIfExportIdIsValid (System.String exportFormatId) [0x0000e] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.ExportFile (Assimp.Scene scene, System.String fileName, System.String exportFormatId, Assimp.PostProcessSteps preProcessing) [0x00025] in <42f854edfe2046ea85e3a07513737619>:0
at SuperBMDLib.Model.ExportAssImp (System.String fileName, System.String modelType, SuperBMDLib.ExportSettings settings) [0x005ea] in :0
at SuperBMDLib.Program.Main (System.String[] args) [0x00394] in :0

@RenolY2
Copy link
Owner

RenolY2 commented Jun 16, 2020

Ah I see, you are on macOS.

Which version of AssimpNet did you compile it with in Visual Studio? Version 3.3.2 is the one I use.

@huse360
Copy link
Author

huse360 commented Jun 16, 2020

4.1.0
Should I downgrade?

Update: I downgraded to 3.3.2 with no luck :(

Unhandled Exception:
Assimp.AssimpException: Error loading unmanaged library from path: libassimp64.dylib, error detail:
dlopen(libassimp64.dylib, 2): image not found
at Assimp.Unmanaged.AssimpLibraryMacImplementation.NativeLoadLibrary (System.String path) [0x0003d] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibraryImplementation.LoadAssimpLibrary (System.String path) [0x00007] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadLibrary () [0x00030] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadIfNotLoaded () [0x00008] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.GetExportFormatDescriptions () [0x00000] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.TestIfExportIdIsValid (System.String exportFormatId) [0x0000e] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.ExportFile (Assimp.Scene scene, System.String fileName, System.String exportFormatId, Assimp.PostProcessSteps preProcessing) [0x00025] in <42f854edfe2046ea85e3a07513737619>:0
at SuperBMDLib.Model.ExportAssImp (System.String fileName, System.String modelType, SuperBMDLib.ExportSettings settings, SuperBMDLib.Arguments cmdargs) [0x00582] in <2c1c495925f34fe5a7dc869aee329573>:0
at SuperBMDLib.Program.Main (System.String[] args) [0x0034c] in <997165cd53dc49f3988c88896ff298b5>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Assimp.AssimpException: Error loading unmanaged library from path: libassimp64.dylib, error detail:
dlopen(libassimp64.dylib, 2): image not found
at Assimp.Unmanaged.AssimpLibraryMacImplementation.NativeLoadLibrary (System.String path) [0x0003d] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibraryImplementation.LoadAssimpLibrary (System.String path) [0x00007] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadLibrary () [0x00030] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.LoadIfNotLoaded () [0x00008] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.Unmanaged.AssimpLibrary.GetExportFormatDescriptions () [0x00000] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.TestIfExportIdIsValid (System.String exportFormatId) [0x0000e] in <42f854edfe2046ea85e3a07513737619>:0
at Assimp.AssimpContext.ExportFile (Assimp.Scene scene, System.String fileName, System.String exportFormatId, Assimp.PostProcessSteps preProcessing) [0x00025] in <42f854edfe2046ea85e3a07513737619>:0
at SuperBMDLib.Model.ExportAssImp (System.String fileName, System.String modelType, SuperBMDLib.ExportSettings settings, SuperBMDLib.Arguments cmdargs) [0x00582] in <2c1c495925f34fe5a7dc869aee329573>:0
at SuperBMDLib.Program.Main (System.String[] args) [0x0034c] in <997165cd53dc49f3988c88896ff298b5>:0

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