I have a sphere with a texture map of the earth and then I add another
Flatmap texture (jpg file) at a specific location on the earth (for better
resolution) but I get continuous flickering when I start
my animation.  Basically, the flatmap is just an island and parts of it
flicker and disappear depending on the angle.

Here's the basic code for setting up the earth

       Sphere planet;
       Appearance papp = new Appearance();
       TextureLoader t = new TextureLoader(modelsDir + "earth.jpg", "RGB",
this);

       //NewTextureLoader t = new NewTextureLoader(modelsDir + "earth.jpg");
       if (t != null) {
         papp.setTexture(t.getTexture());
       }

       // be sure side away from light is black
       TransparencyAttributes ta = new TransparencyAttributes();
       ta.setTransparency(0.0f);
       papp.setTransparencyAttributes(ta);

       // Set up material properties so we can light the
       // textured planet
       Material m = new Material(gray, black, gray, white, 0.0f);
       m.setLightingEnable(true);
       papp.setMaterial(m);

       planet = new Sphere(6377.627108f,  // Radius of Earth in kilometers
                           Sphere.GENERATE_NORMALS |
                           Sphere.GENERATE_TEXTURE_COORDS, 200, papp);

       Flatmap flatmap1 = new Flatmap(originbg, ".//models//map.jpg", width,
                                      height, depth, this);

       flatmap1.locate(Center, rotate);
       flatmap1.attach();  // Map of Island


I also tried raising the island above the earth and it still seems to get
swallowed.  Any ideas on how to solve this?
I'm running jdk 1.4 and java3d 1.2 on Win2k with a 3d labs wildcat II video
card.  Thanks a lot.


                                                                                       
 -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