Hi, sorry didn't know where else to post this really!
I'm in the middle of making a skateboard game in jme and am stuck trying to animate the skateboard.
I loaded the model into blender and did a little kickflip keyframe animation which works fine, however i can't seem to get it to export properly. I downloaded the blender2md5.py script from this guide:
The script seems to be working as "doom 3 md5" comes up in the export menu. When i type in the locations ("/home/emud/kickflip.md5mesh" and "/home/emud/kickflip.md5anim") and press export it seems to work, however when i look in my home directory the .md5anim file is not there and the .md5mesh file has this in it:
MD5Version 10
commandline ""
numJoints 0
numMeshes 1
joints {
}
mesh {
shader ""
numverts 0
numtris 0
numweights 0
}
that doesnt look like enough to be an animated model??
Sorry to be a total noob, i just need your help!!!
thanks.
Argh i'm hopeless at this, after trying to get the svn repository view for about a million years, the md5 importer wont work either.
every method in almost every class says "The method xxx of type xxx must override a superclass method" and it wont let me run anything. commenting out @override gets rid of the error but i cant be bothered to do that for every method, knowing me that'll probably break everything anyway
this is what i get when i try to run TestAnim.java:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The import com.jme.image.Texture.MagnificationFilter cannot be resolved
The import com.jme.image.Texture.MinificationFilter cannot be resolved
Texture.MinificationFilter cannot be resolved to a type
Texture.MagnificationFilter cannot be resolved to a type
MinificationFilter cannot be resolved to a type
The method getMiniFilter() is undefined for the type MeshImporter
MagnificationFilter cannot be resolved to a type
The method getMagFilter() is undefined for the type MeshImporter
at com.model.md5.importer.MD5Importer.<init>(MD5Importer.java:7)
at test.model.md5.Test.<init>(Test.java:17)
at test.model.md5.TestAnim.<init>(TestAnim.java:14)
at test.model.md5.TestAnim.main(TestAnim.java:17)
This magnificationFilter class doesn't seem to exist in my jme project???
hmmm....
Here are pictures of how my md5importer project is set up, as far as i know it’s right, but then i’m never right, thought these might help you diagnose the problem!
the project:
projects tab in build path
libraries tab in build path
the jme project is straight from cvs and works fine, i don’t think thats the problem…
OOOOOOOOHHHHHH, i assumed the cvs was the most up to date, that makes a difference!
Ok so i got the md5importer for jme 1.0, the test classes run although it still gives me the same compilation errors for the rest of the project (The method xxx of type xxx must override a superclass method)
edit: Updating to jme2, seems the more sensible thing to do than mess around with old stuff…
When importing a blender model with md5importer the model rotates in the wrong axis, i seem to remember a fix for md5reader which dealt with this but am yet to find a solution for md5importer, anybody know how to fix this?
Hmmm i'm not sure i understand this fully, my model has one armature in it (is this a bone?) which controls the whole skateboard (all weight painted red). To animate i rotate the armature. It says to fix the problem rotate the root bone 90 in x and y. So what is my root bone, do i need to create a new bone which is not animated and rotate that?
Hmmm i've tried various different roatations but can't seem to get it right, at the moment the animation is playing properly (it looks like a kickflip) but its pointing sideways. Can i just rotate it in jme now?
Is there any way to start and stop the animations at will? I seem to be limited to just the controller repeat types…at the moment i have it on RT_CLAMP so it only does it once, but is there a method to start it again (eg. when the person does another kickflip)
great thanks for all the help you've given so far
Ah ok i see a reset method in MD5animation class, is there any javadoc anywhere i can download?