where can I get the texture for the examples in source code?

Started by Morgrog, August 13, 2003, 01:52:40

Previous topic - Next topic

Morgrog

I get the following errors when running the TextureMapping.java example

I think it might be related to me missing the texture
How do I make the following code run?
(it compiles ok tho)

I'm sorry if this is a noobish question :cry:

java.lang.Exception: Problem starting loop
	at BaseWindow.start(BaseWindow.java:170)
	at TextureMapping.main(TextureMapping.java:243)
Caused by: java.lang.Exception: Problem initialising Lesson
	at BaseWindow.createGLWindow(BaseWindow.java:136)
	at BaseWindow.start(BaseWindow.java:149)
	... 1 more
Caused by: java.lang.Exception: Problem initialising GL
	at TextureMapping.initGL(TextureMapping.java:139)
	at BaseWindow.createGLWindow(BaseWindow.java:133)
	... 2 more
Caused by: java.lang.Exception: Problem loading textures
	at TextureMapping.loadGLTextures(TextureMapping.java:123)
	at TextureMapping.initGL(TextureMapping.java:132)
	... 3 more
Caused by: java.lang.Exception: Problem loading bitmap
	at TextureMapping.loadImage(TextureMapping.java:79)
	at TextureMapping.loadGLTextures(TextureMapping.java:94)
	... 4 more
Caused by: java.lang.IllegalArgumentException: input == null!
	at javax.imageio.ImageIO.read(ImageIO.java:1302)
	at TextureMapping.loadImage(TextureMapping.java:72)
	... 5 more

Matzon

If you're using the lwjgl_examples.jar it should just run out of box. But since you mention compiling I gather that you're doing it yourself.

Check the source code, and make sure that the textures are placed according to how it's loaded.
Most likely the texture has to be placed in the root of the application directory

Morgrog

I'll try and run the examples from the jar file and see if everything is ok, then I'll check for the texture (it has to be somewhere)

But from my understanding (and that's not much believe me) the texture wassed passed to the TextureMapping class thru an argument

Are all these runtime errors related? or they're all stuff that needs to be corrected (it feels as if they're all related to the fact that the texture can't be found therefore throwing a bonanza of exceptions) :oops:


edit: Oh and the example folder from the source code I can't find any texture (.bmp or whatever), shouldn't there be at least one?

Matzon

in the next release of lwjgl (0.7) those examples have been removed, so I can't recall everything...

however, the textures used to be placed in /res and were added to lwjgl_examples.jar when distributing...

Morgrog

ok, thanks I'll check it out tonight :)

btw, what's the eta on 0.7? :twisted: