Hello guys!
I'm newbie, so there's 90% of chance that I'm doing something stupidly wrong.
So, I decided to make a simple animated model to work with in jME. I've tried Blender, but in my opinion, it's too advanced for a beginner. So, I've tried Milkshape in my friend's house and It was pretty good! So I made a model and animated it using bones. I don't know if it was the correct format to export my model, but I've used .obj Trying to load it with the exact same code from TestObjLoading.java which works, by the way. But it gives me an error:
[java]java.lang.ClassCastException: com.jme3.scene.Node cannot be cast to com.jme3.scene.Geometry
at net.thirdperson.TestMilkshapeAnim.simpleInitApp(TestMilkshapeAnim.java:25)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:218)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:136)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:193)
at java.lang.Thread.run(Thread.java:662)[/java]
I know that an .obj object can't have anims in it, so my model is supposed to be working, right?
P.S.: I imported my .obj model in milkshape and it says that it has no bones either anims. So this confirms what I've said before.
And another question, how can I export my Milkshape anims into jME?
Thanks in advance, borba. :P
The problem was solved, now I'm looking a way to import my Milkshape Animation to jME.