Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义渲染三角面得到的渲染结果在拖拽三维球体时它所在的位置会发生变化 #8

Open
dxiuxiu opened this issue Aug 30, 2019 · 2 comments

Comments

@dxiuxiu
Copy link

dxiuxiu commented Aug 30, 2019

我实现功能的参考文章 https://mp.weixin.qq.com/s/C9lyfRx8n7Jy3gjWtE3iSw

目前根据参考文章实现了自定义三角面的渲染,但是发现在移动三维球体时绘制添加到三维球体的图形位置会发生变化,我这里有错误效果录屏没办发给你,我之前通过公众号给您发过但是属于不支持的消息类型也发不过去

@YanzheZhang
Copy link
Owner

开启地形遮挡试试: viewer.scene.globe.depthTestAgainstTerrain = true;

@dxiuxiu
Copy link
Author

dxiuxiu commented Aug 30, 2019

谢谢回复!问题解决了,开启地形遮挡后发现我添加的内容看不到了,然后检查了坐标数据的高程值,发现高程值都是 undefined ,替换带正常高程值的数据源后加载出来的就没有那种错误现象了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants