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.
CapsuleCollisionShape capsuleh1 = new CapsuleCollisionShape(1f, 4f);
H1Control = new CharacterControl(capsuleh1, 0.01f);
Node Hero1Model = (Node)assetManager.loadModel(“Models/Paladin/Warrior.mesh.xml”);
H1Control.setPhysicsLocation(new Vector3f(-100,-80, 100));
Material mat_hero1 = new Material(
Texture H1Color = assetManager.loadTexture(“Textures/Paladin_Color.png”);
playerControl = Hero1Model.getControl(AnimControl.class);
AnimChannel h1animchannel = playerControl.createChannel();
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.
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.
I put the Main.Jave File and the meshes in an Archive
Thanks a lot
If you dont want to download you can also see it in the svn browser
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