JMEDesktop Texture & MD5 Model


my goal is to apply a JMEDesktop Texture to lie perfect on a MD5 Model.

My problem is, that the Texture is skewed and displaced.

I wrote a test class, where you can see my problem:



As you can see on the image, I want that the Texture from the jmeDesktop apply

correct on the MD5 Model. The two Quads right, are only for tests.

To run the test class you need the md5reader2 from Ender.

Hope someone can help me.

What about applying the same texture coordinates to the MD5 model like the quad has

Thanks for the response. First time I try to use the Texture Coordinates but when I stupid do:

meshes[0].setTextureBuffer(0, testQuad1.getTextureBuffers(0)[0]);

I get:

   at java.nio.Buffer.limit(
   at com.jme.renderer.lwjgl.LWJGLRenderer.predrawGeometry(

The meshes[0] original texture buffer have a capacity of 48 and the quad of 8. It is possible to
convert? Like I above said, first time of usage. Any small tip?

Err, you really need to change the texture coordinates in your modeling app, so that the md5-file already contains the correct coordinates. (copying it from the quad does not make sense)