Error With Opening Screen And OpenGL Settings

Hello,

I have been making a test project to try out different things for my game. I have recently tried two things:

Changing the loading screen (here’s my code):



[java]

AppSettings settings = new AppSettings(true);

Main app = new Main();

app.setSettings(settings);

app.setShowSettings(false);

app.start();

[/java]



And running in OpenGL1:



AppSettings settings = new AppSettings(true);



[java]

settings.setRenderer(AppSettings.LWJGL_OPENGL1);

[/java]



Is there a problem with my code? It still uses the default loading screen and OpenGL settings (I tried it on a computer that only has OpenGL 1.2). Thanks in advance!



dangerdoc

Posting the error from the stack trace will help us track down the problem.

Is this what you want?



[java]SEVERE: 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:203)

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

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

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

Jan 16, 2012 5:47:19 PM com.jme3.renderer.lwjgl.LwjglRenderer cleanup[/java]

What you’ve done should work if it is in the right place so there is something you aren’t showing us or you are not running the code you think you are running.

1 Like

Yes, It ran a different code than I thought… I did the code right and tested it. Thanks for the help, pspeed! I heard that your game Mythruna was pretty good, but unfortunately it would not work on my computer, :cry:



Thanks,

dangerdoc