AMD card (Radeon HD 6970) - Shader compile error 1

Issue #8 on hold
Former user created an issue
WARNING 17:47:02:150 Editor: RendererException : compile error in: ShaderSource[name=Common/MatDefs/Light/Deferred.frag, defines, type=Fragment, language=GLSL100]
Fragment shader failed to compile with the following errors:
ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context
ERROR: error(#273) 1 compilation errors.  No code generated

WARNING 17:49:59:894 Editor: RendererException : compile error in: ShaderSource[name=Common/MatDefs/Light/PBRLighting.frag, defines, type=Fragment, language=GLSL110]
Fragment shader failed to compile with the following errors:
ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context
ERROR: error(#273) 1 compilation errors.  No code generated

Comments (17)

  1. Héctor Priori

    Added more errors:

    WARNING 17:56:23:480 Editor: RendererException : compile error in: ShaderSource[name=Common/MatDefs/Shadow/BasicPostShadow.frag, defines, type=Fragment, language=GLSL100]
    Fragment shader failed to compile with the following errors:
    ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context
    ERROR: error(#273) 1 compilation errors.  No code generated
    
    WARNING 17:58:41:203 Editor: RendererException : compile error in: ShaderSource[name=Common/MatDefs/Shadow/PostShadowFilter15.frag, defines, type=Fragment, language=GLSL150]
    Fragment shader failed to compile with the following errors:
    ERROR: 0:159: error(#143) Undeclared identifier: SHADOWMAP_SIZE
    ERROR: 0:159: error(#206) Assigning non-constant to: const highp 2-component vector of vec2
    ERROR: 0:238: error(#143) Undeclared identifier: KERNEL
    ERROR: 0:239: error(#143) Undeclared identifier: PCFEDGE
    ERROR: 0:276: error(#143) Undeclared identifier: PCFEDGE
    ERROR: 0:348: error(#143) Undeclared identifier: GETSHADOW
    ERROR: 0:348: error(#202) No matching overloaded function found: GETSHADOW
    ERROR: error(#273) 7 compilation errors.  No code generated
    
  2. Aliaksandr Brui repo owner

    Do you use the Common/MatDefs/Light/Deferred.frag and Common/MatDefs/Light/PBRLighting.frag in your custom material definition?

  3. Aliaksandr Brui repo owner

    How does it happen? I thought that it happens when you try to open your models...

  4. Aliaksandr Brui repo owner

    Also, can you recheck how the editor works with the java argument -Djfx.background.render=LWJGL-OpenGL2 ?

  5. Héctor Priori

    In the editor I create a new material selecting PBRLighting.j3md material type. Clic ok.The new material file is created. Double clic to open this file and I get the error (editor close)

    ot sure how to run editor using the jaa argument from your previous commnet. I opened a cmd window and typed: java -jar jme3-spaceshift-editor.jar -Djfx.background.render=LWJGL-OpenGL2

    Same shader compilation error.

  6. Aliaksandr Brui repo owner

    Can you recheck these problems on the 0.8.5 version without the argument? I have made a new release.

  7. Héctor Priori

    Rechecked on 9.0

    WARNING 23:07:22:833 Editor: com.jme3.renderer.RendererException: compile error in: ShaderSource[name=Common/MatDefs/Light/Deferred.frag, defines, type=Fragment, language=GLSL100]
    Fragment shader failed to compile with the following errors:
    ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context
    ERROR: error(#273) 1 compilation errors.  No code generated
    

    and

    WARNING 23:04:04:212 Editor: com.jme3.renderer.RendererException: compile error in: ShaderSource[name=Common/MatDefs/Light/PBRLighting.frag, defines, type=Fragment, language=GLSL100]
    Fragment shader failed to compile with the following errors:
    WARNING: 0:7: warning(#62) enable/warn/disable extension is not found. Extension "GL_NV_shadow_samplers_cube" is not supported
    ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context
    ERROR: error(#273) 1 compilation errors.  No code generated
    

    another one

    WARNING 23:13:11:829 Editor: com.jme3.renderer.RendererException: compile error in: ShaderSource[name=tonegod/gui/shaders/Unshaded.frag, defines, type=Fragment, language=GLSL100]
    Fragment shader failed to compile with the following errors:
    ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context
    ERROR: error(#273) 1 compilation errors.  No code generated
    

    last on for today's testing

    WARNING 23:14:05:917 Editor: com.jme3.renderer.RendererException: compile error in: ShaderSource[name=tonegod/gui/shaders/Particle.frag, defines, type=Fragment, language=GLSL120]
    Fragment shader failed to compile with the following errors:
    ERROR: 0:11: error(#143) Undeclared identifier: m_Texture
    ERROR: 0:11: error(#143) Undeclared identifier: texCoord
    ERROR: 0:11: error(#216) Vector field selection out of range "xy"
    ERROR: 0:11: error(#202) No matching overloaded function found: texture2D
    ERROR: 0:11: error(#160) Cannot convert from: "const float" to: "highp 4-component vector of vec4"
    ERROR: error(#273) 5 compilation errors.  No code generated
    
  8. Héctor Priori

    Rechecked. Some errors still:

    WARNING 22:28:09:447 Editor: com.jme3.renderer.RendererException: compile error in: ShaderSource[name=Common/MatDefs/Misc/Unshaded.frag, defines, type=Fragment, language=GLSL100]
    Fragment shader failed to compile with the following errors:
    ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context
    ERROR: error(#273) 1 compilation errors.  No code generated
    
    WARNING 22:29:15:039 Editor: com.jme3.renderer.RendererException: compile error in: ShaderSource[name=Common/MatDefs/Shadow/PostShadow.frag, defines, type=Fragment, language=GLSL150]
    Fragment shader failed to compile with the following errors:
    ERROR: 0:127: error(#143) Undeclared identifier: SHADOWMAP_SIZE
    ERROR: 0:206: error(#143) Undeclared identifier: KERNEL
    ERROR: 0:207: error(#143) Undeclared identifier: PCFEDGE
    ERROR: 0:244: error(#143) Undeclared identifier: PCFEDGE
    ERROR: 0:316: error(#143) Undeclared identifier: GETSHADOW
    ERROR: 0:316: error(#202) No matching overloaded function found: GETSHADOW
    ERROR: error(#273) 6 compilation errors.  No code generated
    
    WARNING 22:29:49:673 Editor: com.jme3.renderer.RendererException: compile error in: ShaderSource[name=Common/MatDefs/Shadow/PostShadowFilter15.frag, defines, type=Fragment, language=GLSL150]
    Fragment shader failed to compile with the following errors:
    ERROR: 0:239: error(#143) Undeclared identifier: KERNEL
    ERROR: 0:240: error(#143) Undeclared identifier: PCFEDGE
    ERROR: 0:277: error(#143) Undeclared identifier: PCFEDGE
    ERROR: 0:349: error(#143) Undeclared identifier: GETSHADOW
    ERROR: 0:349: error(#202) No matching overloaded function found: GETSHADOW
    ERROR: error(#273) 5 compilation errors.  No code generated
    
  9. Log in to comment