[SOLVED] jme3 1305

It seems your chip doesn't support glsl or its not correctly detected by lwjgl, i guess you use the newest drivers already?



        String version = glGetString(GL_SHADING_LANGUAGE_VERSION);
        if (version == null || version.equals("")){
            glslVer = -1;
            throw new UnsupportedOperationException("GLSL and OpenGL2 is " +
                                                    "required for the LWJGL " +
                                                    "renderer!");



I use a  1 year old driver. I will check if there is new driver for it.

also I am waiting for a new version of linux (it will be there in 1-3 days)



and what is the code for ?

where should I copy it to? to main or to simpleinit ?

it miss a } at the end, doesnt it ?

and what is the code for ?

I just pasted the code from LwjglRenderer to show where and why exactly the error happens.

If you're using Linux with non-proprietary drivers then GLSL probably won't work. You have to install the drivers from the vendors website which have GLSL.

I have a laptop with Intel GMA X4500 and most of the tests work fine. Did you install the latest drivers from Intel?

Momoko_Fan said:

I have a laptop with Intel GMA X4500 and most of the tests work fine. Did you install the latest drivers from Intel?

I just installed the lastest driver from intel
here is the link
http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=18928&ProdId=2991&lang=eng
and all Renderer work, from OPENGL2 till 3.1
I will continue my adventure later with linux, hope it will also work there ^^

I'm back again with other error ^^



This time I'm in Linux



in XP with old driver I can still use OPEN GL 1 - JOGL

but here nothing works



and here are errors



JOGL OPEN GL 1



May 18, 2010 11:16:24 AM com.jme3.asset.DesktopAssetManager <init>

INFO: DesktopAssetManager created.

INFO JmeSystem 11:16:29 AM Running on jMonkey Engine 3 ALPHA 0.50

INFO Natives 11:16:29 AM Extraction Directory #1: file:/home/oem/Desktop/JME3/

INFO Natives 11:16:29 AM Extraction Directory #2: /home/oem/workspace/zuio

INFO Natives 11:16:29 AM Extraction Directory #3: /home/oem/workspace/zuio

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1028)

at com.sun.gluegen.runtime.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:102)

at com.sun.gluegen.runtime.NativeLibLoader.access$000(NativeLibLoader.java:51)

at com.sun.gluegen.runtime.NativeLibLoader$1.run(NativeLibLoader.java:70)

at java.security.AccessController.doPrivileged(Native Method)

at com.sun.gluegen.runtime.NativeLibLoader.loadGlueGenRT(NativeLibLoader.java:68)

at com.sun.gluegen.runtime.NativeLibrary.ensureNativeLibLoaded(NativeLibrary.java:399)

at com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:163)

at com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:129)

at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:109)

at com.sun.opengl.impl.x11.X11GLDrawableFactory.<clinit>(X11GLDrawableFactory.java:99)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:169)

at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:111)

at javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:520)

at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:131)

at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:90)

at com.jme3.system.jogl.JoglAbstractDisplay$1.<init>(JoglAbstractDisplay.java:51)

at com.jme3.system.jogl.JoglAbstractDisplay.initGLCanvas(JoglAbstractDisplay.java:51)

at com.jme3.system.jogl.JoglDisplay.initInEDT(JoglDisplay.java:99)

at com.jme3.system.jogl.JoglDisplay.access$000(JoglDisplay.java:20)

at com.jme3.system.jogl.JoglDisplay$3.run(JoglDisplay.java:178)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)







OPEN GL 2





May 18, 2010 11:19:22 AM com.jme3.asset.DesktopAssetManager <init>

INFO: DesktopAssetManager created.

INFO JmeSystem 11:19:25 AM Running on jMonkey Engine 3 ALPHA 0.50

INFO Natives 11:19:25 AM Extraction Directory #1: file:/home/oem/Desktop/JME3/

INFO Natives 11:19:25 AM Extraction Directory #2: /home/oem/workspace/zuio

INFO Natives 11:19:25 AM Extraction Directory #3: /home/oem/workspace/zuio

INFO LwjglAbstractDisplay 11:19:25 AM Using LWJGL 2.4.2

INFO LwjglDisplay 11:19:25 AM Selected display mode: 640 x 480 x 0 @0Hz

INFO LwjglAbstractDisplay 11:19:27 AM Display created.

INFO LwjglAbstractDisplay 11:19:27 AM Adapter: null

INFO LwjglAbstractDisplay 11:19:27 AM Driver Version: null

INFO LwjglAbstractDisplay 11:19:27 AM Vendor: Tungsten Graphics, Inc

INFO LwjglAbstractDisplay 11:19:27 AM OpenGL Version: 2.1 Mesa 7.7.1

INFO LwjglAbstractDisplay 11:19:27 AM Renderer: Mesa DRI Mobile Intel

This issue has nothing to do with the video card :slight_smile:



If you're using Ubuntu, it doesn't come with its own OpenAL implementation, so you need to selectively extract it. This issue is being discussed here:

http://www.jmonkeyengine.com/forum/index.php?topic=13909.0

Since it seems Intel GMA X4500 seems to support OpenGL2.1 even on Linux, then you can just use the LWJGL renderer once the OpenAL issue is fixed (which should be soon).



The issue with the JOGL, requires that you specify the java.library.path VM arg to point to where the JOGL natives are.

from nightly 22 05 all lwjgl works (OPENGL2 till 3.1) in ubuntu 10.04 32 bit 

great work ^^

Recently the nightly builds of LWJGL have switched to using nightly builds of OpenAL-Soft. (its now compiled on the lwjgl build farm).



OpenAL-Soft now has support for all sorts of backends (including ALSA, OSS, DirectSound, Solaris, PortAudio, PulseAudio, and a .wav writer) and its being worked on regularly. The standard openal comes no where close to being as compatible. This is now the best way to get proper sound support especially on Linux.