zchong235 发表于 2023-3-21 21:32:24

qtdatavis3d

qt3dsu**ce demo 运行错误

Warning: Flat qualifier not supported on your platform's GLSL language. Requires at least GLSL version 1.2 with GL_EXT_gpu_shader4 extension.
Shadows are not yet supported for OpenGL ES2
EGLFS: OpenGL windows cannot be mixed with others.
Aborted



需要硬件GPU加速,但启动不起来

zchong235 发表于 2023-3-22 09:57:10

Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
QOpenGLShader::compile(Fragment): 1:2: P0003: Warning: Extension 'GL_ARB_fragment_coord_conventions' not supported
4:1: S0032: no default precision defined for variable 'FragColor'
*** Problematic Fragment shader source code ***
#version 320 es
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
out vec4 FragColor;
void main(){
FragColor = vec4(0.7f, 0.7f, 0.7f, 1.0f);
}
***
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::compile(Fragment): 1:2: P0003: Warning: Extension 'GL_ARB_fragment_coord_conventions' not supported
4:1: S0032: no default precision defined for variable 'ourColor'
*** Problematic Fragment shader source code ***
#version 320 es
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
in vec3 ourColor;
out vec4 FragColor;
void main(){
FragColor = vec4(ourColor, 1.0f);
}
***
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::compile(Fragment): 1:2: P0003: Warning: Extension 'GL_ARB_fragment_coord_conventions' not supported
4:1: S0032: no default precision defined for variable 'FragColor'
*** Problematic Fragment shader source code ***
#version 320 es
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1
out vec4 FragColor;
void main(){
FragColor = vec4(0.7f, 0.7f, 0.7f, 1.0f);
}
***
QOpenGLShader::link: Link failed because of missing fragment shader.
point_count 0
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(view): shader program is not linked
QOpenGLShaderProgram::uniformLocation(model): shader program is not linked
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
QOpenGLShader::link: Link failed because of missing fragment shader.
页: [1]
查看完整版本: qtdatavis3d