Skip to content

模型放大后全部变成白色,以及同坐标系模型偏移问题 #112

@miyuesc

Description

@miyuesc

使用非编译代码包集成 cesium 之后出现这种情况:

远距离视图:

Image

近距离视图:

Image

使用的代码为 :https://github.com/SuperMap/s3m-spec/tree/master/S3M_SDK/S3M_JS/S3M_module

cesium 版本:1.134.1

部分模型加载代码:

    const scene = this.viewer!.scene

    const modelLayer = new S3MTilesLayer({
      context: (scene as any)._context,
      url,
    })

    const modelPrimitive = scene.primitives.add(modelLayer)

其中 url 是部署在资源服务器中的 scp 文件地址。

这种方式可以正常加载模型和显示,但是放大后即会出现问题。

该模型文件在桌面端绑定的坐标系是高德地图坐标系,同时 cesium 中加载的也是高德的瓦片地图,但是模型加载后会出现一定的偏移。例如:

Image

目前这个问题对我们的开发进度影响较大,盼回复!

感谢~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions