Tang Xiaofei

Results 64 issues of Tang Xiaofei

![image](https://user-images.githubusercontent.com/13550568/69401945-678bdf80-0d31-11ea-81e4-20d71babfcf3.png) --- cesiumlab是electron架构和网页确实有一些效果不一样,可以cesiumlab的页面在网页端打开,调试好了再导出 ![image](https://user-images.githubusercontent.com/13550568/69401939-60fd6800-0d31-11ea-83b9-bf4edbbfda45.png)

documentation
question

1. 打开cesiumlab,没有先安装 ![image](https://user-images.githubusercontent.com/13550568/69596431-8514be00-103d-11ea-97cd-d78a5588835b.png) 2. 浏览器中打开视景器: http://earthsdk.com/v/last/Apps/Demos/Viewer/index.html ![image](https://user-images.githubusercontent.com/13550568/69596482-aecde500-103d-11ea-8163-016fc8918044.png) 3. 添加3dtiles数据 ![image](https://user-images.githubusercontent.com/13550568/69596535-da50cf80-103d-11ea-9e4b-a2e88460f77d.png) 4. 设置style ![image](https://user-images.githubusercontent.com/13550568/69596597-12f0a900-103e-11ea-84b3-2e386e520d52.png) 5. 查看style ![image](https://user-images.githubusercontent.com/13550568/69596653-43d0de00-103e-11ea-9528-421c4978ae56.png) 6. 写代码设置style ![image](https://user-images.githubusercontent.com/13550568/69596715-809cd500-103e-11ea-935b-c175d4aadc5e.png)

documentation

再问个问题,我看拾取的例子里,都是给模型或者3dtile加eventlistener,这样加得多了会不会拖慢性能?有没有什么只用一个eventlistener来进行拾取的方法? 比如原生cesium的 handler.setInputAction(function(movement) { var pickedObject = earth.czm.viewer.scene.pick(movement.endPosition); if (Cesium.defined(pickedObject) && Cesium.defined(pickedObject.id)) { console.log(pickedObject) } 有没有类似这种的接口,但可以取到czmObject? --- @skywalkershe 直接用scene.pick就可以拾取到3dtiles的,我们内部有一个属性来标识czmObject的对象; 不过不建议这样做,earthsdk的部分元素有类似网页元素onclick属性。使用才更方便。

大家好,我想问一下这个场景保存是保存在本地的那个位置,我没有设置过保存地址点击保存不知道场景在哪里 ![image](https://user-images.githubusercontent.com/13550568/69395241-4cad7100-0d19-11ea-8241-104a6a3951d2.png) --- 保存到cesiumlab中,假如cesiumlab打开了的话,如果没打开,就不保存不了 保存后的场景在这里: ![image](https://user-images.githubusercontent.com/13550568/69395329-8da58580-0d19-11ea-85c0-fe0899cb14a9.png)

documentation
question

再问下,我试了两种加obj的方法,想问下有什么区别。 1.用XE.Obj.Type(earth, config)生成出来的东西并没有加入sceneTree var config = { "czmObject": { xbsjType: "Cylinder", // 类型不可更改! startPosition, // 起点 endPosition, // 终点 radius: 20, // 圆柱体的实际半径 fixScreenSize, // 固定的屏幕像素,如果为0的话,表示用实际尺寸,即radius;大于0时radius不起作用 maxSceneScale, // 使用固定的屏幕像素时,模型实际的最大缩放比例,如果设置为Number.POSITIVE_INFINITY表示没有限制 //...

documentation
question

http://earthsdk.com/v/last/Apps/Examples/?menu=false&url=./earth-customPrimitive-circle.html 在148行后插入 下面代码也能复现问题。 ``` let viewer = earth._viewer; let handler = new Cesium.ScreenSpaceEventHandler(viewer.canvas); handler.setInputAction(event => { var cartographic = earth.pickPosition(event.endPosition); p.position = cartographic; console.log(p.show); console.log(p.position); }, Cesium.ScreenSpaceEventType.MOUSE_MOVE); let startTime; handler.setInputAction(event...

bug

Cesium.xbsjCreateTransmitPolyline 根据 首末端点生成弧线, 参数有: startPosition, 端点1 endPosition, 端点2 minDistance, 计算出的线段的最小间隔距离 heightRatio=1.0 弧线高度抬升程度,值越大,抬高得越明显 返回值是cartesian类型的坐标数组 使用示例: ``` var positionsCollection = p.map(e => { const toDegree = 180.0 / Math.PI; const cartesians =...

documentation
question

问题:cesiumlab 2.1.0转换max模型很暗 操作过程:max导出FBX,然后使用cesiumlab中的海量模型处理工具,处理完成后加载到场景中。 效果如下: ![image](https://user-images.githubusercontent.com/13550568/69225382-3c7e8000-0bb9-11ea-9ffc-48275679ae98.png) 而在原始max中的效果 ![image](https://user-images.githubusercontent.com/13550568/69225401-4c965f80-0bb9-11ea-9e87-75631423c5a5.png) 另外转成超图的s3m效果跟max也是比较接近 ![image](https://user-images.githubusercontent.com/13550568/69225433-5cae3f00-0bb9-11ea-8d26-de81f3c87dfd.png) 问题可能原因: 1)max导出fbx设置问题 2)cesimlab工具原因 --- 你lab里设置下 材质 ![image](https://user-images.githubusercontent.com/13550568/69225668-bf9fd600-0bb9-11ea-9f55-686d05fdcace.png) ![image](https://user-images.githubusercontent.com/13550568/69225682-c6c6e400-0bb9-11ea-9261-5ac8eccaa541.png) 材质底色还是有效果的,这是什么原理呢? cesium里效果和 cesium的太阳位置有很大关系; earthsdk中可以强制修改太阳光方向。 你可以在“效果” 工具栏里 设置下强制光照看看。

documentation
question

![image](https://user-images.githubusercontent.com/13550568/69301880-a434d980-0c52-11ea-8efe-a1214880b151.png) --- new Vue的时候需要在XE.ready之后调用 ![image](https://user-images.githubusercontent.com/13550568/69301896-b0209b80-0c52-11ea-82f7-5f50e3d8593d.png)

documentation
question