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

tileset 带地形之后怎么贴地 #82

Open
zhengbaofeng opened this issue Jul 10, 2020 · 1 comment
Open

tileset 带地形之后怎么贴地 #82

zhengbaofeng opened this issue Jul 10, 2020 · 1 comment

Comments

@zhengbaofeng
Copy link

{ ref: 'tileset', czmObject: { xbsjType: 'Tileset', xbsjGuid: '094b1984-4aae-4ac3-bb35-86d84e6a8204', name: '模型', url: '/public/model/tileset.json', xbsjStyle: 'var style = {\n color: "vec4(0, 0.5, 1.0,1)"\n}', xbsjClippingPlanes: {}, xbsjCustomShader: { fsBody: fsBody } } }
开启地形后在哪里配置贴地属性啊

@lforrrrawx
Copy link
Contributor

lforrrrawx commented Jul 10, 2020

3dtiles没有贴地,可以通过旋转平移把模型放到地面上
{
"czmObject": {
"xbsjType": "Tileset",
"xbsjGuid": "781814e1-5170-4adb-8f60-c66170a12919",
"name": "BIM测试",
"url": "https://lab.earthsdk.com/model/d16c1ce0ac2d11e99dbd8fd044883638/tileset.json",
"xbsjPosition": [
2.03093328369447,
0.7130623842181079,
9.831644570475259
],

"xbsjUseOriginTransform": false,
"xbsjClippingPlanes": {},
"xbsjCustomShader": {}
}
}

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