Loading PNG textures or such in Xith works great.
Also Kev’s 3dloader can load models having Jpeg texture files and it works here. But when I try to load a Jpeg texture manually, an exception is being reported. I’ve checked with Kev’s texture loading method but can’t find any significant difference.
This
BufferedImage bimg = ImageIO.read(new File("Pic.jpg"));
Texture t = TextureLoader.tf.loadTexture(bimg, "RGB", true, Texture.NICEST, Texture.NICEST, Texture.WRAP);
results in the following stacktrace
No matter how large my Jpeg picture is (it’s 256x256 24bpp, or 512x512, etc). I’ve also used the same texture which Kev’s loader loads but his method works, mine fails. Why?
Would anybody like to call these two lines of code on his PC and look if it works, please? Thanks.
PS: I use a current Xith version; just downloaded some days ago from CVS.
