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.


Messages - tober6584

Pages: [1]
1
Support / Re: Primitives and Texture Wrap
« on: January 27, 2009, 11:38:52 pm »
That seems to have done the trick. Thanks so much!

2
Support / Re: Primitives and Texture Wrap
« on: January 27, 2009, 04:30:00 am »
I did try calcTextureWrap and that gave me even worse results, just a dark green mesh. The demos that I downloaded don't have any spheres in them, and I didn't see anywhere to download the spinning planet demo.

3
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]