Main Menu
Menu

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.

Show posts Menu

Messages - tober6584

#1
Support / Re: Primitives and Texture Wrap
January 27, 2009, 11:38:52 PM
That seems to have done the trick. Thanks so much!
#2
Support / Re: Primitives and Texture Wrap
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
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.