I’m trying to learn JME3.
On the JME 3 Tutorial (1) - Hello SimpleApplication
[java]package jme3test.helloworld;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.math.ColorRGBA;
/** Sample 1 - how to get started with the most simple JME 3 application.
- Display a blue 3D cube and view from all sides by
- moving the mouse and pressing the WASD keys. */
public class HelloJME3 extends SimpleApplication {
public static void main(String[] args){
HelloJME3 app = new HelloJME3();
app.start();
}
@Override
public void simpleInitApp() {
Box b = new Box(Vector3f.ZERO, 1, 1, 1);
Geometry geom = new Geometry(“Box”, b);
Material mat = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
mat.setColor(“Color”, ColorRGBA.Blue);
geom.setMaterial(mat);
rootNode.attachChild(geom);
}
}[/java]
It compile fine but just when the window is being created I get the following error :
GRAVE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.UnsupportedOperationException: GLSL and OpenGL2 is required for the LWJGL renderer!
at com.jme3.renderer.lwjgl.LwjglRenderer.initialize(LwjglRenderer.java:201)
at com.jme3.system.lwjgl.LwjglContext.initContextFirstTime(LwjglContext.java:136)
at com.jme3.system.lwjgl.LwjglContext.internalCreate(LwjglContext.java:173)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:123)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:200)
at java.lang.Thread.run(Thread.java:636)
So what can I do to fix/bypass this problem.
I don’t know if it’s helpful or not but I’m using Ubuntu 10.04 and my graphics card is : Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
Thanks for your help