Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - tober6584

Pages: [1]
1
Support / Primitives and Texture Wrap
« on: January 27, 2009, 02:01:46 am »
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:

Quote
      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.

Pages: [1]