Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (529)
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] 3
  ignore  |  Print  
  Uncontrolled flicker  (Read 11398 times)
0 Members and 1 Guest are viewing this topic.
Offline daymark

Senior Newbie




Java games rock!


« Reply #30 - Posted 2004-07-08 09:04:53 »

Quote
Would you mind running the Race Viewer again (i.e with no flicker) and check what driver it's using in your case - details are written to the Java console on start-up. Remember that the Race Viewer is using the 14 May build of JOGL 1.1b04.

I have PMed you the log, but can't see the driver mentioned.

Quote
Just curious: You mention GL version 4.14.10.3701? Is this maybe a typo? According to http://www.intel.com/support/graphics/sb/CS-009479.htm#845 the leading "4" indicates a Windows 95/98/NT driver, but you have Windows XP? Possibly, the OpenGL version numbers aren't necessarily always the same as the Driver version numbers?

Its not a typo, its the driver provided by Dell. I briefly tried the latest w2k/xp Intel driver for this chipset which also ran fine (no flicker) for a day but then it failed catastrophically - would only boot up in safe mode due to display driver failure. Did a full restore using DriveImage7 and have been running with the original driver since then.
Offline keving

Senior Newbie




Java games rock!


« Reply #31 - Posted 2004-07-08 20:12:17 »

Hi

Daymark was running the old applet (pure Java, no OpenGL) version of the Digiturf race viewer, not the new JOGL version.  This negates any observations made about the race viewer not flickering on his machine, while the demos were. My appologies - I should have made it clear that I was talking about the "Enhanced" viewer and not the "Standard" viewer.

I have had feedback from two users of the race viewer that are having the flickering problem:

User A has Intel 82845
User B has an ATI Radeon IGP 320m

Both have Windows XP.

sun.java2d.noddraw=true has no effect for either.

In both cases, the race viewer reports that it is picking up the Microsoft GDI Generic, Version 1.1.0 renderer, as described by Daymark.

Could be a pattern here: MS Renderer = Flicker, and it looks like it's not limited to Intel hardware.

Kevin









Offline daymark

Senior Newbie




Java games rock!


« Reply #32 - Posted 2004-07-08 23:49:16 »

Hi Kevin

Ooops!!! I said the (standard) Race Viewer needed a higher polygon count!!! Grin

The enhanced version looks awsome!

I ran the jnlp you sent me, and you guessed it - it flickers, and with the window maximized (1400x1050) I'm getting less than 1 frame/sec Embarrassed

But unlike the old Race Viewer, the Java Console is not opening to display log output so I can't confirm whether Intel or Microsoft driver is being used. The Java Console opens for ok for applets. Any ideas?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline keving

Senior Newbie




Java games rock!


« Reply #33 - Posted 2004-07-09 08:28:18 »

Hi Daymark,

To see the Java Console with Webstart 1.4.2, run the Webstart Application Manager (javaws.exe). Click on File - Preferences. Go to the Advanced tab. There you can check "Show Java Console", and you can also log output to a specified file.

Kevin
Offline daymark

Senior Newbie




Java games rock!


« Reply #34 - Posted 2004-07-09 10:08:07 »

As suspected, Microsoft's OpenGL driver is being used:

Java Web Start 1.4.2_05 Console, started Fri Jul 09 10:54:24 BST 2004
Java 2 Runtime Environment: Version 1.4.2_05 by Sun Microsystems Inc.
====================================
RACE VIEWER: 4.0

OS:
Name: Windows XP
Architecture: x86
Version: 5.1

JAVA:
Runtime: Java(TM) 2 Runtime Environment, Standard Edition
Version: 1.4.2_05-b04
Vendor: Sun Microsystems Inc.

JOGL:
1.1.0-b04

OPENGL:
Vendor: Microsoft Corporation
Renderer: GDI Generic
Version: 1.1.0
GLU Version: 1.2.2.0 Microsoft Corporation
====================================
Offline Caoimhin

Junior Member





« Reply #35 - Posted 2004-07-09 18:31:31 »

I've tested with my own apps and have gotten the same results:

Vendor: Microsoft Corporation
Renderer: GDI Generic

So how do we go about getting this fixed?  Has anyone filed a bug about the Generic driver being selected?
Offline GKW

Senior Member




Revenge is mine!


« Reply #36 - Posted 2004-07-09 20:10:35 »

If you are using windows and download jogl.jar and jogldll.zip from my site you can see a little debugging info.  If you would then be kind enough to post the debug messages here I would appreciate it.  The original JOGL used ChoosePixelFormat to get a valid pixel format from winodws.  The current versions use wlgChoosePixelFormat which allows you to use FSAA and floating point framebuffers.  Unfortunately for us ChoosePixelFormat will basically always return a pixelformat whether it has all the capabilities you asked for or not, which is why that version always seems to work for everyone, while wglChoosePixelFormat will give you a format that has all the capabilities you asked for or nothing at all.
Offline Caoimhin

Junior Member





« Reply #37 - Posted 2004-07-09 21:29:32 »

Eeek.

C:\Development\Projects\jogl\nehe\lesson07>java Lesson07
!!! Initializing GLU extension address table
Using ATI workaround of dispatching display() on event thread
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB
       at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
       at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent
(WindowsOnscreenGLContext.java:110)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
       at net.java.games.jogl.Animator$1.run(Animator.java:107)
       at java.lang.Thread.run(Unknown Source)
Offline GKW

Senior Member




Revenge is mine!


« Reply #38 - Posted 2004-07-09 22:23:35 »

Please download JOGL.jar from the site again and run it again.  It will fail but this time it will report an error number with the failure message.  Hopefully it won't be a zero otherwise I will be driven to drink.  I assume you are not using the lesson7.jar from my site but if you are don't.
Offline Caoimhin

Junior Member





« Reply #39 - Posted 2004-07-09 22:50:01 »

A drink is sounding really good about now.

No, I'm using my own lesson07 that I originally wrote for the nehe tutorials last year.


C:\Development\Projects\jogl\nehe\lesson07>java Lesson07
!!! Initializing GLU extension address table
Using ATI workaround of dispatching display() on event thread
!!! Initializing OpenGL extension address table
wglChoosePixelFormatARB didn't recommend a pixel format
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0
       at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
       at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
       at net.java.games.jogl.Animator$1.run(Animator.java:107)
       at java.lang.Thread.run(Unknown Source)

But here's a bit of good news, maybe.  I get the same error and stack trace in fullscreen, too.  So it appears to be the same issue.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline daymark

Senior Newbie




Java games rock!


« Reply #40 - Posted 2004-07-10 09:21:29 »

Hi GKW

Here's the results of running Gears with your jogl.jar and jogl.zip on my Dell 510m laptop:

CANVAS GL IS: net.java.games.jogl.impl.windows.WindowsGLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
!!! Initializing GLU extension address table
!!! Initializing OpenGL extension address table
Used wglChoosePixelFormatARB to recommend pixel format 6
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0
       at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
       at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
       at net.java.games.jogl.Animator$1.run(Animator.java:107)
       at java.lang.Thread.run(Thread.java:534)

Cheers
David
Offline Caoimhin

Junior Member





« Reply #41 - Posted 2004-07-10 14:54:06 »

I tried these jars out on my laptop which has been running windowed mode just fine.  I tried both fullscreen and windowed.  Windowed continues to run fine, but fullscreen only worked once.  The second time I tried to run fullscreen, I got the same white screen.  Interestingly enough, I had no debugging lines at all on that 2nd fullscreen run.

Ahh, I think I've solved my fullscreen problems.
Quote
You may have run into a higher level problem with the code initialisation order.  JOGL requires some very specific ordering of instructions otherwise a lot of stuff just fails to even get going. For example, don't try to add the GLCanvas before the main Frame has been made visible, etc. What this ends up translating to is that the GLContext may be available on one card before it is on another, so code that works on one machine doesn't work on another.

And my init code was doing it backwards.  I swapped the order and it reliably enters fullscreen on this machine.
Offline GKW

Senior Member




Revenge is mine!


« Reply #42 - Posted 2004-07-11 16:12:20 »

One more try if you gentlemen would be so kind.  I had Kens ATI work around turned off but now it is back on.  Maybe that will fix it.  Also if you could post your videocard make and driver version I would appreciate it.  I assume you guys have ATI cards.
Offline Giddy

Senior Newbie




Java games rock!


« Reply #43 - Posted 2004-07-11 17:48:00 »

I also experience flicker on my laptop with the latest JOGL.

Intel 82852/82855 GM/GME Graphics Controller

I found a jogl jar and dll from an old project I made in february - and it causes no flicker.

It crashes with  the new version at GKW's page.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
!!! Initializing GLU extension address table
!!! Initializing OpenGL extension address table
Used wglChoosePixelFormatARB to recommend pixel format 6
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0
      at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
      at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
      at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
      at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:112)


Oh and btw. I am running in windowed mode. The above is the output if I set the desktop 32 bit.

If I change the desktop to 16 bit I get:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
!!! Initializing GLU extension address table
!!! Initializing OpenGL extension address table
wglChoosePixelFormatARB didn't recommend a pixel format
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0
      at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
      at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
      at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
      at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:112)


Offline keving

Senior Newbie




Java games rock!


« Reply #44 - Posted 2004-07-12 08:17:18 »

I don't have the flickering problem with my lowly
Pentium III, Windows 98, Intel 82815 graphics, but over the weekend I tried updating my drivers, and for both the Gears demo and the race viewer under jogl b04 dated 14 May:

  4.12.01.2607 = OK
  4.13.01.3196 = "Unable to enumerate pixel formats..."

Both are windowed apps and neither request any special capabilities:
1  
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());


Don't know if that helps...

Daymark found the flicker problem was not present with jogl 1.0, but happens under every version thereafter. He has the same Intel 82852/82855 GM/GME as Giddy.

I have reports of the flickering problem with Intel 82845 and the same problem was reported in this thread by davec67 with an ATI Radeon 7000 DDR x86/SSE.

Kevin
Offline daymark

Senior Newbie




Java games rock!


« Reply #45 - Posted 2004-07-12 08:51:06 »

GKW, just downloaded your jogl.jar and jogldll.zip again and ran Gears but still getting the exception (no display):

CANVAS GL IS: net.java.games.jogl.impl.windows.WindowsGLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
!!! Initializing GLU extension address table
!!! Initializing OpenGL extension address table
Used wglChoosePixelFormatARB to recommend pixel format 6
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0
       at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
       at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
       at net.java.games.jogl.Animator$1.run(Animator.java:107)
       at java.lang.Thread.run(Thread.java:534)

Machine spec:

Model: Dell Inspiron 510m laptop, 1.4GHz Pentium M, 512MB
OS: XP-Pro SP1.
Graphics adapter: Intel 82852/82855 GM/GME, 64MB
Graphics driver: Intel Corporation 6.14.10.3701

I have also tried the latest Intel driver which also flickered, but I reverted back to the Dell-provided version due to instability.
Offline Caoimhin

Junior Member





« Reply #46 - Posted 2004-07-12 16:37:47 »

Quote
One more try if you gentlemen would be so kind.  I had Kens ATI work around turned off but now it is back on.  Maybe that will fix it.  Also if you could post your videocard make and driver version I would appreciate it.  I assume you guys have ATI cards.


Still crashing.

C:\Development\Projects\jogl\nehe\lesson07>java Lesson07
!!! Initializing GLU extension address table
Using ATI workaround of dispatching display() on event thread
!!! Initializing OpenGL extension address table
wglChoosePixelFormatARB didn't recommend a pixel format
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0
       at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
       at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
       at net.java.games.jogl.Animator$1.run(Animator.java:107)
       at java.lang.Thread.run(Unknown Source)

Specs are unchanged:

Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 1 (2600.xpsp2.030422-1633)
System Manufacturer: Dell Computer Corporation
System Model: OptiPlex GX240      
Processor: Intel(R) Pentium(R) 4 CPU 2.20GHz
Memory: 512MB RAM
Card name: 16MB ATI Rage 128 Ultra
Manufacturer: ATI Technologies Inc.
Chip type: RAGE128 PRO II, (AGP 4X/PCI)
DAC type: Internal DAC (350Mhz)

And just to confirm, the jars are:

Directory of C:\Program Files\Java\j2re1.4.2_04\lib\ext

06/03/2004  01:52 PM         1,092,001 jogl.dll
07/12/2004  09:28 AM           734,238 jogl.jar
09/05/2003  11:02 AM            40,960 jogl_cg.dll
Offline GKW

Senior Member




Revenge is mine!


« Reply #47 - Posted 2004-07-12 18:00:51 »

We kind of use a zombie opengl context to check for valid pixel formats, I guess ATI and Intel don't like us doing that.  I have a couple ideas I want to try out.  Thanks for the help guys, I should have something up later today that will hopefully fix the problem.
Offline GKW

Senior Member




Revenge is mine!


« Reply #48 - Posted 2004-07-12 20:40:21 »

Alright I went back to a different way of creating the zombie context.  I doubt this will work but we will see.  I wish my ATI card had this problem, it would be a lot easier to fix.  Thanks in advanced for the new error codes.
Offline Caoimhin

Junior Member





« Reply #49 - Posted 2004-07-12 20:51:50 »

Well, this is a little better, I guess.   The app doesn't crash and gets a display up, but flickers as before.

If I owned this card, I'd gladly rip it out and send it to you.  

Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = null
Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = null
Choosing window system's recommended choice of 4
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
Chosen pixel format (4):
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
!!! Created OpenGL context 65536
!!! Created GL context for net.java.games.jogl.impl.windows.WindowsOnscreenGLContext
!!! Initializing GLU extension address table
!!! Initializing OpenGL extension address table
Making context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@17ee8b8 current
Freeing context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@17ee8b8
!!! Destroyed OpenGL context 65536
Choosing window system's recommended choice of 4
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
Chosen pixel format (4):
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
!!! Created OpenGL context 131072
!!! Created GL context for net.java.games.jogl.impl.windows.WindowsOnscreenGLContext
!!! Initializing OpenGL extension address table
Making context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@d08633 current
Vendor: Microsoft Corporation
Renderer: GDI Generic
Version: 1.1.0
Extensions: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture

Offline daymark

Senior Newbie




Java games rock!


« Reply #50 - Posted 2004-07-12 20:54:20 »

Quote
Alright I went back to a different way of creating the zombie context.  I doubt this will work but we will see.  I wish my ATI card had this problem, it would be a lot easier to fix.  Thanks in advanced for the new error codes.


It does display this time but is still flickering.

CANVAS GL IS: net.java.games.jogl.impl.windows.WindowsGLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = null
Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = null
Choosing window system's recommended choice of 6
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Gree
n: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
Chosen pixel format (6):
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Gree
n: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
Choosing window system's recommended choice of 6
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Gree
n: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
Chosen pixel format (6):
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Gree
n: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
!!! Created OpenGL context 65536
!!! Created GL context for net.java.games.jogl.impl.windows.WindowsOnscreenGLContext
!!! Initializing GLU extension address table
!!! Created OpenGL context 65537
!!! Created GL context for net.java.games.jogl.impl.windows.WindowsOnscreenGLContext
!!! Initializing OpenGL extension address table
Making context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@10bc49d current
Freeing context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@10bc49d
!!! Destroyed OpenGL context 65536
!!! Initializing OpenGL extension address table
INIT GL IS: net.java.games.jogl.impl.windows.WindowsGLImpl
Making context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@6025e7 current
GL_VENDOR: Microsoft Corporation
GL_RENDERER: GDI Generic
GL_VERSION: 1.1.0
Offline Caoimhin

Junior Member





« Reply #51 - Posted 2004-07-12 21:04:08 »

I added a call to GLCapabilities.toString() in my app and executed against jogl 1.0 (April 12th).   I'm pasting it to show what I think I should be getting.

C:\Development\Projects\jogl\nehe\lesson07>java Lesson07
GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true,DepthBits: 24, StencilBits: 0, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0 ]
Vendor: ATI Technologies Inc.
Renderer: RAGE 128 Pro Ultra x86/SSE2
Version: 1.2.1716 WinXP Release
Extensions: GL_ARB_multitexture GL_ARB_texture_border_clamp GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_ARB_vertex_blend GL_ARB_window_pos GL_ATI_texture_mirror_once GL_ATI_vertex_streams GL_ATIX_vertex_shader_output_point_size GL_EXT_abgr GL_EXT_bgra GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_packed_pixels GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_texgen_reflection GL_EXT_texture_env_add GL_EXT_texture3D GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_object GL_EXT_vertex_array GL_KTX_buffer_region GL_NV_texgen_reflection GL_SGI_texture_edge_clamp GL_SGIS_texture_border_clamp GL_SGIS_texture_lod GL_SGIS_multitexture GL_WIN_swap_hint WGL_EXT_extensions_string WGL_EXT_swap_control
Offline GKW

Senior Member




Revenge is mine!


« Reply #52 - Posted 2004-07-12 21:13:20 »

Thanks guys.  It looks like the problem is that you guys are getting the MS software implementation.  I think its software blitting is the cause of the flickering.  I will include a little code to figure out what pixelformats are available to be picked from and hopefully we will be able to figure out why they are not being picked.
Offline GKW

Senior Member




Revenge is mine!


« Reply #53 - Posted 2004-07-12 22:18:09 »

I think have found a logic error so try the new jar.  Also I am assuming that you guys are not requesting a 32bit zbuffer.  Most commercial cards don't support it so if you are change it to 24bits and give that a try.
Offline daymark

Senior Newbie




Java games rock!


« Reply #54 - Posted 2004-07-12 22:35:28 »

Yes!!!  Runs without flicker. Well done Cheesy

Console output is too long to post, would you like me to email it ?

Cheers
David
Offline GKW

Senior Member




Revenge is mine!


« Reply #55 - Posted 2004-07-12 22:39:50 »

As long as everyone says it works now don't bother with the debug info.  It looks like when windows said to pick pixelformat 6 we were using pixelformat 7.  If this works for everyone I will post a version that won't spit out all the debug info and I will email Ken to get teh change in the CVS.
Offline Caoimhin

Junior Member





« Reply #56 - Posted 2004-07-12 22:44:03 »

Erm.  Yeah, it runs now without flicker, BUT I seem to have lost all keyboard inputs except Escape.

Again, comparing with the 1.0 version of jogl, same code, the keyboard inputs work fine.

Worse yet, now running the same code with the new jogl.jar, I get an exception outside the VM.

Here is a snippet of the log.  I suspect I'll need to reboot to clean this up as it is continuing to happen.

!!! Initializing GLU extension address table
Using ATI workaround of dispatching display() on event thread
!!! Initializing OpenGL extension address table
Making context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@1995d80 current
Freeing context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@1995d80

!!! Destroyed OpenGL context 65536
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x6902FD5E
Function=glPushClientAttrib+0x11AE
Library=C:\WINDOWS\SYSTEM32\atioglaa.dll

Current Java thread:
       at net.java.games.jogl.impl.windows.WindowsGLImpl.dispatch_wglChoosePixelFormatARB(Native Method)
       at net.java.games.jogl.impl.windows.WindowsGLImpl.wglChoosePixelFormatARB(WindowsGLImpl.java:33092)
Offline daymark

Senior Newbie




Java games rock!


« Reply #57 - Posted 2004-07-12 23:03:05 »

I spoke too soon. This happened a couple of times in a dozen or so runs (Gears):

...
Chosen pixel format (6):
GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Gree
n: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ]
!!! Created OpenGL context 65536
!!! Created GL context for net.java.games.jogl.impl.windows.WindowsOnscreenGLContext
!!! Initializing GLU extension address table
!!! Initializing OpenGL extension address table
Making context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@10bc49d current
Freeing context net.java.games.jogl.impl.windows.WindowsOnscreenGLContext@10bc49d
!!! Destroyed OpenGL context 65536
Used wglChoosePixelFormatARB to recommend pixel format 6
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB: 0
       at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:390)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:211)
       at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:133)
       at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:254)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
       at net.java.games.jogl.Animator$1.run(Animator.java:107)
       at java.lang.Thread.run(Thread.java:534)


PS Its midnight here in the UK, so I'm signing off. Night night all.
Offline Caoimhin

Junior Member





« Reply #58 - Posted 2004-07-12 23:07:02 »

Ok, a little further testing shows that the Animator does not appear to be running.  I display the first frame and then freeze.

There appears to be some sort of race condition as sometimes I crash on startup with that exception outside the VM and other times it starts up and displays the first frame.

Doing a full thread dump doesn't show any obvious differences between the two versions of jogl.
Offline GKW

Senior Member




Revenge is mine!


« Reply #59 - Posted 2004-07-12 23:16:28 »

I think that is teh ATI workaround which you can shut off by setting a system property to false.  Try -DATI_WORKAROUND=false at the command line.  I can shut it off for everyone but Ken added it for a reason.  It doesn't work on my ATI machine either that's why I had it shut off before but use the command line please with the new jar I just uploaded.
Pages: 1 [2] 3
  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.

ctomni231 (31 views)
2014-07-18 06:55:21

Zero Volt (27 views)
2014-07-17 23:47:54

danieldean (23 views)
2014-07-17 23:41:23

MustardPeter (24 views)
2014-07-16 23:30:00

Cero (39 views)
2014-07-16 00:42:17

Riven (41 views)
2014-07-14 18:02:53

OpenGLShaders (28 views)
2014-07-14 16:23:47

Riven (28 views)
2014-07-14 11:51:35

quew8 (25 views)
2014-07-13 13:57:52

SHC (61 views)
2014-07-12 17:50:04
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

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24: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!