Problems with TextureLoader
I get the following errors when trying to view an applet from a webserver:
com.sun.j3d.utils.image.ImageException: javax.imageio.IIOException: Can't read input file!
at com.sun.j3d.utils.image.TextureLoader$1.run(TextureLoader.java:277)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.j3d.utils.image.TextureLoader.<init>(TextureLoader.java:270)
at com.sun.j3d.utils.image.TextureLoader.<init>(TextureLoader.java:228)
at BudriaPanel.createSceneGraph(BudriaPanel.java:241)
at BudriaPanel.<init>(BudriaPanel.java:152)
at BudriaOnlineApplet.makeGUI(BudriaOnlineApplet.java:69)
at BudriaOnlineApplet.init(BudriaOnlineApplet.java:42)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
These errors do not come up when viewing it from Firefox on my home computer, but will come up when I try to use Internet Explorer.
Heres the code im using with TextureLoader in it.
Appearance houseApp1 =new Appearance();
Texture houseTex1 =new TextureLoader("wood_panel.gif",this).getTexture();
houseApp1.setTexture(houseTex1);
TextureAttributes houseTexAttr1 =new TextureAttributes();
Transform3D houseScale1 =new Transform3D();
houseScale1.set(4.0);
houseTexAttr1.setTextureTransform(houseScale1);
houseApp1.setTextureAttributes(houseTexAttr1);
Heres a link to the site which contains the applet http://budriabattle.com/bo002/
Also, heres a copy of the same program with the TextureLoader code removed (no textures are visable)
http://budriabattle.com/bo001/
any help would be greatly appreciated.
Message was edited by:
malachi_1616

