LWJGL + Slick2D + OpenGL version

Hi guys! I made a simple game for my girlfriend (lol true story), using slick2D. Its a simple 2D game, it just use g.drawImage, grawStrings, drawAnimation and not much more.

The problem is, that I have an ATI graphic card that support opengl 4.2, but my girlfriend has (in her notebook), an Intel mobile 45 express that only support opengl 1.1 and 1.2 (but this one just in a 12%) (I used GL view to check this). And, of course, the game doesnt run. I even tried to compile it on the notebook and LWJGL said that he cant set the display.

My question is: what version, of opengl, LWJGL use by default? Is there any option to configure LWJGL (or slick) to work only with opengl 1.1?

I guess that this game can be made only with 1.1:

http://img248.imageshack.us/img248/6717/gamescreenz.jpg

Thanks!

LWJGL doesn’t doesn’t use any particular version by default, it’s all based on what features you actually use. You can create a context that’s not compatible with older versions, but the default one will work on any version as long as you stick to features that are supported by that version

Far as I know, Slick targets the bare minimum, which is OpenGL 1.1. Those old Intel GPUs are broken in every way imaginable, even with features they claim to support, and that model in particular is probably a lost cause.

What was the exception? Maybe the display mode you requested could not be found.

Are you using Image.getGraphics anywhere? It requires FBO/Pbuffer, which may not work on older cards.

Didn’t have the source code of the game to compile it on my girlfriend notebook, I just installed eclipse, created a slick2d project and tried a very simple game, just using g.drawString with setDisplay(800, 600, false). Didn’t work, I don’t remember the exact exception (I’ll look further tomorrow) but was something about the display.
I’ll import the entire game project tomorrow and try to compile it on the notebook and see what happens.

Nope. But now I remember that to draw animations I used: animation.getCurrentFrame().draw(x,y); (basically, Image.draw)
¿Could be that the problem?
Don’t know what difference is with g.drawImage() of slick2d.

Thanks guys!

Hi

Your girlfriend should install a better driver, it is highly probable that she uses the default one (Microsoft generic GDI…). Intel mobile 45 express supports OpenGL 2.1 but FBO are a bit slow on such a crappy chip.

I searched for latest drivers and…surprise! -same drivers installed-

But I found a “solution”, adding the following to the VM arguments:

-Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true

Of course, the game works very slow (7-11 fps). I also had to resize the background images under 1024x1024.

Damn graphic card. Anyway, at least the game starts xD

You’re still using the software emulated OpenGL through the Microsoft driver (that’s why allowing software rendering helped) whereas you should use the official driver provided by Intel. Can you tell me which version of the driver you use?

Edit.: Do you use the version 15.17.18.2555? Have you uninstalled the previous crappy driver?

Mmh…I dont remember the number, but Im pretty sure that was older than these. I searched and I found 85.XXX…I though that it was the latest.

Where did you find it? Could be very helpfull!! Thank you!!