Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  LWJGL + Slick2D + OpenGL version  (Read 1761 times)
0 Members and 1 Guest are viewing this topic.
Offline ShuKen

Junior Member


Medals: 4



« Posted 2012-11-16 17:23:09 »

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:



Thanks!
Offline sproingie

JGO Kernel


Medals: 202



« Reply #1 - Posted 2012-11-16 18:08:44 »

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.


Offline davedes
« Reply #2 - Posted 2012-11-16 18:30:13 »

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.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ShuKen

Junior Member


Medals: 4



« Reply #3 - Posted 2012-11-16 19:09:22 »

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

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.

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

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!
Offline gouessej
« Reply #4 - Posted 2012-11-16 19:41:43 »

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.

Offline ShuKen

Junior Member


Medals: 4



« Reply #5 - Posted 2012-11-19 03:20:11 »

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
Offline gouessej
« Reply #6 - Posted 2012-11-19 23:11:36 »

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?

Offline ShuKen

Junior Member


Medals: 4



« Reply #7 - Posted 2012-11-22 00:28:13 »

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!!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (16 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!