Is it possible to use an animated gif as a texture in j3d?

My current attempt to, just using the usual TextureLoader stuff is not loading the 
texture at all.

The code looks like this:

app = new Appearance();

  try
  {
   String[] ourFile={"file:C://animated.gif"};
System.out.println("Display here");
   TextureLoader Texget=new TextureLoader(new java.net.URL(ourFile), null);
   Texture2D ourTex=(Texture2D) Texget.getTexture();
System.out.println("Display 2");
   TextureAttributes texatt=new TextureAttributes(TextureAttributes.BLEND, new 
Transform3D(), new Color4f(1.0f, 1.0f, 1.0f, 1.0f), TextureAttributes.NICEST);
   app.setTextureAttributes(texatt);
   app.setTexture(ourTex);
   }
// and so on

When it runs, the output stream says "Display here" but doesn't get as far as "Display 
2"- there is no message or exception, it just does stops.
      
Can I work it just using the animation of the image or do I need to sort out some kind 
of texture-swapping behaviour instead?

thanks,

-ben

==========================================================================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