[SOLVED] Gltf import fails


#1

Hi everyone,
So I decided to give 3.3.0 alpha a go and this is what I got when trying to import a mixamo rig exported to gltf from blender 2.8:

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]
0:192(21): error: cannot construct `mat3' from a matrix in GLSL 1.10 (GLSL 1.20 or GLSL ES 1.00 required)
0:193(16): error: no matching function for call to `inverse(mat3)'; candidates are:

This is my OpenGL renderer details:

INFO: OpenGL Renderer Information

  • Vendor: Intel Open Source Technology Center
  • Renderer: Mesa DRI Intel® UHD Graphics 620 (Kabylake GT2)
  • OpenGL Version: 3.0 Mesa 18.2.8
  • GLSL Version: 1.30
  • Profile: Compatibility

Unfortunatelly I’m not very familiar with GLSL (on my todo list).
Any ideas?


#2

Hmmm… When I switched the rendering to the second graphics card in my laptop it doesn’t crash anymore.
OpenGL rendere detail are as follows:

INFO: OpenGL Renderer Information

  • Vendor: X.Org
  • Renderer: AMD ICELAND (DRM 3.23.0, 4.15.0-46-generic, LLVM 7.0.0)
  • OpenGL Version: 4.4 (Compatibility Profile) Mesa 18.2.8
  • GLSL Version: 4.40
  • Profile: Compatibility

I must admit I’m a little confused about the GLSL versioning… The intel driver states that it supports GLSL 1.30 and the shader requires 1.20 so that should be ok, no?


#3

Can you test with opengl core profile enabled.
You can set it in AppSettings:
settings.setRenderer(AppSettings.LWJGL_OPENGL3);


Opengl version
#4

wau… that works.
Now my renderer is this:

INFO: OpenGL Renderer Information

  • Vendor: Intel Open Source Technology Center
  • Renderer: Mesa DRI Intel® UHD Graphics 620 (Kabylake GT2)
  • OpenGL Version: 4.5 (Core Profile) Mesa 18.2.8
  • GLSL Version: 4.50
  • Profile: Core

I guess I focused too much on the game mechanics and left this part of game development go unnoticed. I will have to learn more about that.

Ehm… care to explain? :slight_smile:


#5

I myself not know much too.
From experience I know most Linux users including me who are using open source Mesa driver not works without opengl3 core profile enabled.
The above command force the rendering to not use deprecated features of opengl. I guess they are not implemented in Mesa driver.


#6

Much to learn we still have… Thanks for the help!