The problem is easy to solve.
String filename;
Appearance app = new Appearance();
Image image = null;
image = this.getImage(this.getCodeBase(),filename);
MediaTracker mt = new MediaTracker(this);
mt.addImage(image, 0);
mt.checkAll(true);
try { mt.waitForID(0); }
catch (InterruptedException e) { e.printStackTrace(); }
TextureLoader texloader = new TextureLoader(image, this);
app.setTexture(texloader.getTexture());
Chen Lu
Can you help me to solve my proglem? (detach branchgroup Chen Lu's write)
----- Original Message -----
'-�MZ� : Eric Arnold <[EMAIL PROTECTED]>
^��� : <[EMAIL PROTECTED]>
'-�M"�Zz : 2000"N 1OZ 29"� "y-j"� O�O� 11:54
O�-� : [JAVA3D] textures in applets
> Has anyone had any problems getting textures to work in an applet? If I
run
> the program on my computer it works just fine, but if I try to run it off
my
> web site the program runs, but no textures appear. Thanks for any help
>
> Eric
>
>
===========================================================================
> 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".
>
===========================================================================
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".