Hey guys I can't load any 3DS or MD2 meshes. I have tried different meshes and also some from the examples (So that I know it is not the meshes fault.)
Here is the code I am using to load them:
myPlayer = Loader.load3DS("mesh.3ds",1);
or
myPlayer = Loader.loadMD2("mesh.md2",1);
And I always get the error:
Loading file mesh.3ds
[ Sun Aug 19 21:34:09 NZST 2007 ] - ERROR: Couldn't read file mesh.3ds
[ Sun Aug 19 21:34:09 NZST 2007 ] - ERROR: Not a valid 3DS file!
java.lang.ArrayIndexOutOfBoundsException: 0
at Main.init(Main.java:31)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
No matter where I place the file I get the error, (Same directory as applet, inside jar archive, etc...).
Can anyone tell me what I am doing wrong here? Oh yeah I am using an applet as I just mentioned haha... Does it need to be signed or something to load external resources? I am only using software renderer.
I also can't load any jpg files it says that there are no security permissions (Even if I use a normal file from the examples, it is not read only or anything weird like that, and I am administrator).
Cheers