On Sun, 30 Jan 2000 18:01:14 +0100, ArtMotion <[EMAIL PROTECTED]> wrote: >...... > >Funny thing: works great will texture is present, but dies horribly if >texture is not present ... > >any work arounds ? > >(I thing Java3D 1.1.2 / 1.1.3 has this fixed... but not 1.1.1 :-( ) > No, this is still the case in 1.1.3. The simple fact is that the TextureLoader class is extremely poorly written. Another problem I had was that it used PixelGrabber to convert an Image to a BufferedImage - hence loading from a gif or jpg was slow because it uses the Toolkit functions to load them - returning an image. The solution was found by my colleague somewhere in the Java2D docs., to get the BufferedImage's Graphics object and do a drawImage - much faster. Why the TextureLoader uses the other method is beyond me. Regards, - Brett =========================================================================== 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".
