Just a guess, but its not uncommon for spheres to look as you have described
if the texture coordinates are messed up.  Its hard to get an
"orange-slice-mesh" type of sphere to map properly. Geodesic spheres are
much easier to set the texture coordinates properly.  The window movement
thing sounds strange to me, that might be something different.

Dave Yazel

-----Original Message-----
From: Gregory X Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] texture bugs?


Hi,

Thanks to everyone who helped me with the animation/frames question. Now I
have
another problem,

I used a 128x128 image to wrap a sphere. Why does the sphere appear rough at
the
bottom, but smooth at the top?

Here's how I created the texture.(See attached file: Bug.java)

     TextureLoader loader = new TextureLoader("K:\\3d\\whitmarb.gif", new
Container());
     Texture texture = loader.getTexture();
     texture.setBoundaryModeS(Texture.WRAP);
     texture.setBoundaryModeT(Texture.WRAP);
     texture.setBoundaryColor(new Color4f( 0.0f, 1.0f, 0.0f, 0.0f ) );

     TextureAttributes texAttr = new TextureAttributes();
     texAttr.setTextureMode(TextureAttributes.MODULATE);
     ap.setTextureAttributes(texAttr);
     ap.setTexture(texture);

Also, if I move the window around quickly, the sphere loses its texture and
becomes smooth all over.

Are these  bugs in Java 3d, or in my code?

From,

Greg.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to