Nicholas,
My best guess is that the TextureLoader doesn't know how to load Windows
Bitmap images. I read in the specs that unless JAI ("Java Advanced
Imaging") is installed, it calls the AWT Toolkit getImage method, which
standalone only loads .gif, .jpeg, and I think .png format images.
I would install or re-install the JAI API and try again. Otherwise, you
can write your own bitmap loader if necessary. I have some code that will
load bitmaps, if you are in need of it email me.
Best,
Steve
----- Original Message -----
From: "Nicholas Pappas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 10:13 PM
Subject: [JAVA3D] Trouble with TextureLoader
> Hello all. I'm hoping someone could help me out with a problem I
> suddenly ran into with a Java3D application I recently dusted off.
>
> I have the following line:
> TextureLoader loader = new TextureLoader(filename, "bmp", null);
>
> I get the following error:
> Error loading Image BLACK.BMP
>
> (when 'filename' = BLACK.BMP, obviously)
>
> The image (stored in 'filename') does exist, in the proper
location,
> and is a valid BMP file.
> My major frustration is that all this used to work (actually, a
> variation of the TextureLoad which fails too). I recently got a new
> computer and upgraded from JBuilder 8 to JBuilder 9 in the process. I
> downloaded JDK 1.4.2_2 and am using J3D 1.3.1.
> I could load the program up without problem on my old setup, but I
seem
> to have missed something on the install, or something changed in a
> version update.
>
> Any help on the subject is greatly appreciated!
>
> Nick
>
>
===========================================================================
> 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".