[solved]Texture mapping to a sphere

I have got a texture to apply to a sphere following the tutorial. I have a rectangular texture map and the UV coordinates from blender according to the tutorial are two circles which are then wrapped around the sphere in Jme. When I cut out two circles from my rectangle texture and put them over the circle UV coordinates the texture did map, but parts of it were stretched as some of the triangles stretch when mapped.



My question is there an easy way to get a rectangular texture map to correctly map to a sphere like you can in blender?



Thanks for any help and sorry for the newbie question.

have you tried both texture modes for sphere?  (TEX_ORIGINAL, the default, and TEX_PROJECTED)

Ok I must be going about this the wrong way. I imported my object from blender according to the objtojme tutorial and then used the resourcelocator to point to the image.

public class TestObjJmeWrite extends SimpleGame {

   public static void main(String[] args) {
      TestObjJmeWrite app = new TestObjJmeWrite();
      app
            .setDialogBehaviour(AbstractGame.FIRSTRUN_OR_NOCONFIGFILE_SHOW_PROPS_DIALOG);
      app.start();
   }

   protected void simpleInitGame() {

      
      ObjToJme converter = new ObjToJme();
      try {
         URL objFile = TestObjJmeWrite.class.getClassLoader().getResource("ball13.obj");
         converter.setProperty("mtllib", objFile);
                        converter.setProperty("texdir",objFile);
         ByteArrayOutputStream BO = new ByteArrayOutputStream();
         System.out.println("Starting to convert .obj to .jme");
         
             URL u = ResourceLocatorTool.locateResource(ResourceLocatorTool.TYPE_TEXTURE, "ball13_sphere.tga");
         
         converter.convert(objFile.openStream(), BO);
                        //load as a TriMesh if single object
         TriMesh model = (TriMesh) BinaryImporter.getInstance().load(
               new ByteArrayInputStream(BO.toByteArray()));
         model.setModelBound(new BoundingSphere());
         model.updateModelBound();
         rootNode.attachChild(model);

      } catch (IOException e) {
         e.printStackTrace();
      }


I guess this is the wrong method. Sorry for wasting your time.