Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt 3D Studio 2.3
-
None
Description
With runtime version 2.3 I get on boot2qt image (the same on desktop)
Jun 21 13:17:58 b2qt-intel-corei7-64 appcontroller[6660]: [WARN | default | c.t.cluster] libpng warning: iCCP: known incorrect sRGB profile Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: [WARN | default | c.t.cluster] QOpenGLShader::compile(Vertex): 0:37(9): error: syntax error, unexpected HIGHP Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: [WARN | default | c.t.cluster] *** Problematic Vertex shader source code *** Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: #line 1 Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: uniform highp mat4 mvp; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: uniform highp mat4 modelView; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: uniform highp float fontScale; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: uniform int textureWidth; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: uniform int textureHeight; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: uniform highp vec2 shadowOffset; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: attribute highp vec4 vCoord; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: attribute highp vec2 tCoord; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: attribute highp vec4 textureBounds; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: varying highp vec2 sampleCoord; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: varying highp vec2 shadowSampleCoord; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: varying highp vec2 alphas; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: varying highp vec4 normalizedTextureBounds; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float thresholdFunc(highp float scale) Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: { Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float base = 0.5; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float baseDev = 0.065; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float devScaleMin = 0.15; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float devScaleMax = 0.3; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: return base - ((clamp(scale, devScaleMin, devScaleMax) - devScaleMin) / (devScaleMax - devScaleMin) * -baseDev + baseDev); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: } Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float spreadFunc(highp float scale) Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: { Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: return 0.06 / scale; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: } Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp vec2 alphaRange(highp float scale) Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: { Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float base = thresholdFunc(scale); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float range = spreadFunc(scale); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float alphaMin = max(0.0, base - range); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float alphaMax = min(base + range, 1.0); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: return highp vec2(alphaMin, alphaMax); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: } Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float determinantOfSubmatrix(highp mat4 m, int col0, int col1, int row0, int row1) Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: { Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: return m[col0][row0] * m[col1][row1] - m[col0][row1] * m[col1][row0]; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: } Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float determinantOfSubmatrix(highp mat4 m, int col0, int col1, int col2, int row0, int row1, int row2) Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: { Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float det = m[col0][row0] * determinantOfSubmatrix(m, col1, col2, row1, row2); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: det -= m[col1][row0] * determinantOfSubmatrix(m, col0, col2, row1, row2); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: det += m[col2][row0] * determinantOfSubmatrix(m, col0, col1, row1, row2); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: return det; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: } Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float determinant(highp mat4 m) Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: { Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float det = m[0][0] * determinantOfSubmatrix(m, 1, 2, 3, 1, 2, 3); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: det -= m[1][0] * determinantOfSubmatrix(m, 0, 2, 3, 1, 2, 3); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: det += m[2][0] * determinantOfSubmatrix(m, 0, 1, 3, 1, 2, 3); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: det -= m[3][0] * determinantOfSubmatrix(m, 0, 1, 2, 1, 2, 3); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: return det; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: } Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: void main() Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: { Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp float scale = fontScale * sqrt(abs(determinant(modelView))); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: alphas = alphaRange(scale); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: highp vec2 textureSizeMultiplier = highp vec2(1.0 / highp float(textureWidth), 1.0 / highp float(textureHeight)); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: sampleCoord = tCoord * textureSizeMultiplier; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: shadowSampleCoord = (tCoord - shadowOffset) * textureSizeMultiplier; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: normalizedTextureBounds = highp vec4(textureBounds.xy * textureSizeMultiplier, Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: textureBounds.zw * textureSizeMultiplier); Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: gl_Position = mvp * vCoord; Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: } Jun 21 13:17:59 b2qt-intel-corei7-64 appcontroller[6660]: ***
with 2.1 or 2.4 everything is ok
Attachments
Issue Links
- is required for
-
AUTOSUITE-1050 Speed limit text is not shown in 3D Studio gauges on Boot2Qt NUC target
- Closed