Dear All,
because I am new to this Forum, let me first thank you for providing such an amazing library!
Now for the Error:
While creating a CesiumJS based web application with municipal data, I stumble across a runtime error if I change a part of the loaded data (3DTilesets created from CityGML with FME) from LoD2 to LoD3 (including textures).
This is the error message:
RuntimeError: Fragment shader failed to compile. Compile log: ERROR: 0:111: ‘undefined’ : undeclared identifier
ERROR: 0:111: ‘texture2D’ : no matching overloaded function found
ERROR: 0:111: ‘tile_diffuse_final’ : no matching overloaded function found
ERROR: 0:111: ‘SRGBtoLINEAR4’ : no matching overloaded function found
ERROR: 0:111: ‘=’ : dimension mismatch
ERROR: 0:111: ‘=’ : cannot convert from ‘const mediump float’ to ‘highp 4-component vector of float’
Error
- at new RuntimeError (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:6788:13)*
- at createAndLinkProgram (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:103608:15)*
- at reinitialize (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:103864:19)*
- at initialize$1 (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:103857:5)*
- at ShaderProgram.get (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:103478:9)*
- at getAttributeLocations$1 (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:146129:43)*
- at http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:146331:34*
- at Function.ForEach.meshPrimitive (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:127645:31)*
- at http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:146328:15*
- at Function.ForEach.object (http://gdi3d.gelsenkirchen.de/intern/CesiumJS/Build/CesiumUnminified/Cesium.js:127455:31)*
After inspecting the code it seems the error is related to the function “createAndLinkProgramm” and the other statements are just related to this function.
Sadly, I can not provide exemplary data because at the moment it is for internals only.
Thanks in advance for your help!
EDIT: version of CesiumJS is 1.71
EDIT2: after further investigation I noticed, that some of the textures are provided as transparency enabled PNGs. Can this maybe cause the error?