首页 / 浏览问题 / 三维GIS / 问题详情
3D webgl报错!
24EXP 2021年03月18日

用supermap 开源加载s3m图层报错!

1、开源地址https://github.com/SuperMap/s3m-spec

2、相关代码

let viewer = new Cesium.Viewer('cesiumContainer',{

    });

    let scene = viewer.scene;

    require(['./js/S3MTiles/S3MTilesLayer'], function(S3MTilesLayer) {

        let layer = new S3MTilesLayer({

            context : scene._context,

            url: 'http://localhost:8080/3d/route.scp'

        });

        scene.primitives.add(layer);

        layer.readyPromise.then(function() {

            debugger;

            scene.camera.setView({

                destination : new Cesium.Cartesian3(-2182469.166141913, 4386579.0994979935, 4069925.783807108),

                orientation : {

                    heading : 5.213460518239332,

                    pitch : -0.5150671720144846

                }

            });

        }).otherwise(function(error) {

            console.log(error);

        });

    })

3、报错:[Cesium WebGL] Fragment shader compile log: ERROR: 0:74: 'GL_EXT_shader_texture_lod' : extension is disabled

1个回答

您好,使用普通js试一下,不用框架
6,077EXP 2021年03月19日
我用idesktop切的缓存 s3mb,这个没影响吧
不用框架也不行。我s3mb模型是idesktio切的缓存。
...