Error when using gltf

I purchase a gltf model from sketchfab but when I tried to load it in the sdk it gave me this error

Uncaught exception thrown in Thread[jME3 Main,5,main]
RendererException: compile error in: ShaderSource[name=Common/MatDefs/Light/PBRLighting.frag, defines, type=Fragment, language=GLSL110]
ERROR: 0:204: GLSL 110 does not allow sub- or super-matrix constructors
ERROR: 0:205: Use of undeclared identifier 'wToLocalRot'
ERROR: 0:205: Use of undeclared identifier 'wToLocalRot'
ERROR: 0:218: Use of undeclared identifier 'wToLocalRot'
ERROR: 0:219: Use of undeclared identifier 'rayLs'
ERROR: 0:222: Use of undeclared identifier 'wToLocalRot'
ERROR: 0:226: Use of undeclared identifier 'rayLs'
ERROR: 0:227: Use of undeclared identifier 'rayLs'
ERROR: 0:228: Use of undeclared identifier 'firstPlaneIntersect'
ERROR: 0:228: Use of undeclared identifier 'secondPlaneIntersect'
ERROR: 0:229: Use of undeclared identifier 'furthestPlane'
ERROR: 0:229: Use of undeclared identifier 'furthestPlane'
ERROR: 0:229: Use of undeclared identifier 'furthestPlane'
ERROR: 0:231: Attempt to use 'distance' as a variable
ERROR: 0:232: Use of undeclared identifier 'intersectPositionWs'

This is the code I used to run it

Spatial checkpoint = assetManager.loadModel("Models/checkpoint_for_video_game/scene.gltf");e

Here is the link to the model if that helps. CheckPoint for Video Game - Buy Royalty Free 3D model by Aaron3D (@Aarontresde) [1205948] - Sketchfab Store

This is my first time using importing a model to jmonkey so I apologize for my inexperience

1 Like

Iā€™m wondering why the renderer expects GLSL 110.

Could you provide some more context for the errors? Unless you disabled logging, the startup log should tell us:

  • which version of JMonkeyEngine you are using (i.e. 3.5.2-stable)
  • which version of LWJGL you are using (i.e. 3.3.1)
  • which GLSL version you are using (i.e. 4.60 NVIDIA)
  • which OpenGL profile you are using (i.e. Compatibility)

Sorry for the late response
Version: 3.3 on the SDK(the one listed on the home page of jmonkeyengine.org)
LWJGL: 2.9.3 context running on thread jME3 Main

  • Graphics Adapter: null
  • Driver Version: null
  • Scaling Factor: 1
    GLSL: 1.20
    OpenGL: 2.1 Metal - 76.3 Profile: Compatibility