Problems with Collada

Hi everybody,



I'm having trouble importing animated collada files in jME (current version from CVS), which CollView (http://www.pinecoast.com/collview.htm) imports just fine.



Here is a link to the file I am trying to import via ColladaImporter.load(): http://codeturm.org/test_090307.dae



And this is the error log I get, the log fragment results from the sinlge linge ColladaImporter.load(…).


19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
Version: 1.4.0
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: VALUE not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: IN_TANGENT.X not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: OUT_TANGENT.X not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: Animation source invalid: bone1_rotx-anim-output
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: VALUE not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: IN_TANGENT.X not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: OUT_TANGENT.X not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: Animation source invalid: bone1_roty-anim-output
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: VALUE not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: IN_TANGENT.X not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: OUT_TANGENT.X not yet supported for animation source.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: Animation source invalid: bone1_rotz-anim-output
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (geometries_0) attached to this node (controllers_0_node)
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: Key: controllers_0-Joints already in use. Overriding previous data. This is probably not desired.
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (cylinder) attached to this node (visual_scenes_0)
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (controllers_0_node) attached to this node (cylinder)
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (root) attached to this node (visual_scenes_0)
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (bone) attached to this node (root)
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: Key: bone already in use. Overriding previous data. This is probably not desired.
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (bone1) attached to this node (bone)
19.03.2007 18:36:18 com.jme.util.ErrorManager addError
WARNUNG: Key: bone1 already in use. Overriding previous data. This is probably not desired.
19.03.2007 18:36:18 com.jme.scene.Node <init>
INFO: Node created.
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (eff) attached to this node (root)
19.03.2007 18:36:18 com.jme.scene.Node attachChild
INFO: Child (visual_scenes_0) attached to this node (model)
batch: geometries_0: Batch 0 old: 240 new: 1



Can anyone of the devs please help me with this issue? Is the file format wrong? It was exported with SoftImage XSI (not by me), and I know they have some troubles with their exporter. But as I said, CollView imports it and plays the animation.

Thanks in advance!  :)

/bump  :smiley:

jME's ColladaImporter simply does not support many of the tags that the XSI exporter is using. There are no plans to support these tags any time soon as well (it's not cost effective for us (NCsoft) to worry about exporters we don't use). There are a few options: You can play with the exporting options to see if you can bake animations into transforms, and play with any other option to see what works. Or, if you are willing, you can work with the ColladaImporter and add support for missing features.

…the latter being the most appreciated as it can be contributed back and we'll all love you and those that come after you won't have to worry about such problems. :wink:

Or, if you are a jme developer facing those problems, you could see it as a opportunity to fix them yourself… :wink:

we are (very)slowly incorporating some improvements we have made at Jadestone to support features when exporting from maya/max. but we don't use xsi unfortunately.

Thanks for your input, I will ask our modeller to try to alter some export options.



We are not bound to XSI, we could also export them from 3DSMAX, so it would be cool if you have anything to share with us, Mr. Coder :slight_smile:

The problems I'm having related to Maya and I'm working with Mojo (primarily, "It's broken this way…where do I look to find the problem?", and "You idiot, it's right there in front of your face") to try to resolve the issues.



MrCoder, have you been experiencing alpha state issues with Maya exported models as well?

You don't use Collada for your distribution files do you? what i read is that you are supposed to write your own format to save space and to help protect your proprietary files, is that true? Is there more to it than that?



Do you use Collada for maya files too?

The recommended path is to export from your 3D program to Collada and then convert the Collada file to a .jme binary file.  That makes load-times in-game significantly better, smaller file sizes, etc.