Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tim

#1
I was finaly unable to loade my collada file. i used an ogre3d export instead.
No one speak about collada on Bones' thread.
#2
i don't think i can atm, but i'll search for another one.
Tanks for answering !
#3
Oups, i forget to mention that i also have a material in my .blend
#4
Support / Collada loading and Collada2Bones script
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


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