Qt3D: 'texture2D' : no matching overloaded function found. Materials C++ Example crashes on startup. Qt 5.10 beta1-beta4



  • Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load
    Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load
    Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load
    Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load
    Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load
    Qt3D.Renderer.Jobs: virtual Qt3DRender::QGeometry* Qt3DRender::MeshLoaderFunctor::operator()() Mesh is empty, nothing to load
    QOpenGLShader::compile(Fragment): ERROR: 3:22: 'function' : is removed in Forward Compatible context texture2D
    ERROR: 3:22: 'texture2D' : no matching overloaded function found (using implicit conversion)
    ERROR: 3:22: 'texture2D' : function is not known
    ERROR: 3:21: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'
    ERROR: 3:37: 'function' : is removed in Forward Compatible context texture2D
    ERROR: 3:37: 'texture2D' : no matching overloaded function found (using implicit conversion)
    ERROR: 3:37: 'texture2D' : function is not known
    ERROR: 3:36: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'
    ERROR: 3:38: 'function' : is removed in Forward Compatible context texture2D
    ERROR: 3:38: 'texture2D' : no matching overloaded function found (using implicit conversion)
    ERROR: 3:38: 'texture2D' : function is not known
    ERROR: 3:37: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

    Problematic Fragment shader source code ***
    #version 140
    #define lowp
    #define mediump
    #define highp
    #line 1

    in vec3 worldPosition;
    uniform vec3 eyePosition;
    in vec3 worldNormal;
    in vec4 worldTangent;
    in vec2 texCoord;
    uniform vec4 ka;
    uniform sampler2D diffuseTexture;
    uniform sampler2D specularTexture;
    uniform float shininess;
    /****************************************************************************
    **
    Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
    Contact: https://www.qt.io/licensing/
    **
    This file is part of the Qt3D module of the Qt Toolkit.
    **
    $QT_BEGIN_LICENSE:BSD$
    Commercial License Usage
    Licensees holding valid commercial Qt licenses may use this file in
    accordance with the commercial license agreement provided with the
    Software or, alternatively, in accordance with the terms contained in
    a written agreement between you and The Qt Company. For licensing terms
    and conditions see https://www.qt.io/terms-conditions. For further
    information use the contact ‘.\è|
    QOpenGLShader::compile(Fragment): ERROR: 3:24: 'function' : is removed in Forward Compatible context texture2D
    ERROR: 3:24: 'texture2D' : no matching overloaded function found (using implicit conversion)
    ERROR: 3:24: 'texture2D' : function is not known
    ERROR: 3:23: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

    Problematic Fragment shader source code ***
    #version 140
    #define lowp
    #define mediump
    #define highp
    #line 1

    in vec3 worldPosition;
    uniform vec3 eyePosition;
    in vec3 worldNormal;
    in vec2 texCoord;
    uniform vec4 ka;
    uniform sampler2D diffuseTexture;
    uniform vec4 ks;
    uniform float shininess;
    /****************************************************************************
    **
    Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
    Contact: https://www.qt.io/licensing/
    **
    This file is part of the Qt3D module of the Qt Toolkit.
    **
    $QT_BEGIN_LICENSE:BSD$
    Commercial License Usage
    Licensees holding valid commercial Qt licenses may use this file in
    accordance with the commercial license agreement provided with the
    Software or, alternatively, in accordance with the terms contained in
    a written agreement between you and The Qt Company. For licensing terms
    and conditions see https://www.qt.io/terms-conditions. For further
    information use the contact form at https://www.qt.io/contact-us.
    **‘.\è|
    QOpenGLShader::compile(Fragment): ERROR: 3:22: 'function' : is removed in Forward Compatible context texture2D
    ERROR: 3:22: 'texture2D' : no matching overloaded function found (using implicit conversion)
    ERROR: 3:22: 'texture2D' : function is not known
    ERROR: 3:21: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'
    ERROR: 3:37: 'function' : is removed in Forward Compatible context texture2D
    ERROR: 3:37: 'texture2D' : no matching overloaded function found (using implicit conversion)
    ERROR: 3:37: 'texture2D' : function is not known
    ERROR: 3:36: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'
    ERROR: 3:38: 'function' : is removed in Forward Compatible context texture2D
    ERROR: 3:38: 'texture2D' : no matching overloaded function found (using implicit conversion)
    ERROR: 3:38: 'texture2D' : function is not known
    ERROR: 3:37: '=' : cannot convert from 'const highp float' to '4-component vector of highp float'

    Problematic Fragment shader source code ***
    #version 140
    #define lowp
    #define mediump
    #define highp
    #line 1

    in vec3 worldPosition;
    uniform vec3 eyePosition;
    in vec3 worldNormal;
    in vec4 worldTangent;
    in vec2 texCoord;
    uniform vec4 ka;
    uniform sampler2D diffuseTexture;
    uniform sampler2D specularTexture;
    uniform float shininess;
    /****************************************************************************
    **
    Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
    Contact: https://www.qt.io/licensing/
    **
    This file is part of the Qt3D module of the Qt Toolkit.
    **
    $QT_BEGIN_LICENSE:BSD$
    Commercial License Usage
    Licensees holding valid commercial Qt licenses may use this file in
    accordance with the commercial license agreement provided with the
    Software or, alternatively, in accordance with the terms contained in
    a written agreement between you and The Qt Company. For licensing terms
    and conditions see https://www.qt.io/terms-conditions. For further
    information use the contact ‘.\è|
    ASSERT: "!m_programHash.contains(dna)" in file materialsystem\shadercache.cpp, line 87
    Invalid parameter passed to C runtime function.
    Invalid parameter passed to C runtime function.



  • Может подсказать если кто сталкивался с данной проблемой


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.