Animation problem only shadow moves

Hello guys.

I exported an Armature animted character out of Blender2.5 with the unofficial exporter and The curious thing is that the model on the screen in Jmonkey is at its rest position and also 1 shadow is. The “other” shadow is “moving” like the Idle-Animation is working. I know that espacially with Blender2.5 everything is not really Productionready but i think its more or less a Problem in my Animation code. Any help is appreciated. Thats the bit of code that loads the character, places him onto the terrain and animates it.

[java]

CapsuleCollisionShape capsuleh1 = new CapsuleCollisionShape(1f, 4f);

H1Control = new CharacterControl(capsuleh1, 0.01f);

Node Hero1Model = (Node)assetManager.loadModel(“Models/Paladin/Warrior.mesh.xml”);

Hero1Model.addControl(H1Control);

H1Control.setPhysicsLocation(new Vector3f(-100,-80, 100));

Material mat_hero1 = new Material(

assetManager, “MatDefs/Male.j3md”);

Hero1Model.setMaterial(mat_hero1);

Texture H1Color = assetManager.loadTexture(“Textures/Paladin_Color.png”);

mat_hero1.setTexture(“m_Tex”, H1Color);

playerControl = Hero1Model.getControl(AnimControl.class);

AnimChannel h1animchannel = playerControl.createChannel();

h1animchannel.setLoopMode(LoopMode.Loop);

Hero1Model.setLocalScale(3f,3f,3f);

rootNode.attachChild(Hero1Model);

getPhysicsSpace().add(H1Control);

Hero1Model.setShadowMode(ShadowMode.CastAndReceive);

h1animchannel.setAnim(“Idle”, 0f);

[/java]



EDIT: Also i have the problem that the Texture i applied is not in “sync” with the uv-map. so maybe i did something wrong her, too

I don’t understand the shadow thing.

What do you mean by the other shadow?



Also your code looks fine, I don’t see any mistake.



For the texture issue, i think the unofficial exporter flips the textures coords, you may have to flip your texture in an image editor, of flip it when loading. (write the key word “Flip” in your j3m just before the path to the texture, or when loading the texture in the code, create a TextureKey and use setFlip(true) on it)

Thanks for the help. I have a look at the texture.

With the other shadow i mean that it seems that there are 2 shadows on the ground the shadow of the model in rest position and 1 moving shadow.



Here is a Snapshot to download.

http://sourceforge.net/projects/heroesofperidia/files/Snapshots/Heroes%20of%20Peridia%2010042011%20.zip/download

mhhh what am i supposed to see?

I start the game, i’m on some sort of battle ground, but there are no models to see…

Ahhh, sorry was my fault. I uploaded a fixed version.



http://sourceforge.net/projects/heroesofperidia/files/Snapshots/Heroes%20of%20Peridia%2010042011_Fixed.zip/download

I put the Main.Jave File and the meshes in an Archive

http://www.filehosting.org/file/details/218661/RequestedFiles.zip

Thanks a lot



EDIT:

If you dont want to download you can also see it in the svn browser



http://heroesofperidia.svn.sourceforge.net/viewvc/heroesofperidia/Peridia/src/herosofperidia/Main.java?revision=28&view=markup

ok I saw the problem… but I don’t have a clue of what’s going on…

Could you maybe show how you initialize your scene and the shadow renderer.

Then maybe upload your mesh and skeleton files