Can someone professional tell me what's the problem with the collada XML? I cannot find the cause of it.
You can test it with TestMipMaps of JMEtests too, I've tried that one for the foolproof test. :)
InputStream mobboss = new FileInputStream(new File("./data/models/fauna/gorilla_walking1.dae"));
// this stream points to the animation file. Note: You don't necessarily
// have to split animations out into seperate files, this just helps.
InputStream animation = new FileInputStream(new File("./data/models/fauna/gorilla_walking1.dae"));
if (mobboss == null) {
System.out
.println("Unable to find file, did you include jme-test.jar in classpath?");
System.exit(0);
}
// tell the importer to load the mob boss
ColladaImporter.load(mobboss, "model");
Loads correctly, I can see the poly counter showing the right amount, but the model is totally invisible...(of course it can be some kind of blender settings that I should check, but which one is yet mysterious to me.
PS:
shot:
(if I turn of bounding box view, I can see nothing at all, but counters are the same (minus the bounding box counts), this box is from really close in TestMipMaps)
Thanks for trying! weird, it doesn't really remind me of the gorilla it once was! There seems to be some problem with the compatibility of the collada file and the jme importer… but what's that?
Anybody an idea? Or someone who uses Blender exported Collada in JME? What's the trick to make it working?
This is a rather serious issue for me currently, I find md3 not so nice a way for blender exported models, collada would be so cool…this bothers me much, there Must be a way to connect the opensource modeler with the opensource Java 3d engine with the only open 3d animated file format jme can export!.. hope I'll find a nice solution soon for the jcrpg game.almost a go-nogo problem.
2008.01.23. 12:42:52 com.jmex.model.collada.ColladaImporter processNode
WARNING: Bone uper_leg_R is not attached to any vertices.
2008.01.23. 12:42:52 com.jme.scene.Node attachChild
INFO: Child (uper_leg_R) attached to this node (Scene)
2008.01.23. 12:42:52 com.jme.scene.Node <init>
INFO: Node created.
2008.01.23. 12:42:52 com.jmex.model.collada.ColladaImporter processNode
WARNING: Bone lower_leg_R is not attached to any vertices.
2008.01.23. 12:42:52 com.jme.scene.Node attachChild
INFO: Child (lower_leg_R) attached to this node (uper_leg_R)
2008.01.23. 12:42:52 com.jme.scene.Node <init>
INFO: Node created.
2008.01.23. 12:42:52 com.jmex.model.collada.ColladaImporter processNode
WARNING: Bone foot_R is not attached to any vertices.
2008.01.23. 12:42:52 com.jme.scene.Node attachChild
INFO: Child (foot_R) attached to this node (lower_leg_R)
2008.01.23. 12:42:52 com.jme.scene.Node <init>
INFO: Node created.
This is on the log... it seems that the exporter gives something really incoherent regarding the nodes and such...maybe this is an blender/exporter related problem. Anyone tried to use blender/collada + jme? Some kind of hacking to make it work?
Anyone tried to use blender/collada + jme? Some kind of hacking to make it work?
A few people have tried this, and posted different fixes in order to make it work (for both the jME skeletal system and the blender exporter). Search the forum, you'll no doubt find the posts. I tried all fixes I have seen so far, but nothing really worked for me.
BUT if I wrap a new texture around the same model in blender, for example just Project From View some image, then the same model with no other changes appear smoothed in jME and all vertices seem to have just one shared normal..
If I do this, it works! Looks I'll have to stick to that kind of UV mapping to make it smooth and working. Well, yeah, at least I've a way to go now! :)