Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (426)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
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  
  Having Problem launching LWJGL  (Read 626 times)
0 Members and 1 Guest are viewing this topic.
Offline SHC
« Posted 2013-06-04 03:50:44 »

I had got holidays now and so I thought to learn LWJGL. I went to the site and downloaded
lwjgl-2.9.0.zip
file and extracted it to
D:\Libraries\
. Then as in the installations page on the wiki, I ran this command.

1  
java -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\lwjgl_util.jar;jar\jinput.jar; -Djava.library.path=native\windows org.lwjgl.test.WindowCreationTest

Nothing came up except this stack.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
D:\Libraries\lwjgl-2.9.0>java -cp .;res;jar\lwjgl.jar;jar\lwjgl_test.jar;jar\lwjgl_util.jar;jar\jinput.jar; -Djava.library.path=native\windows org.lwjgl.test.WindowCreationTest

The following keys are available:
ESCAPE:         Exit test
ARROW Keys:     Move window when in non-fullscreen mode
L:              List selectable display modes
0-8:            Selection of display modes
F:              Toggle fullscreen
SHIFT-F:        Toggle fullscreen with Display.destroy()/create() cycle
Found 29 display modes
Problem retrieving mode with 640x480x16@-1
Problem retrieving mode with 640x480x24@-1
Problem retrieving mode with 800x600x16@-1
Problem retrieving mode with 800x600x24@-1
Problem retrieving mode with 1024x768x16@-1
Problem retrieving mode with 1024x768x24@-1
org.lwjgl.LWJGLException: Pixel format not accelerated
        at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
        at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.ja
va:52)
        at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:244)

        at org.lwjgl.opengl.Display.createWindow(Display.java:306)
        at org.lwjgl.opengl.Display.create(Display.java:848)
        at org.lwjgl.opengl.Display.create(Display.java:757)
        at org.lwjgl.opengl.Display.create(Display.java:739)
        at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java:
94)
        at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:286)

D:\Libraries\lwjgl-2.9.0>

How can I get it to work?

Offline Andre Lopes
« Reply #1 - Posted 2013-06-04 03:52:38 »

You probably already checked this, but, this is for you Tongue

http://lwjgl.org/forum/index.php?topic=3123.0

https://forums.pokemmo.eu/index.php?/topic/19219-pixel-format-not-accelerated/


Hope it helps, because im not familiar with lwjgl, only libgdx and java and other libs Tongue
Offline SHC
« Reply #2 - Posted 2013-06-04 03:58:48 »

Thanks for those links. They both say update graphic card drivers but the ones I'm using are the latest. My card has support for DirectX 11 but I don't know about OpenGL. What can I do?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Andre Lopes
« Reply #3 - Posted 2013-06-04 04:03:37 »

Thanks for those links. They both say update graphic card drivers but the ones I'm using are the latest. My card has support for DirectX 11 but I don't know about OpenGL. What can I do?

Whats your Graphic Card?
Offline SHC
« Reply #4 - Posted 2013-06-04 04:10:57 »

This is the full output of
dxdiag
graphics devices test

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
---------------
Display Devices
---------------
          Card name: Intel(R) G33/G31 Express Chipset Family (Microsoft Corporation - WDDM 1.0)
       Manufacturer: Intel Corporation
          Chip type: Intel(R) GMA 3100
           DAC type: Internal
        Device Type: Full Device
         Device Key: Enum\PCI\VEN_8086&DEV_29C2&SUBSYS_82B01043&REV_10
     Display Memory: 251 MB
   Dedicated Memory: 0 MB
      Shared Memory: 251 MB
       Current Mode: 1600 x 900 (32 bit) (60Hz)
       Monitor Name: Generic PnP Monitor
      Monitor Model: SyncMaster
         Monitor Id: SAM058C
        Native Mode: 1600 x 900(p) (60.000Hz)
        Output Type: HD15
        Driver Name: igdumd32.dll
Driver File Version: 8.14.0010.2697 (English)
     Driver Version: 8.15.10.2697
        DDI Version: 9Ex
     Feature Levels: 9.1
       Driver Model: WDDM 1.0
Graphics Preemption: DMA
 Compute Preemption: DMA
  Driver Attributes: Final Retail
   Driver Date/Size: 10/10/2012 15:47:38, 3816392 bytes
       D3D9 Overlay: Not Supported
            DXVA-HD: Not Supported
       DDraw Status: Enabled
         D3D Status: Enabled
         AGP Status: Enabled

Offline Andre Lopes
« Reply #5 - Posted 2013-06-04 04:17:24 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
Problem retrieving mode with 640x480x16@-1
Problem retrieving mode with 640x480x24@-1
Problem retrieving mode with 800x600x16@-1
Problem retrieving mode with 800x600x24@-1
Problem retrieving mode with 1024x768x16@-1
Problem retrieving mode with 1024x768x24@-1

[quote author=SHC link=topic=29792.msg274150#msg274150 date=1370311857]
This is the full output of [icode]dxdiag[/icode] graphics devices test



       Current Mode: 1600 x 900 (32 bit) (60Hz)


Idk if theres anything related...

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
---------------
Display Devices
---------------
          Card name: Intel(R) G33/G31 Express Chipset Family (Microsoft Corporation - WDDM 1.0)
       Manufacturer: Intel Corporation
          Chip type: Intel(R) GMA 3100
           DAC type: Internal
        Device Type: Full Device
         Device Key: Enum\PCI\VEN_8086&DEV_29C2&SUBSYS_82B01043&REV_10
     Display Memory: 251 MB
   Dedicated Memory: 0 MB
      Shared Memory: 251 MB
       Current Mode: 1600 x 900 (32 bit) (60Hz)
       Monitor Name: Generic PnP Monitor
      Monitor Model: SyncMaster
         Monitor Id: SAM058C
        Native Mode: 1600 x 900(p) (60.000Hz)
        Output Type: HD15
        Driver Name: igdumd32.dll
Driver File Version: 8.14.0010.2697 (English)
     Driver Version: 8.15.10.2697
        DDI Version: 9Ex
     Feature Levels: 9.1
       Driver Model: WDDM 1.0
Graphics Preemption: DMA
 Compute Preemption: DMA
  Driver Attributes: Final Retail
   Driver Date/Size: 10/10/2012 15:47:38, 3816392 bytes
       D3D9 Overlay: Not Supported
            DXVA-HD: Not Supported
       DDraw Status: Enabled
         D3D Status: Enabled
         AGP Status: Enabled

[/quote]
Offline quew8

JGO Coder


Medals: 23



« Reply #6 - Posted 2013-06-04 18:11:41 »

You seem to be using a Microsoft driver rather than an Intel one. I seem to remember getting this error on a machine once. I never got round to finding a solution because it wasn't my computer but I remember doing a little research and figuring out that the Microsoft driver was the problem.

Presumably you checked the driver version in Windows, try going to the Intel website and manually finding the right driver there.
Offline SHC
« Reply #7 - Posted 2013-06-05 03:27:42 »

@quew8
Thanks for pointing that out. I've searched the download center but the OS I'm using (Windows 8 Pro 32 bit) isn't listed. They have from XP to Windows 7. I don't know what to do. Will there be any opensource ones?

Offline quew8

JGO Coder


Medals: 23



« Reply #8 - Posted 2013-06-05 20:44:51 »

How odd that intel wouldn't support Windows 8, did you upgrade the pc to Windows 8? This site http://www.guru3d.com/files_categories/videocard_drivers.html is very good for beta and unofficial video card drivers but it probably isn't what you're looking for. You could take a look but the likelihood is it won't have Windows 8 support either. 

I think sometimes hardware vendors can take a while to get their act together with new OSs (which is understandable) but I would have thought by now...

In the mean time you can always allow LWJGL to accept a software implementation of OpenGL. I warn you that this will be slow if you try and do anything even slightly similar to computer graphics. Basically LWJGL has a series of "hidden switches" http://www.lwjgl.org/wiki/index.php?title=LWJGL_Hidden_Switches

1  
System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true");


Just add this line before Display.create. I have never done this and it might actually be "<true>" I'm sorry but I simply don't know. I'm sure you'll figure it out.
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.

xsi3rr4x (75 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (80 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (81 views)
2014-04-14 15:48:38

tom_mai78101 (105 views)
2014-04-10 04:04:31

BurntPizza (165 views)
2014-04-08 23:06:04

tom_mai78101 (261 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!