Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / problems wit swapBuffers() on: 2004-05-31 23:29:30
Hi,

for a progressive rendering algorithm I need the swapBuffers() function, which should work in the new release.
Unfortunately, when I try to use swapBuffers() in a really simple
context (just some geometry and the swap afterwards) it crashes in the display() after calling:
drawable.setAutoSwapBufferMode( false );  
drawable.swapBuffers();

I essentially want to make sure the swapping works fine, before I change
my whole system from gl4java to jogl.
What am I doing wrong? Is it not ok to use swapBuffers() in the
display function?
I am running Linux Redhat 9 and the jogl release from 29th of April.

output:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4D0F6A77
Function=XQueryExtension+0x17
Library=/usr/X11R6/lib/libX11.so.6

Current Java thread:
     at net.java.games.jogl.impl.x11.GLX.glXMakeCurrent(Native Method)
     at net.java.games.jogl.impl.x11.X11GLContext.free(X11GLContext.java:165)
     - locked <0x445f6ca0> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
     at net.java.games.jogl.impl.x11.X11OnscreenGLContext.free(X11OnscreenGLContext.java:133)
     - locked <0x445f6ca0> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
     at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:271)
     - locked <0x445f6ca0> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
     at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:186)
     at net.java.games.jogl.GLCanvas.display(GLCanvas.java:74)
     at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:81)
     at sun.awt.RepaintArea.paint(RepaintArea.java:177)
     at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:405)
     at java.awt.Component.dispatchEventImpl(Component.java:3678)
     at java.awt.Component.dispatchEvent(Component.java:3477)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Thanks for your help.
cheers,
kristian
2  Java Game APIs & Engines / JOGL Development / Progressive Rendering on: 2003-11-20 01:04:49
How can I implement a progressive rendering without
a swap buffers support in Jogl (I read somewhere in this forum
that this is not supported yet.)? Or is there another possiblity to
do this? (I used GL4java before, where this is supported but like to switch
to Jogl because of the nvidia cg support)

thanks,
kristian
Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (78 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (157 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (179 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.132 seconds with 21 queries.