www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: tim on March 07, 2011, 12:00:30 pm
-
Hi,
I'm trying to load an animate mesh from a collada file (created by exporting a .blend using blender).
I tryed two ways :
- using to collada2Bones script. but it failed saying
ttkm@ttkm-Laptop:~/Bureau/Bones/scripts$ sudo ./ardorCollada2Bones.sh -in monsters.dae -out duck
Exception in thread "main" java.lang.RuntimeException: Unable to load collada resource from URL: URLResourceSource
at com.ardor3d.extension.model.collada.jdom.ColladaImporter.load(ColladaImporter.java:154)
at com.ardor3d.extension.model.collada.jdom.ColladaImporter.load(ColladaImporter.java:91)
at raft.jpct.bones.util.ArdorColladaImporter.loadGroup(ArdorColladaImporter.java:97)
at raft.jpct.bones.util.ArdorColladaImporter.loadGroup(ArdorColladaImporter.java:83)
at raft.jpct.bones.util.ArdorColladaImporter.run(ArdorColladaImporter.java:60)
at raft.jpct.bones.util.ArdorColladaImporter.main(ArdorColladaImporter.java:155)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 27
at com.ardor3d.extension.animation.skeletal.SkinnedMesh.applyPose(SkinnedMesh.java:264)
at com.ardor3d.extension.model.collada.jdom.ColladaAnimUtils.buildSkinMeshes(ColladaAnimUtils.java:486)
at com.ardor3d.extension.model.collada.jdom.ColladaAnimUtils.buildController(ColladaAnimUtils.java:157)
at com.ardor3d.extension.model.collada.jdom.ColladaNodeUtils.getVisualScene(ColladaNodeUtils.java:115)
at com.ardor3d.extension.model.collada.jdom.ColladaImporter.load(ColladaImporter.java:134)
... 5 more (http://file:/home/ttkm/Bureau/Bones/scripts/monsters.dae, type=.dae)
- importing the Collada file in my code by using ColladaImporter class.
but it failed saying it can't locate the resource (whatever I try).
The good way seems to be passing by the script.
Did anyone can help me please ?
PS : my .blend is composed of 1 mesh, 1 skeleton, 3 anims.
PPS : sorry for my poor english :)
-
Oups, i forget to mention that i also have a material in my .blend
-
seems as Ardor3d cannot load your model. maybe a bug in loader or a fault in exporter. try importing it with another importer
-
i don't think i can atm, but i'll search for another one.
Tanks for answering !
-
some other users also had problems with blender's collada exporter. have a look at Bones' thread, it may help
-
I was finaly unable to loade my collada file. i used an ogre3d export instead.
No one speak about collada on Bones' thread.