Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (517)
Games in Android Showcase (123)
games submitted by our members
Games in WIP (578)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  LWJGL 0.5 Released  (Read 9618 times)
0 Members and 1 Guest are viewing this topic.
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Posted 2003-03-16 20:14:57 »

Another release! (http://java-game-lib.sourceforge.net/)
Quote

Changes:
Window support has been greatly enhanced, this includes the ability to
move the window (!), along with api support for testing whether or not the user
has minimized or is requesting that the window should be closed.

Added missing OpenGL1.4 calls, and removed some debug calls (which might have crashed you application).

Rewritten mouse class, which follows the Controller way of doing things and implements missing methods.

Linux support enhanced. Including alt+tab support.

Many bugfixes.

New Controller that supercedes Joystick and Joypad. More features added too.

Unfortunately we also had to introduce some API changes (can be expected untill we get to 1.0). Nothing big - at most 2 minutes of work.

The new Mouse class, might not be entirely bug free since we have 1 report of VM crashing using it. We are working on it...

We haven't got the OS X port done yet, but it is being worked on.

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2003-03-16 20:33:47 »

ahh - by the power of Tcl I got this changelog:
0.4 -> 0.5
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/doc/changelogs/0.4-0.5-changelog.text?rev=1.1&content-type=text/vnd.viewcvs-markup

full changelog:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/doc/changelogs/full-changeLog.text?rev=1.1&content-type=text/vnd.viewcvs-markup

Offline princec

JGO Kernel


Medals: 409
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2003-03-16 23:11:54 »

Ain't it just typical, the moment you release something, I find a raft of bugs in OpenAL Smiley
Fixed now, I'll check 'em in tomorrow...

Cas Smiley

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

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #3 - Posted 2003-03-17 03:04:51 »

Hmm I added an OpenAL creation test to the repository prior to releasing 0.5 - worked as expected no errors in this regard...

Oh well, guess thats why we're not at 1.0

Offline glopitou

Junior Newbie




Java games rock!


« Reply #4 - Posted 2003-03-17 06:53:38 »

Hello,

I have a problem when upgrading Nehe01 from Chman website to 0.5. It seems to fail on Display.getAvailableDisplayModes. I recompiled every class against 0.5 and included the good libraries on



An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x114F0529
Function=Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_Object_2Ljava_lang_String_2+0x4D9
Library=C:\workspace\projects\unversioned\gametime\lwjgl\lwjgl-0.5\lwjgl.dll

Current Java thread:
     at org.lwjgl.Display.nGetAvailableDisplayModes(Native Method)
     at org.lwjgl.Display.getAvailableDisplayModes(Unknown Source)
     at Nehe01.run(Nehe01.java:113)
     at Nehe01.main(Nehe01.java:314)

Dynamic libraries:
0x00400000 - 0x00406000       C:\j2sdk1.4.1\bin\javaw.exe
0x77F60000 - 0x77FBE000       C:\WINNT\System32\ntdll.dll
0x77DC0000 - 0x77DFF000       C:\WINNT\system32\ADVAPI32.dll
0x77F00000 - 0x77F5E000       C:\WINNT\system32\KERNEL32.dll
0x77E70000 - 0x77EC5000       C:\WINNT\system32\USER32.dll
0x77ED0000 - 0x77EFC000       C:\WINNT\system32\GDI32.dll
0x77E10000 - 0x77E67000       C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78044000       C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D45C000       C:\j2sdk1.4.1\jre\bin\client\jvm.dll
0x77FD0000 - 0x77FFA000       C:\WINNT\System32\WINMM.dll
0x09000000 - 0x09079000       C:\WINNT\System32\cwcmmsys.dll
0x6BD00000 - 0x6BD0A000       C:\WINNT\System32\cwcfm3.dll
0x6D1D0000 - 0x6D1D7000       C:\j2sdk1.4.1\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000       C:\j2sdk1.4.1\jre\bin\verify.dll
0x6D210000 - 0x6D229000       C:\j2sdk1.4.1\jre\bin\java.dll
0x6D320000 - 0x6D32D000       C:\j2sdk1.4.1\jre\bin\zip.dll
0x114E0000 - 0x1151B000       C:\workspace\projects\unversioned\gametime\lwjgl\lwjgl-0.5\lwjgl.dll
0x70000000 - 0x7000C000       C:\WINNT\System32\DINPUT.dll
0x755B0000 - 0x75678000       C:\WINNT\System32\OPENGL32.dll
0x76C80000 - 0x76CA2000       C:\WINNT\System32\GLU32.dll
0x77160000 - 0x77167000       C:\WINNT\System32\DCIMAN32.dll
0x76AC0000 - 0x76ADD000       C:\WINNT\System32\imagehlp.dll
0x731B0000 - 0x731BA000       C:\WINNT\System32\PSAPI.DLL


/Glopitou
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #5 - Posted 2003-03-17 07:31:06 »

hmm just recompiled myself, worked fine...

What version of Windows are you using?
Works fine on 2k & XP - at least here it does...

It is the normal version of Nehe01? - you haven't changed *anything*?

Why the hell is:
Function=Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_Object_ 2Ljava_lang_String_2+0x4D9

called?

*ponder*

Offline glopitou

Junior Newbie




Java games rock!


« Reply #6 - Posted 2003-03-17 07:40:28 »

I'm using Windows NT, and LWJGL 0.4 worked perfectly here. I'm still investigating the problem.

/Glopitou
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #7 - Posted 2003-03-17 07:46:22 »

We changed the way we detect displaymodes, due to problems regarding multiple installed display devices. This is most likely not working perfectly in Windows NT.

I'd like to send you some debug dll's later tonight (CET), if possible? - to identify the specific cause.

Offline glopitou

Junior Newbie




Java games rock!


« Reply #8 - Posted 2003-03-17 07:50:48 »

I have Windows NT only at work... If you send those tonight (at what time by the way?) i won't be able to test until tomorrow morning (still CET, i live in Paris).

Glopitou.

/Glopitou
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #9 - Posted 2003-03-17 07:55:41 »

heh - I have my installation at home, so I can only build when I get back from work... I'll send you a new version ~ 18:00 which contains some debug stuff, in the meantime try to do debug test (java -ea).

With regards to email and other non board stuff, lets take that to the personal messaging thingy also available on this board.

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

Senior Duke


Medals: 1


Who, me?


« Reply #10 - Posted 2003-03-17 08:58:31 »

I'm having trouble setting display modes now. :-/

1  
2  
3  
4  
This application requires a greater alpha depth.
Exception in thread "main" java.lang.Exception: Failed to set display mode to 640 x 480 x 32 @0Hz 8bit alpha, 8bit depth, 8bit stencil
        at org.lwjgl.Display.create(Unknown Source)
        at Test.main(Test.java:41)


Contrary to the error message, I'd guess my alpha depth is fine, but it's the stencil buffer causing problems?  This is my DisplayMode-setting code:

1  
2  
3  
4  
5  
6  
7  
8  
9  
DisplayMode[] modes = Display.getAvailableDisplayModes() ;

for(int i = 0 ; i < modes.length ; i++)
      if(modes[i].width == 640 && modes[i].height == 480 && modes[i].bpp == 32 && modes[i].alpha == 8)
      {
            mode = modes[i] ;
            System.out.println(mode) ;
            break ;
      }


I guess I need to do a "proper" DisplayMode-setting loop now then? Grin  I currently can't manually find a single DisplayMode that works with that res and bitdepth that has an alpha channel. Sad  Oh, I'm still getting 0Hz refresh rates - this is expected, no?

Hellomynameis Charlie Dobbie.
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #11 - Posted 2003-03-17 09:11:43 »

Quote
Oh, I'm still getting 0Hz refresh rates - this is expected, no?      


AFAIK, Linux always returns 0 Hz - other than that - we just rely on whatever the OS reports...

Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #12 - Posted 2003-03-17 09:37:07 »

I'm currently testing on WinME, but it's a laptop.  I guess that's just the way laptops are detected.

I've knocked up a DisplayMode test rig, voila:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
DisplayMode[] modes = Display.getAvailableDisplayModes() ;
DisplayMode[] filtered = new DisplayMode[modes.length] ;
int nFiltered = 0 ;

for(int i = 0 ; i < modes.length ; i++)
{
      try
      {
            Display.create(modes[i], true, "DisplayMode Selection Test") ;
            filtered[nFiltered++] = modes[i] ;
            Display.destroy() ;
      }
      catch(Exception e)
      {
      }
}

System.out.println("Valid DisplayModes:") ;

for(int i = 0 ; i < nFiltered ; i++)
{
      System.out.println(filtered[i]) ;
}


And after waiting several minutes for the screen to stop blinking (and after demunging stderr from stdout - how do you seperate them on Windows?) I got the following list:

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  
800 x 600 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
1024 x 768 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
1280 x 1024 x 32 @0Hz 0bit alpha, 0bit depth, 0bit stencil
1280 x 1024 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
1024 x 768 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
800 x 600 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
1280 x 1024 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
640 x 480 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
800 x 600 x 32 @0Hz 0bit alpha, 0bit depth, 0bit stencil
1024 x 768 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
800 x 600 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
1024 x 768 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
1280 x 1024 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
640 x 480 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
800 x 600 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
1280 x 1024 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
640 x 480 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
1024 x 768 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
800 x 600 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
640 x 480 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
1024 x 768 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
800 x 600 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
640 x 480 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
1280 x 1024 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
1280 x 1024 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
640 x 480 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
800 x 600 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
1024 x 768 x 32 @0Hz 0bit alpha, 0bit depth, 0bit stencil
1280 x 1024 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
640 x 480 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
1024 x 768 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil


All these modes have 0-bit stencil, naturally.  I don't know what modes greater than 1024x768 will do, as I thought that was the limit of my screen! Huh Must play later...

The problem, you may note, is that there are NO modes available that have any alpha bits.  Any idea what's going on there?  I was able to ask for one (and got one) under 0.4, but they fail to instantiate under 0.5.  Hrm.  Any thoughts?

I was about to point out that the list isn't sorted any more, but decided against it.  For whatever reason it's no longer visibly in any sensible order, it means people can't rely on that fact... Grin

Hellomynameis Charlie Dobbie.
Offline elias

Senior Duke





« Reply #13 - Posted 2003-03-17 09:42:23 »

Quote

we just rely on whatever the OS reports...


No we don't, at least not on win32. win32 is still guessing the pixel format combos, as is seen by the little printf in cfmdobbie's output:

"This application requires a greater alpha depth.", which means that the mode is in the list of available modes (and should be as we're guessing it), but cannot be created, as it fails inside Display.create().

We need pixel format queries. In the meantime, have you tried both 16 and 24/32 bit color depth on your desktop, cfmdobbie?

- elias

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #14 - Posted 2003-03-17 09:48:00 »

As said display mode rutine has been changed a bit to allow multiple display devices (read: my Radeon 9700  Cool).
Apparently, this is causing some problems - although we devs haven't had any problems with it...

Could you send a message with your email, so that I may send you a debug dll too ?

Offline elias

Senior Duke





« Reply #15 - Posted 2003-03-17 09:52:19 »

Digging in the sources showed that the test for alpha bits wasn't present in the 0.4 version. So a question remains, did alpha work correctly when using 0.4 on your laptop? If so, we need to investigate if we're not trying hard enough to create a good enough mode, or if the driver is simply lying to us. If not, then nothing has to be done about it (other than you not using alpha on the laptop:/ ). It seems unlikely that alpha support is missing on a hw opengl card though...

- elias

Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #16 - Posted 2003-03-17 10:34:14 »

Okay, let's give you a whole lot more info.

I'm running a Toshiba 2800-400, 750MHz PIII, WinME, 8MB S3 Savage/IX.

I'm now scamming every DisplayMode returned by getAvailableDisplayModes() and trying every single one.  If a mode fails, I log it.  If it suceeds, I proceed to a GL context and pull what GL thinks the display capabilities are.  While executing, I get a load of these kind of messages on stdout:

1  
2  
3  
Mode not supported by hardware.
This application requires a greater alpha depth.
This application requires a greater colour depth.


Erm...

Gonna have to post this message and follow up to it in a few minutes.  I just ran a full test on 16-bit desktop depth, and WinME has gone kaput.  The commandline window filled up with "no window handle" messages and the window control buttons don't have icons anymore but the characters 0, 2 and square.  The checkboxes have turned into candles...

Gonna reboot, back in a sec...

Hellomynameis Charlie Dobbie.
Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #17 - Posted 2003-03-17 10:54:59 »

Okay, I'm back.  That was fun.  All due respect to the thousands of man hours that went into developing and testing WinME, but it's the worst piece of software I've ever had the misfortune to use.  Oh, apart from my Win98SE box upstairs, that's worse.  I often wonder why I have terrible problems with Windows and noone else does... although recently I showed an annoying feature to a friend whereby the active window was not the one whose button was depressed in the task bar - since I pointed it out he's noticed it too...

Anyway.  Okay, the "16-bit desktop depth" run worked the second time Wink and a cursory compare with the 32-bit run shows me they both worked and failed on the same modes.  I *believe* they are the same, but this god-forsaken OS has no file compare utility.

Here is the (32-bit) output; every successful mode change is followed by a report pulled from GL:

...

Okay, this message is too long apparently.  I'll have to chunk it up.


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 24bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 24bit depth, 0bit stencil
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 0bit depth, 0bit stencil
FAILURE: 800 x 600 x 16 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 0bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 0bit alpha, 8bit depth, 8bit stencil
SUCCESS: 800 x 600 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[24] Stencil[0] Accum[0/0/0/0]
SUCCESS: 1024 x 768 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
GL capabilities: Color[8/8/8/0] Index[32] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 24bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 24bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 0bit alpha, 24bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 16bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 0bit alpha, 8bit depth, 8bit stencil
SUCCESS: 1280 x 1024 x 32 @0Hz 0bit alpha, 0bit depth, 0bit stencil
GL capabilities: Color[8/8/8/0] Index[32] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 0bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 24bit depth, 8bit stencil


Hellomynameis Charlie Dobbie.
Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #18 - Posted 2003-03-17 10:55:36 »

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  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 0bit alpha, 24bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 24bit depth, 8bit stencil
SUCCESS: 1280 x 1024 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 24bit depth, 0bit stencil
FAILURE: 1024 x 768 x 16 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 16bit depth, 8bit stencil
SUCCESS: 1024 x 768 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
SUCCESS: 800 x 600 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1280 x 1024 x 16 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 24bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 16bit depth, 8bit stencil
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 24bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 0bit alpha, 8bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 0bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 0bit alpha, 24bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 0bit depth, 0bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 0bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 24bit depth, 0bit stencil
SUCCESS: 1024 x 768 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 16bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 8bit depth, 8bit stencil
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 24bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
SUCCESS: 800 x 600 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
GL capabilities: Color[8/8/8/0] Index[32] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 24bit depth, 8bit stencil
SUCCESS: 1024 x 768 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
GL capabilities: Color[8/8/8/0] Index[32] Depth[24] Stencil[0] Accum[0/0/0/0]
SUCCESS: 1280 x 1024 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
GL capabilities: Color[8/8/8/0] Index[32] Depth[24] Stencil[0] Accum[0/0/0/0]
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 24bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 24bit depth, 0bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 16bit depth, 8bit stencil
SUCCESS: 1280 x 1024 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 640 x 480 x 16 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 0bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 24bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 24bit depth, 0bit stencil
SUCCESS: 640 x 480 x 16 @0Hz 0bit alpha, 8bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1024 x 768 x 16 @0Hz 0bit alpha, 24bit depth, 8bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 8bit depth, 8bit stencil

Hellomynameis Charlie Dobbie.
Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #19 - Posted 2003-03-17 10:56:08 »

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  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 24bit depth, 0bit stencil
SUCCESS: 1024 x 768 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 16bit depth, 8bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 16bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 24bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 0bit alpha, 8bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 640 x 480 x 16 @0Hz 0bit alpha, 8bit depth, 8bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 0bit depth, 0bit stencil
SUCCESS: 640 x 480 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 640 x 480 x 16 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 24bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
FAILURE: 640 x 480 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 16bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 0bit alpha, 16bit depth, 8bit stencil
SUCCESS: 1280 x 1024 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 0bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 0bit depth, 0bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 24bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 0bit alpha, 8bit depth, 0bit stencil
FAILURE: 640 x 480 x 16 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 8bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 8bit depth, 8bit stencil
SUCCESS: 640 x 480 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[24] Stencil[0] Accum[0/0/0/0]
FAILURE: 1024 x 768 x 16 @0Hz 0bit alpha, 8bit depth, 8bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 0bit alpha, 16bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 0bit depth, 0bit stencil
SUCCESS: 800 x 600 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 24bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 0bit alpha, 0bit depth, 0bit stencil
FAILURE: 1024 x 768 x 16 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 0bit alpha, 24bit depth, 8bit stencil
SUCCESS: 1280 x 1024 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[24] Stencil[0] Accum[0/0/0/0]
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 8bit depth, 8bit stencil
FAILURE: 640 x 480 x 16 @0Hz 0bit alpha, 24bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 24bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 0bit alpha, 16bit depth, 8bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 8bit alpha, 16bit depth, 8bit stencil
FAILURE: 640 x 480 x 32 @0Hz 8bit alpha, 0bit depth, 0bit stencil
SUCCESS: 640 x 480 x 16 @0Hz 0bit alpha, 0bit depth, 0bit stencil
GL capabilities: Color[5/6/5/0] Index[16] Depth[16] Stencil[0] Accum[0/0/0/0]
FAILURE: 1024 x 768 x 32 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 1024 x 768 x 16 @0Hz 8bit alpha, 16bit depth, 8bit stencil
FAILURE: 1600 x 1200 x 16 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 32 @0Hz 8bit alpha, 8bit depth, 0bit stencil
SUCCESS: 1024 x 768 x 16 @0Hz 0bit alpha, 24bit depth, 0bit stencil
GL capabilities: Color[8/8/8/0] Index[32] Depth[24] Stencil[0] Accum[0/0/0/0]
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 16bit depth, 0bit stencil
FAILURE: 1280 x 1024 x 16 @0Hz 0bit alpha, 0bit depth, 8bit stencil
FAILURE: 800 x 600 x 16 @0Hz 8bit alpha, 8bit depth, 0bit stencil
FAILURE: 800 x 600 x 32 @0Hz 8bit alpha, 0bit depth, 8bit stencil

Hellomynameis Charlie Dobbie.
Offline elias

Senior Duke





« Reply #20 - Posted 2003-03-17 11:22:23 »

Ok then, as I said, there's now 2 possibilities:

1. Your card can't do alpha - the most unlikely option
2. The driver is lying and can do alpha but doesn't report it
3. We are doing something wrong when selecting modes

to rule out 1. you have to find a demo doing alpha blending - maybe a nehe dome in C++? Ruling out the other is not that easy - if the native demo can do alpha you might want to find out how it created the modes. Or dump the GL info like you did for the succesful lwjgl modes to see if the driver still reports no alpha.

 To rule out 3 we have to use an opengl extension to query the supported pixel formats, but noone has implemented it yet :/. I might do it myself someday, but that's not going to help you now.

- elias

Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #21 - Posted 2003-03-17 11:26:48 »

Okay, I've just added a few 50% transparent quads to a test application, and they work fine.  This is with requesting a 640x480, 0Hz, 32bpp, 8-bit depth, 0-bit alpha and 0-bit stencil DisplayMode.  There was a drop in frame rate from about 150fps to 110fps, although I guess this is just my dodgy graphics card?

I'm afraid S3 are ("allegedly") terrible at providing OpenGL support, and their chipsets never perform well in OpenGL apps.  I've noticed them bending the OpenGL spec in such a way that the driver I'm currently running won't even pass OpenGL 1.0 certification due to a deficiency in subpixel precision.

Anyone got a clue what may be going on?  Once again I'm beginning to suspect not LWJGL but S3 - it looks like LWJGL is just doing the best it can with what's available.  However, it remains to be seen how I can ensure I have an alpha-buffer if both the driver and the hardware deny its existence.

Hellomynameis Charlie Dobbie.
Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #22 - Posted 2003-03-17 11:37:20 »

Elias,

I've just found an OpenGL extension viewer.  In the one screenshot on the website it appears to have a "Display Modes" tab.  Downloading now... Smiley

http://www.realtech-vr.com/glview/

Hellomynameis Charlie Dobbie.
Offline elias

Senior Duke





« Reply #23 - Posted 2003-03-17 11:40:39 »

Weird, I'd think it was the other way round, that is a requested feature is advertised but either broken or implemented in software or something. Doing alpha but lying about it is simply stupid, IMHO. But yes, it sounds more and more like the driver is pulling your nose. Are your drivers the most current?

- elias

Offline alexz

Senior Newbie




Java games rock!


« Reply #24 - Posted 2003-03-17 12:07:41 »

Hmmm... I thought that the "alpha" indicates presence of alpha component in framebuffer' pixel format and it does nothing with the blending capability.  You can do regular blending operations without having alpha in the framebuffer... Cool
Offline cfmdobbie

Senior Duke


Medals: 1


Who, me?


« Reply #25 - Posted 2003-03-17 12:30:55 »

The extension viewer doesn't break the colour depth down, so while it reports 32-bit colour, it doesn't say whether that involves any alpha-bits at all.  Nice app though.

Found another app that *does* list alpha values (http://www.benchmarkhq.ru/files/glinfo_bin.zip), but I think it's working in software mode.


Edit: Hi Alex, I think you're right.  I'm going around in circles here...  The presence of alpha-bits in the DisplayMode should only affect the presence of an alpha-channel on the display surface, not the ability to perform blending operations themselves.

Thought I was going mad there for a moment! Lips Sealed

So my code was working before because 0.4 didn't check alpha values, and doesn't work now because 0.5 does but my hardware doesn't support them.  Okay, I'm happy now! Grin Roll Eyes


Elias, I'm running pretty much the latest display drivers.  They were last updated mid-2001 and I've got drivers from somewhere about that period.  S3's ("allegedly") dodgy OpenGL support coupled with Toshiba's ("allegedly") snail-like driver release cycle is a force to be reckoned with. Wink

Hellomynameis Charlie Dobbie.
Offline elias

Senior Duke





« Reply #26 - Posted 2003-03-17 12:38:02 »

And I think his wrong, the framebuffer alpha is exactly used to blend the incoming pixel with the one already stored in the framebuffer. If not for blending, what's the use for alpha in the pixel format of the framebuffer?

- elias

Offline EgonOlsen
« Reply #27 - Posted 2003-03-17 14:49:18 »

Everything works fine here...i just had to change the call to Display.create() to make jPCT work again. Even the performance is around 10% higher for me. The window-support is much better now, albeit i can't move the LWJGL-window around!? (Windows XP Home, Radeon 9700pro, Catalyst 3.2)

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #28 - Posted 2003-03-17 15:15:13 »

Quote
albeit i can't move the LWJGL-window around!?

Bugger, thats a bug then - I had problems with that too, but thought it was because I was using themed XP ... - looking into it... it *used* to work  Grin

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #29 - Posted 2003-03-17 15:24:28 »

HAHA! <-- the evil kind

Found the bug - now to locate the perpetrator...

Pages: [1] 2
  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.

DarkCart (6 views)
2014-10-31 21:44:48

DarkCart (7 views)
2014-10-31 21:43:57

TehJavaDev (38 views)
2014-10-27 03:28:38

TehJavaDev (29 views)
2014-10-27 03:27:51

DarkCart (43 views)
2014-10-26 19:37:11

Luminem (24 views)
2014-10-26 10:17:50

Luminem (29 views)
2014-10-26 10:14:04

theagentd (35 views)
2014-10-25 15:46:29

Longarmx (63 views)
2014-10-17 03:59:02

Norakomi (61 views)
2014-10-16 15:22:06
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

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

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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!