hi,
I've written my own texture loader.It's an easy job and you can customize
it to your own needs.
Use Pixelgrabber and ImageFilter class to grab the pixels and resize the
image to power of 2.
You can implement that all a little bit more sophisticated: You can grab
the pixels asynchronously
and fire an event when the texture is available. AFAIK TextureLoader uses
the blocking mode of
Pixelgrabber.

Gernot Veith

janet Ges. f. interaktive Medien mbH
Garmischer Str. 19/21
D-81377 Muenchen
www.janet.de
fon:       +49 (0) 89 - 54 26 21 - 19
fax :      +49 (0) 89 - 54 26 21 - 15
mail:      [EMAIL PROTECTED]



                    "J. Lee Dixon"
                    <joel.l.dixon@CELEBRATION        To:     
[EMAIL PROTECTED]
                    .SAIC.COM>                       cc:
                    Sent by: Discussion list         Subject:     [JAVA3D] 
TextureLoader NullPointerException
                    for Java 3D API
                    <[EMAIL PROTECTED]
                    .COM>


                    14.07.00 16:44
                    Please respond to
                    Discussion list for Java
                    3D API






I expected that TextureLoader would return null from .getTexture() if
the image URL was not found.  Instead, I get a NullPointerException.
Was it intended to be this way?  I found no other way to detect an error
loading the texture than to catch the exception, which I don't think is
a good way.  If any exception should be thrown, it would be an
IOException.

I suppose I could make sure the file is accessible by doing a
URL.openConnection(), but I think this is wasteful since the URL will be
opened later by TextureLoader.

Lee


J. Lee Dixon
Software Engineer
SAIC - Celebration, FL
[EMAIL PROTECTED]

===========================================================================
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".

Reply via email to