Error when opening jmp

hi,

I just updated jmp, and it now shows an error message when i open jmp.

this is the error message:

[java]Exception in scene!

(java.lang.IllegalStateException: Cannot render mesh without shader bound)[/java]My game also looked like it was lagging, when i still got over 600 fps. it didn’t do this before the update.



but i actually posted it here becouse i don’t know if this is a bug and if i should report it.

I guess you just have to disable the Welcome Screen plugin to solve this for now.

You can add a check for OpenGL3 (renderer.getCaps().contains(Caps.OpenGL3)).

All OGL3 cards should support the planet shader

There is a check for OpenGL 2.1 (which this shader apparently needs at least from my tests with Ruth) I guess this is something else.

@beniboy: If possible, can you please post the entire content of the log and not just the exception?

Hi, I have the same issue since the update.





It seems a compile error in the shader, looks like the first line contains some extrange character, so deleting the first line should do it:

At least happens in these two:



MatDefs/GroundFromSpace.vert compile error: 0(2) : error C0204: version directive must be first statement and may not be repeated

MatDefs/SkyFromSpace.frag compile error: 0(2) : error C0204: version directive must be first statement and may not be repeated





Cheers.





EDIT: Opening the file with an editor I don’t see any odd character but in the console it shows a square in the first line, maybe this has to do with the shader loader / compiler.

oh, we recently added automatic #vesion appending to the shader with the version defined in the j3md file.

So there must be #version110 twice in the generated shader.



@jiyarza It’s a shame you can’t see the welcome screen, you should like it :wink:

Oh, I love it :). Really, I have been enjoying it for quite some time already. This small issue just appeared yesterday when I updated to the latest nightly build.



Best.

I actually already fixed this issue for jMP, just gotta wait for an update