Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - BlindSide

#1
Support / Re: Can't load any meshes
August 23, 2007, 02:06:59 PM
Thx, C++ has made me too naive ... or paranoid, HEY! Whos that in my car!!?!?  >:(  :P
#2
Support / Re: Can't load any meshes
August 20, 2007, 01:48:27 PM
The error was slightly misleading though. Is it possible to change it to something similar to "File not found"? The current error gave me the impression that the particular mesh was corrupted or unsupported somehow.

Cheers
#3
Support / Re: Can't load any meshes
August 19, 2007, 11:51:16 AM
Nevermind, I got it working. I used an input stream and placed the file inside the jar archive.
#4
Support / Can't load any meshes
August 19, 2007, 11:37:49 AM
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  ;)