About the anti-alias problem in JEM3

Is there any function of opening anti-alias in JEM3? If there is, how to open it?

When you start your jme3 app, you are presented a screen with options. The fourth dropdown-box from the left is what you want. Its set to "disabled" by default and you can set it to 2x, 4x, 6x etc…



Cheers,

Normen

Yes, sorry AA is Anti-Aliasing.

ok so your card fail to init display only when anti-Aliasing is on, so maybe try to update to latest drivers,

thanks nehon

I will check if I can update the driver anymore

I use Linux Mint Debian

long ago I follow this tut and managed to let JME3 run on my laptop

http://i.imgur.com/nnfw0.png

I reinstalled it and now I have OPENGL Version 2.1 Mesa 7.10, so I think I managed to update the driver

but the problem is still there.

Hi,

I tried to set anti-alias option to 2x, 4x but I always get errors



INFO LwjglAbstractDisplay 4:34:44 AM Using LWJGL 2.7.1

Apr 19, 2011 4:34:44 AM com.jme3.system.lwjgl.LwjglAbstractDisplay run

INFO: Using LWJGL 2.7.1

INFO LwjglDisplay 4:34:44 AM Selected display mode: 800 x 600 x 0 @0Hz

Apr 19, 2011 4:34:44 AM com.jme3.system.lwjgl.LwjglDisplay createContext

INFO: Selected display mode: 800 x 600 x 0 @0Hz

SEVERE Application 4:34:46 AM Failed to create display

org.lwjgl.LWJGLException: Could not choose visual

at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)

at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:52)

at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:717)

at org.lwjgl.opengl.Display.create(Display.java:855)

at org.lwjgl.opengl.Display.create(Display.java:785)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:126)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:100)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

at java.lang.Thread.run(Thread.java:662)

Apr 19, 2011 4:34:46 AM com.jme3.app.Application handleError

SEVERE: Failed to create display

org.lwjgl.LWJGLException: Could not choose visual

at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)

at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:52)

at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:717)

at org.lwjgl.opengl.Display.create(Display.java:855)

at org.lwjgl.opengl.Display.create(Display.java:785)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:126)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:100)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

at java.lang.Thread.run(Thread.java:662)

SEVERE Application 4:34:46 AM Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:135)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:662)

Apr 19, 2011 4:34:46 AM com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:135)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:662)





I also tried this code:

public static void main(String[] args) {

AppSettings setting= new AppSettings(true);

setting.setFullscreen(true); setting.setSamples(2);

main app= new main(); app.setShowSettings(false);

app.setSettings(setting);

app.start();

}



then I also get similar error



INFO LwjglAbstractDisplay 4:37:55 AM Using LWJGL 2.7.1

Apr 19, 2011 4:37:55 AM com.jme3.system.lwjgl.LwjglAbstractDisplay run

INFO: Using LWJGL 2.7.1

INFO LwjglDisplay 4:37:56 AM Selected display mode: 640 x 480 x 24 @60Hz

Apr 19, 2011 4:37:56 AM com.jme3.system.lwjgl.LwjglDisplay createContext

INFO: Selected display mode: 640 x 480 x 24 @60Hz

SEVERE Application 4:37:59 AM Failed to create display

org.lwjgl.LWJGLException: Could not choose visual

at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)

at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:52)

at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:717)

at org.lwjgl.opengl.Display.create(Display.java:855)

at org.lwjgl.opengl.Display.create(Display.java:785)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:126)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:100)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

at java.lang.Thread.run(Thread.java:662)

Apr 19, 2011 4:37:59 AM com.jme3.app.Application handleError

SEVERE: Failed to create display

org.lwjgl.LWJGLException: Could not choose visual

at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)

at org.lwjgl.opengl.LinuxDisplayPeerInfo.(LinuxDisplayPeerInfo.java:52)

at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:717)

at org.lwjgl.opengl.Display.create(Display.java:855)

at org.lwjgl.opengl.Display.create(Display.java:785)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:126)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:100)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

at java.lang.Thread.run(Thread.java:662)

SEVERE Application 4:37:59 AM Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:135)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:662)

Apr 19, 2011 4:37:59 AM com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:135)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:662)



what could the problem be ? my graphics card ?

Or your graphic card’s drivers.

Does it work without AA?

I dont know what AA mean, may be Anti-alias ?

do you mean the disable option like normen said above ?

The fourth dropdown-box from the left is what you want. Its set to “disabled” by default



if yes then yeah, it works when it is set to disable. if I change it to 2 4 … then I will get those errors

Honestly I don’t know…intel GMA 4500 chipsets should support ogl 2.1, but apparently it does not support Anti Aliasing…can’t find anything on the net saying so or the contrary though…

This post might be related to http://hub.jmonkeyengine.org/groups/general-2/forum/topic/opengl-2-on-linux/ ?

@thetoucher

I think the post related to this thread too

you can at least use AA in win7, I have just tried in win XP and I still get errors, not the same as the first





SEVERE Application 6:40:55 PM Failed to create display

org.lwjgl.LWJGLException: No support for WGL_ARB_multisample

at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)

at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)

at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:185)

at org.lwjgl.opengl.Display.createWindow(Display.java:317)

at org.lwjgl.opengl.Display.create(Display.java:857)

at org.lwjgl.opengl.Display.create(Display.java:785)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:126)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:100)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

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

Apr 20, 2011 6:40:55 PM com.jme3.app.Application handleError

SEVERE: Failed to create display

org.lwjgl.LWJGLException: No support for WGL_ARB_multisample

at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)

at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)

at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:185)

at org.lwjgl.opengl.Display.createWindow(Display.java:317)

at org.lwjgl.opengl.Display.create(Display.java:857)

at org.lwjgl.opengl.Display.create(Display.java:785)

at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:126)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:100)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

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

SEVERE Application 6:40:55 PM Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:135)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

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

Apr 20, 2011 6:40:55 PM com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:135)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

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





@nehon

If I remember well Momoko_Fan also has GMA4500

I will ask him if his GMA4500 works with AA

I don’t think GMA 4500 supports anti aliasing

1 Like

I see

so that is because of the card, nothing I can do now ^^

thanks Momoko_Fan