Changes to match latest JOGL build

[quote]Please file an issue on the JOGL web page about the dummy window problem. This was added for full-scene antialiasing (FSAA) support on Windows though it’s clear from the problems being reported that another solution is going to be needed.
[/quote]
Thanks Ken for the answer; I’ve just filed an issue (#75).

[quote]With the change to JOGL to use direct buffers for glSelectBuffer / glFeedbackBuffer, have the selection problems been addressed?
[/quote]
Probably a Xith3d developer should answer the question, because I don’t know if further adaptions in the Xith sources will have to be done.
With the newst Xith+Jogl version the very long time taken for a pick selection is still there unfortunately. So it’s the same some (Xith+Jogl) users reported in the thread GL_SELECT causes long delay.

Btw my earlier reported issue a) - the missing focus - has to do with that ghost window, too. It steals the focus…

We just pushed a build (1.1 beta 02) that disposes of the dummy window right after it’s created. Could you test with this build and let us know whether it works or if there are more problems?

Ken,

I confirm that there is no problem with ghost window anymore.

As of GL_SELECT mode, I think it worked and should work stable in both cases (arrays and buffers) because of picking code in Xith3D implemented such a way to keep hard reference to allocated buffer until core is 100% sure that no selection will happen against it (in short words, we ensure that buffer will not be garbage collected until we finish selection procedures).

I personally never had problems with crashes caused by selection (except of early development stages), not remember reports about such crashes from Xith3D users (I mean those who access selection via Xith3D).

As of slow picking, I think the reason is that in drivers selection seems to be performed in software, and it looks non-hardware-accelerated, so number of triangles is really an issue, but this is more OpenGL question than JOGL or Xith3D. I plan to perform more tests on this subject using plain C implementation of the test.

Yuri

Formerly the ghost window used to steal the focus of the main Xith/Jogl GlCanvas window. Since the ghost window isn’t visible anymore since the newest Jogl beta release, the focus works again as expected. :slight_smile:

The new JOGL/Xith3D work great on my dev box (with nVidia card) - but now fails on my laptop (with a low spec SiS650 card).

The previous version of JOGL and Xith3D did work.

This is my error message, can anyone explain to me what’s going wrong here?


net.java.games.jogl.GLException: Error re-describing the chosen pixel format

      at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:456)

      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:204)

      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:203)

      at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:97)

      at java.awt.Component.setBounds(Unknown Source)

      at java.awt.BorderLayout.layoutContainer(Unknown Source)

      at java.awt.Container.layout(Unknown Source)

      at java.awt.Container.doLayout(Unknown Source)

      at java.awt.Container.validateTree(Unknown Source)

      at java.awt.Container.validate(Unknown Source)

      at java.awt.Window.show(Unknown Source)

      at net.java.games.jogl.impl.windows.WindowsGLContextFactory.getDummyGLContext(WindowsGLContextFactory.java:124)

      at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:264)

      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:204)

      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:203)

      at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:186)

      at net.java.games.jogl.GLCanvas.display(GLCanvas.java:74)

      at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:1100)

      at com.xith3d.scenegraph.View.renderOnce(View.java:731)

      at com.xith3d.scenegraph.View.renderOnce(View.java:664)

      at com.xith3d.test.CubeTest.<init>(CubeTest.java:181)

      at com.xith3d.test.CubeTest.main(CubeTest.java:201)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at com.sun.javaws.Launcher.executeApplication(Unknown Source)

      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)

      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)

      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

      at com.sun.javaws.Launcher.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)



By the way, I have updated JOGL in the CVS, and the official xith.org JWS demos.

Thanks,

Will.

The reason for this is that since 1.1 JOGL has completely different mechanism of choosing pixel format. I tried to preserve the old one by providing OldStyleGLCapabilitiesChooser in jogl renderer package, but it seems to fail in some cases.

Can you please try out some of pure JOGL demos on the same PC and let me know if they work or not?

Yuri

thanks for the reply Yuri, I should have done that anyway.

No - the latest JOGL demos do not work, although past versions did. I posted a thread in the JOGL forum: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1082976294;start=0

Cheers,

Will.

Im getting similar / possible same error now that Ive upgraded to the new Xith and JOGL.

I tried todays nightly build that Ken posted in your other post there, but it still fails…

Here is what I’m getting:



Exception in thread "main" java.lang.UnsatisfiedLinkError: dispatch_wglGetExtensionsStringARB
        at net.java.games.jogl.impl.windows.WindowsGLImpl.dispatch_wglGetExtensionsStringARB(Native Method)
        at net.java.games.jogl.impl.windows.WindowsGLImpl.wglGetExtensionsStringARB(WindowsGLImpl.java:33296)
        at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:277)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:204)
        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:203)
        at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:97)
        at java.awt.Component.setBounds(Component.java:1664)
        at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
        at java.awt.Container.layout(Container.java:1020)
        at java.awt.Container.doLayout(Container.java:1010)
        at java.awt.Container.validateTree(Container.java:1092)
        at java.awt.Container.validate(Container.java:1067)
        at java.awt.Window.show(Window.java:461)
        at net.java.games.jogl.impl.windows.WindowsGLContextFactory.getDummyGLContext(WindowsGLContextFactory.java:124)
        at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:264)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:204)
        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:203)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:186)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:74)
        at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:1100


Same thing?

I have a Geforce 3 ti200. Athlon 1800+. 1.4.2_04, Windows XP

AFAIK the nightly build has not yet been built yet :slight_smile:

I’m waiting for the build on the morning of 27th.

It makes it hard when they don’t post what timezone the builds are done it but one assumes it’s somewhere in America.

Will.

doh :slight_smile: Lol.

/me waits patiently for “todays” build.

St00pid Egotistical Westerners eh?

“US Bombs Greenwich, changes official World time to US-Eastern”

it’s up now :slight_smile:

Will.

JOGL works again for me on that system - I havn’t tried Xith3D but will get a chance in a few hours.

Will.

Working for me now also. Thanks :slight_smile:

I can confirm that Xith3D also is working again now.

Is there a need for committing this version into CVS? If only a few cards are affected I guess there is no need.

Will.

Idunno my Nvidia Geforce 3 is pretty common…

ok, i’ll update it across the board tonight.

Will.