Summary: | Multisampling doesn't work at all | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Demoscene Passivist <demoscenepassivist> |
Component: | core | Assignee: | Sven Gothel <sgothel> |
Status: | VERIFIED DUPLICATE | ||
Severity: | blocker | CC: | bienator, gouessej, ozemale, sgothel |
Priority: | P2 | ||
Version: | 2 | ||
Hardware: | All | ||
OS: | all | ||
Type: | DEFECT | SCM Refs: |
96af6c9bf2d683115996214cd895f9f9ef7ceea6
7262641429b542929efc699e392f410f1dee2187
|
Workaround: | --- |
Description
Demoscene Passivist
2010-09-08 07:01:18 CEST
On my machine I am able to set 8 samples successfully but beyond that it is broken. The machine has an NVIDIA Quadro FX-5800 GPU and is running Windows 7 64-bit with Java 6 Update 21 (32-bit). The GPU is capable of 32X antialiasing so setting 8 samples is well below capacity. When setting JOGL debug to ON I get a multitude of exceptions that don't manifest themselves with debug turned off. The most significant of these are documented in the thread referred to in the original bug report comment. Setting the number of samples works perfectly with JOGL 1.x on the same machine but is seriously broken with JOGL 2.x. tried to find the cause; results so far (linux): - capabilities are properly chosen - context is created with correct FBConfig - display used for rendering has the right FBConfig validated with: X11GLXGraphicsConfiguration config = (X11GLXGraphicsConfiguration)drawable.getNativeWindow().getGraphicsConfiguration().getNativeGraphicsConfiguration(); long display = drawable.getNativeWindow().getDisplayHandle(); int[] foo = new int[1]; GLX.glXGetFBConfigAttrib(display, config.getFBConfig(), GLX.GLX_SAMPLES, foo, 0); System.out.println("GLX_SAMPLES "+foo[0]); GLX.glXGetFBConfigAttrib(display, config.getFBConfig(), GLX.GLX_SAMPLE_BUFFERS, foo, 0); System.out.println("GLX_SAMPLE_BUFFERS "+foo[0]); result: GLX_SAMPLES 4 GLX_SAMPLE_BUFFERS 1 also tested with jogl 1.1a ... worked tested with over one year old jogl 2 build... didn't work. So the bug is already there since the beginning of jogl2. (http://projectkenai.com/projects/netbeans-opengl-pack/downloads/directory/releases) wrong link in last comment. -> http://projectkenai.com/projects/netbeans-opengl-pack/downloads/directory/early-access I tried to use JOGL 2 on Linux with multisampling, I have no exception, no log but it has no effect, lines are not smooth. https://github.com/sgothel/jogl/commit/96af6c9bf2d683115996214cd895f9f9ef7ceea6 Fixes the situation under X11/AWT. NEWT/X11 always worked. The generic Window issue is related to #397, which I will finish today. *** This bug has been marked as a duplicate of bug 397 *** |