Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant compile shaders #1

Open
angelorodem opened this issue May 15, 2019 · 4 comments
Open

Cant compile shaders #1

angelorodem opened this issue May 15, 2019 · 4 comments

Comments

@angelorodem
Copy link

When i try to run the software and apply the blur i get this error

QOpenGLShader::compile(Fragment): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES

And even changing to #version 320 es i get this error

QOpenGLShader::compile(Fragment): 0:3(12): warning: extension GL_ARB_fragment_coord_conventions' unsupported in fragment shader 0:1(1): error: No precision specified in this scope for type vec4'
0:2(1): error: No precision specified in this scope for type vec4' 0:5(1): error: No precision specified in this scope for type vec2'
0:6(1): error: No precision specified in this scope for type vec2' 0:7(1): error: No precision specified in this scope for type vec2'
0:11(2): error: No precision specified in this scope for type vec2' 0:13(2): error: No precision specified in this scope for type vec4'

how did you manage to run it?

@FlightBlaze
Copy link

Make sure your graphics card supports OpenGL 3.3

@angelorodem
Copy link
Author

It sure does its a GTX 1060 with all latest drivers, it supports OpenGL 4.6.

It seems a something with QT i'm running latest version of Qt freshly downloaded from the site using its official the downloader

i also tried with MSYS2 mingw64 build with no success

@alex47
Copy link
Owner

alex47 commented Aug 28, 2019

@angelorodem could you please try again from master?

@angelorodem
Copy link
Author

angelorodem commented Aug 29, 2019

I Just tested on windows with MSYS2 Mingw64 and it worked fine!

But on Ubuntu 16 (visualized with 3D accel) i got this issue

QOpenGLShader::compile(Vertex): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

*** Problematic Vertex shader source code ***
#version 330
#define lowp
#define mediump
#define highp
#line 1
layout(location = 0) in vec3 position;

void main()
{
    gl_Position = vec4(position, 1.0);
}

***
QOpenGLShader::compile(Fragment): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

*** Problematic Fragment shader source code ***
#version 330
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#define lowp
#define mediump
#define highp
#line 1
in highp vec4 vColor;
out highp vec4 fColor;

uniform sampler2D texture;
uniform vec2 iResolution;
uniform vec2 offset;
uniform vec2 halfpixel;

void main()
{
    vec2 uv = vec2(gl_FragCoord.xy / iResolution);

    vec4 sum = texture2D(texture, uv + vec2(-halfpixel.x * 2.0, 0.0) * offset);
    sum += texture2D(texture, uv + vec2(-halfpixel.x, halfpixel.y) * offset) * 2.0;
    sum += texture2D(texture, uv + vec2(0.0, halfpixel.y * 2.0) * offset);
    sum += texture2D(texture, uv + vec2(halfpixel.x, halfpixel.y) * offset) * 2.0;
    sum += texture2D(texture, uv + vec2(halfpixel.x * 2.0, 0.0) * offset);
    sum += texture2D(texture, uv + vec2(halfpixel.x, -halfpixel.y) * offset) * 2.0;
    sum += texture2D(texture, uv + vec2(0.0, -halfpixel.y * 2.0) * offset);
    sum += texture2D(texture, uv + vec2(-halfpixel.x, -halfpixel.y) * offset) * 2.0;

    fColor = sum / 12.0;
}

***
QOpenGLShader::compile(Vertex): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

*** Problematic Vertex shader source code ***
#version 330
#define lowp
#define mediump
#define highp
#line 1
layout(location = 0) in vec3 position;

void main()
{
    gl_Position = vec4(position, 1.0);
}

***
QOpenGLShader::compile(Fragment): 0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

*** Problematic Fragment shader source code ***
#version 330
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#define lowp
#define mediump
#define highp
#line 1
in highp vec4 vColor;
out highp vec4 fColor;

uniform sampler2D texture;
uniform vec2 iResolution;
uniform vec2 offset;
uniform vec2 halfpixel;

void main()
{
    vec2 uv = vec2(gl_FragCoord.xy / iResolution);

    vec4 sum = texture2D(texture, uv) * 4.0;
    sum += texture2D(texture, uv - halfpixel.xy * offset);
    sum += texture2D(texture, uv + halfpixel.xy * offset);
    sum += texture2D(texture, uv + vec2(halfpixel.x, -halfpixel.y) * offset);
    sum += texture2D(texture, uv - vec2(halfpixel.x, -halfpixel.y) * offset);

    fColor = sum / 8.0;
}

***
QOpenGLTexture::setData() tried to set a null image
21:01:49: The program has unexpectedly finished.
21:01:49: The process was ended forcefully.
21:01:49: /home/kek/build-DualKawaseBlur-Desktop_Qt_5_12_2_GCC_64bit-Debug/DualKawaseBlur crashed

This might actually be a hardware limitation, so will test this on a properly installed linux and report back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants