Importing .blend file with animation

Hi to all!



Is any tutorial/example workflow/etc about how prepare animation in .blend 2.5 file to import in JME3?



When I’m try to load a j3o file in JME this work fine, but this crash on:



[java]control.addListener(this);[/java]



I’m guess that is something wrong with blend file. Probably I’m should name a animation in blend file but I’m only was able to found blender 2.4 tutorial about it.

Try export using ogreXML exporter.

Then to load just do:

[java]

Node model = (Node) MainClass.getAsset().loadModel(name + ".mesh.xml");

control = model.getControl(AnimControl.class);

control.addListener(this);

channel = control.createChannel();

channel.setAnim("Walk");

[/java]

Animation has to be bone animation.

How to name a animation when .blend file imported with blender support plugin?

In blender.

Thanks :slight_smile:



I was think that is needed some special procedure.

Sorry for doubleposting.



But even if I’m added named animation in blender (animation is listened in Blender outliner window), JME do a “null pointer exception” when I’m try to add animation listener.

Open the model in jMP, select the AnimControl and check the list of names. If no animation is listed, make sue you select them when exporting.

In jMP? Where in jMP is AnimControl. I can’t find it.

Open the model and look at the SceneExplorer. If no AnimControl is there, no animation has been exported.

By “open the model” you means “edit in SceneComposer”?

If yes, this don’t display nothing in SceneExplorer. Absolutely nothing. Only “update” button. Any meshes., any stuff nothing.



This display nothing even if I’m “open” a .j3o files that loaded fine in JME3.

So the j3o is empty, the data is not compatible or not stored in “layer 1” of blender.

But this is also with j3o files from jme3 test data library.



For example: buggy.j3o



SceneExplorer is complety “blank”

So you either get an exception (warning sign in bottom right) or you are looking at the wrong window.

I’m always get a series of exceptions because JME3 Scene Viewer is bugful feature.

Please report the exceptions.



Also, remember that jMP follows a crash by design approach :stuck_out_tongue:

At the begin we get a classical (;)) jMP SceneViewer exceptions:


java.lang.IllegalStateException: Display not created
at org.lwjgl.opengl.Display.processMessages(Display.java:632)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:174)
at com.jme3.system.lwjgl.LwjglCanvas.runLoop(LwjglCanvas.java:199)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:218)
[catch] at java.lang.Thread.run(Thread.java:636)


When we try to "Edit in SceneComposer" *.j3o file this is loaded without errors, exceptions etc.

Only problem that SceneExplorer is blank (even after update):

Is there a way that exception can be reproduced step by step after booting from jMP? I have never seen that one before

jme3’s canvas still sucks as it seems. is that foobartu? err… ubuntu?

openSUSE 11.4