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.

Bug.java

Reply via email to