dae collada loader problem

Hi,

When I try to load a skinned character rigged with regulars 3dsmax bones, I get a ClassCastException :
Why the DaeImporter try to convert the InstanceController to a InstanceWithExtra ?

I use the ColladaMax exporter 1.4.0

Thank you for your reply

greg

Exception in thread “main” com.xith3d.loaders.ParsingErrorException: org.collada._2005._11.colladaschema.impl.InstanceControllerImpl cannot be cast to org.collada._2005._11.colladaschema.InstanceWithExtra
at org.xith3d.loaders.dae.whoola.DaeLoader.load(DaeLoader.java:215)
at test.MainTest.(MainTest.java:44)
at test.MainTest.main(MainTest.java:101)
Caused by: java.lang.ClassCastException: org.collada._2005._11.colladaschema.impl.InstanceControllerImpl cannot be cast to org.collada._2005._11.colladaschema.InstanceWithExtra
at org.xith3d.loaders.dae.whoola.DaeImporter.convertNodeType(DaeImporter.java:2045)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertVisualSceneType(DaeImporter.java:3454)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertInstanceWithExtra(DaeImporter.java:1616)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertColladaSceneType(DaeImporter.java:814)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertColladaType(DaeImporter.java:768)
at org.xith3d.loaders.dae.whoola.DaeImporter.doImport(DaeImporter.java:173)
at org.xith3d.loaders.dae.whoola.DaeImporter.importColladaScene(DaeImporter.java:124)
at org.xith3d.loaders.dae.whoola.DaeLoader.createScene(DaeLoader.java:233)
at org.xith3d.loaders.dae.whoola.DaeLoader.load(DaeLoader.java:205)

That was a bug in my code. I’ve just now committed a fix so that it should ignore InstanceController instead of crashing. I, or someone else, will implement InstanceController at some future date. In the interim, it should not crash. Please let me know if it does.

Thank you very much for your support .
Now, DaeImporter imports and logs silently the InstanceController even when I try with a Biped character.

For your information :
When I export geometries with “Default” color texture, a ParsingErrorException is generated.

Exception in thread “main” com.xith3d.loaders.ParsingErrorException
at org.xith3d.loaders.dae.whoola.DaeLoader.load(DaeLoader.java:161)
at org.xith3d.loaders.dae.whoola.DaeLoader.loadAndPrint(DaeLoader.java:76)
at test.MainTest.(MainTest.java:42)
at test.MainTest.main(MainTest.java:100)
Caused by: java.lang.NullPointerException
at org.xith3d.loaders.dae.whoola.xith.XithCloneLib.clone(XithCloneLib.java:70)
at org.xith3d.loaders.dae.whoola.xith.XithCloneLib.clone(XithCloneLib.java:78)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertInstanceEffectType(DaeImporter.java:1477)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertMaterialType(DaeImporter.java:1950)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertInstanceMaterialType(DaeImporter.java:1595)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertBindMaterialType(DaeImporter.java:368)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertInstanceGeometryType(DaeImporter.java:1539)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertNodeType(DaeImporter.java:2156)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertVisualSceneType(DaeImporter.java:3550)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertInstanceWithExtra(DaeImporter.java:1715)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertColladaSceneType(DaeImporter.java:815)
at org.xith3d.loaders.dae.whoola.DaeImporter.convertColladaType(DaeImporter.java:769)
at org.xith3d.loaders.dae.whoola.DaeImporter.doImport(DaeImporter.java:174)
at org.xith3d.loaders.dae.whoola.DaeImporter.importColladaScene(DaeImporter.java:125)
at org.xith3d.loaders.dae.whoola.DaeLoader.createScene(DaeLoader.java:233)
at org.xith3d.loaders.dae.whoola.DaeLoader.load(DaeLoader.java:151)
… 3 more
Java Result: 1

Thank you. I committed a couple of fixes. Please reattempt.