I’m totally confused right now. I’m trying to import a model from blender. However the imported mesh does not seem to have any texture coordinate buffers. So obviously the model ends up with the color of the pixel in the bottom-left corner of the texture.
[java] Node player = (Node) getAssetManager().loadModel(“SM_Aphrodite_3_anim.blend”);
player = (Node) player.getChild(“Aphrodite_Mesh”);
Material material = new Material(getAssetManager(), “Common/MatDefs/Light/Lighting.j3md”);
material.setTexture("DiffuseMap", getAssetManager().loadTexture("Textures/Aphrodite/T_GOD_Aphrodite_DIF00.png")); player.setMaterial(material);[/java]
When I list the buffers in the mesh I get:
Position Normal HWBoneWeight HWBoneIndex Index BindPosePosition BindPoseNormal BoneWeight BoneIndex
[java]Mesh mesh = ((Geometry)player.getChild(0)).getMesh();
mesh.scaleTextureCoordinates(new Vector2f(2.5f, 2.5f)); [/java]
throws a IllegalStateException: “The mesh has no texture coordinates”.
I tried converting the model to .obj and then it works.
What’s wrong? Is it the Blender importer, or am I doing something incorrectly?