I'm just trying to recreate the rotating Earth from the demo on the home page, but when I create a sphere using Primitives and add my Earth texture it looks like the texture is actually applied twice, once to half the sphere, and once in mirror image to the other half, rather than wrapping around the whole sphere. Here's the code I'm using:
earth = new Object3D(Primitives.getSphere(1000));
earth.calcTextureWrapSpherical();
earth.setTexture( "md2" + c + "004Earth.JPG" );
earth.build();
world.addObject( earth );
004Earth.JPG is a 256x256 pixel image of the Earth. I am able to correctly load md2 models and their textures, so maybe it has something to do with the calcTextureWrapSpherical call? Any help you could provide would be greatly appreciated.