jPCT-AE - a 3d engine for Android > Support

Collada loading and Collada2Bones script

(1/2) > >>

tim:
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

- 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 :)

tim:
Oups, i forget to mention that i also have a material in my .blend

raft:
seems as Ardor3d cannot load your model. maybe a bug in loader or a fault in exporter. try importing it with another importer

tim:
i don't think i can atm, but i'll search for another one.
Tanks for answering !

raft:
some other users also had problems with blender's collada exporter. have a look at Bones' thread, it may help

Navigation

[0] Message Index

[#] Next page

Go to full version