QuantiCode games

Zero Ballistics, Full Metal Soccer

Skip to content

GLSL error

Post any problems related to the beta version of Zero Ballistics

Moderators: Michael, Bernhard, Christian

GLSL error

Postby enh87 on 27 Apr 2008, 00:45

hey guys i have dloaded the exe, installed it and tried to run it and i get an error saying that it needs GLSL 1.10 to run but 0.0 percent is showing, the program must terminate. any ideas??
enh87
 
Posts: 1
Joined: 27 Apr 2008, 00:43

Re: GLSL error

Postby Christian on 28 Apr 2008, 08:12

Hello!

What kind of graphics card are you using? Intel on-board chips currently are not supported because their lacking GLSL support, sorry. If you have a different 3d-card, you might have to update/install your graphics drivers.

regards
christian
Christian
Developer
 
Posts: 59
Joined: 29 Mar 2008, 17:21

Re: GLSL error

Postby zolee on 26 Jun 2008, 22:24

I'd like to add here that the linux version of the game, after it has detected that the graphics card doesn't support GLSL (intel 945. integrated :D ), gives this error and doesn't change the resolution back to normal. I know it's not a big problem (the game won't be playable anyway), but it would be nice to see this fixed.
zolee
 
Posts: 1
Joined: 26 Jun 2008, 22:17
Location: Eastern Europe

Re: GLSL error

Postby Mateusz on 22 Jul 2008, 15:37

Intel drivers support GLSL !

Post from xorg@lists.freedesktop.org

>OpenGL renderer string: Mesa DRI Intel(R) 965GM 4.1.3002
>OpenGL version string: 2.0 Mesa 7.0.4
That version (2.0) supports GLSL.

IMHO the game displays wrong errors. It also happens for me with missing GL_ARB_vertex_buffer_object
while glxinfo shows that its available.
Mateusz
 
Posts: 6
Joined: 12 Jul 2008, 07:28
Location: Warsaw,Poland

Re: GLSL error

Postby Mateusz on 22 Jul 2008, 20:30

//As uploading attachment says that any extension is not allowed I am pasting here.
//This is simple program to test Your extensions.

/**
* Compile with
* gcc test.c -o test -lglut -lGL -lGLU -lX11 -lXmu -lXi -lm -lGLEW
*/

#include <GL/glew.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>

int mainWindow;

void main(int argc, char **argv) {

glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
glutInitWindowPosition(100,100);
glutInitWindowSize(200,200);
mainWindow = glutCreateWindow("Test");

glewInit();
if (GLEW_ARB_vertex_shader &&
GLEW_ARB_fragment_shader &&
GL_ARB_vertex_buffer_object &&
GL_ARB_shading_language_100) {

char *glslVer = glGetString(GL_SHADING_LANGUAGE_VERSION);
if(strstr(glslVer,"1.10") != NULL || strstr(glslVer,"1.20") != NULL) {
printf("GLSL version is %s\n", glslVer);
printf("Supported OpenGL extensions:\n");
char *list = glGetString(GL_EXTENSIONS);
char *token;
token = strtok (list," ,.-");

while (token != NULL){
printf ("%s\n",token);
token = strtok (NULL, " ,.-");
}

} else {
printf("GLSL not 1.10 or 1.20 versions\n");
exit(1);
}

} else {
printf("GLSL not supported by mesa\n");
exit(1);
}
glutMainLoop();
}

Here it works with GL_ARB_shading_language_100, however GL_ARB_shading_language_120 does not compile with mesa 7.0.4 looks like mesa is missing this. Not sure why glxinfo shows its available.
While complained by game "missing" GL_ARB_vertex_buffer_object is present and works.
Last edited by Mateusz on 24 Jul 2008, 22:37, edited 1 time in total.
Mateusz
 
Posts: 6
Joined: 12 Jul 2008, 07:28
Location: Warsaw,Poland

Re: GLSL error

Postby Michael on 23 Jul 2008, 11:59

Hello,

your code does not seem correct to me. Could you please try something like this:

Code: Select all
...

glewInit();
if (GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader && glewGetExtension("GL_ARB_shading_language_120"))
printf("Ready for GLSL\n");
else {
printf("Not totally ready :( \n");
exit(1);
}

if (glewGetExtension("GL_ARB_vertex_buffer_object"))
printf("Vertex buffer present\n");
else {
printf("Vertex buffer missing\n");
exit(1);
}

...



kind regards,
Michael.
Michael
Developer
 
Posts: 204
Joined: 29 Mar 2008, 17:19

Re: GLSL error

Postby Mateusz on 24 Jul 2008, 22:36

The fact is that under my system GLSL 1.10 is reported by
glGetString(GL_SHADING_LANGUAGE_VERSION);
Mateusz
 
Posts: 6
Joined: 12 Jul 2008, 07:28
Location: Warsaw,Poland

Re: GLSL error

Postby Michael on 25 Jul 2008, 00:32

did u try the code snippet from above? is the vertex buffer object extension detected?

kind regards
Michael
Developer
 
Posts: 204
Joined: 29 Mar 2008, 17:19


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests