XbsjEarthUI icon indicating copy to clipboard operation
XbsjEarthUI copied to clipboard

XbsjEarthUI是基于Cesium和EarthSDK的三维GIS/BIM的UI模板,可以基于此定制自己的三维App

Results 101 XbsjEarthUI issues
Sort by recently updated
recently updated
newest added

请问下,请问earthsdk的path怎么去掉自动做的圆滑轨迹啊? 比如里我就定了4个点,希望可以按连接四点的直线轨迹运行,试过了改slice,但改完转折点的位置不对,还请哪位帮忙看下。多谢了 改slice只会改显示出来的path轨迹,但实际的运行轨迹不变。希望运行轨迹是几点间没有圆滑过的直线,不知哪位可以帮忙看下,多谢了。 另外,如果加载的gltf模型本身带动画,请问怎样能开启动画效果呢?原生cesium我看是在生成viewer时传入shouldAnimate : true的参数,但在earthsdk没有效果。 --- earthsdk中的path的生成有一个技巧: ![image](https://user-images.githubusercontent.com/13550568/68816282-ebeabc80-06b8-11ea-869b-5bcc763845c1.png) earthsdk中的path不受cesium的shouldAnimate影响,不受cesium中的time影响; 这是有意为之。目的是为了开发时可以任意时间进行任意路径操作。 对啊,每个path可以自驱动,通过playing=true,并需要适当修改一个currentSpeed。 也可以手动控制,通过currentD属性来确定运行到哪一个位置,currentD表示从起点到目标点的长度,可以通过p.length来查看路径总长。 ![image](https://user-images.githubusercontent.com/13550568/68816695-2a34ab80-06ba-11ea-82eb-8fcadeb24946.png) 路径相关的示例代码: ![image](https://user-images.githubusercontent.com/13550568/68816757-551eff80-06ba-11ea-96ed-770328f8553f.png)

documentation
question

camera.positionWC和camera.position有啥区别 ![image](https://user-images.githubusercontent.com/13550568/68755283-35002980-0643-11ea-8ede-d6db4eb5b1b1.png) --- positionWC是世界坐标 position是本地坐标系的坐标 camera.positionWC = camera.transform * camera.position 当transform为单位矩阵是,二者相等

documentation
question

请问有人知道怎么剪裁凹多边形的地形吗(clippingPlanes) ![image](https://user-images.githubusercontent.com/13550568/68737441-67e3f680-061e-11ea-8c69-404017fec94e.png) cesium有限制裁切不了,earthsdk做了扩展可以裁切 ![image](https://user-images.githubusercontent.com/13550568/68737468-7d592080-061e-11ea-8566-d958a09ce264.png) http://earthsdk.com/v/last/Apps/Examples/earth-restrict.html ![image](https://user-images.githubusercontent.com/13550568/68737567-ca3cf700-061e-11ea-8677-0a0408102f57.png)

documentation
question

![image](https://user-images.githubusercontent.com/13550568/68729351-b2587980-0604-11ea-98e4-89cb13920880.png)

documentation
question

想问个问题:可否在用XE.earth生成viewer时传入Cesium.viewer的参数呢?有些参数比如shouldAnimate,homeButton一类在viewer生成后无法或不方便设置。 可以设置的,效果如下: ![image](https://user-images.githubusercontent.com/13550568/68721804-9cd85500-05ee-11ea-81dc-fa7b2cc1fe0b.png) 代码在这里: ``` // earth = new XE.Earth('earthContainer'); earth = new XE.Earth('earthContainer', { // 这里设置Viewer的配置,和new Viewer(container, options)中的options一致 homeButton: true, timeline: true, }); ```

documentation
question

![image](https://user-images.githubusercontent.com/13550568/68663855-51845f00-057a-11ea-8c4e-b6659ae6ac24.png) 有没有哪位知道除了第一个参数,其它三个参数分别是什么参数? 材质底色 相当于修改模型本身的颜色 散射强度 则修改的是散射光线的照射强度 镜面强度 同上, 如果不太理解 散射强度 和 镜面强度,可能得看下图形学的书籍。。

documentation
question

![image](https://user-images.githubusercontent.com/13550568/68556472-658e6a80-046d-11ea-8575-65ee53f1e9e6.png) cesium没有框选,earthsdk有一个扩展的方法,叫xbsjBoxPick,可以获取指定范围内的对象。 参数pos1和pos2, 窗口坐标,形式 {x: 123, y: 456} 返回值是结果 这个函数还没有对外开放,api文档中找不到,也没有示例,只能您自行试试了 ![image](https://user-images.githubusercontent.com/13550568/68556502-835bcf80-046d-11ea-9e49-25d2cdd33883.png) xbsjBoxPickMixinh函数,在加载时调用; 需要框选的地方调用 xbsjBoxPick方法。

documentation
question

toAllJSONStr() 这个方法会打印y一个对象的所有属性信息,并且本身就是JSON格式配置信息,方便存储和配置。 ![image](https://user-images.githubusercontent.com/13550568/68520719-08f84780-02d5-11ea-8fe5-02957a556ac3.png)

documentation
question

奋斗的小鸟 @vtxf ![image](https://user-images.githubusercontent.com/13550568/68120575-b3bcde80-ff40-11e9-955a-3b62829b211a.png) 请问一下,我想设置这个参数,是不是没法设置啊 奋斗的小鸟 2019/11/4 18:13:29 没这个属性,导出图片没法导出 vtxf 2019/11/4 18:14:31 可以设置, 不过,earthsdk中有现成的导出图片的接口 18:15:27 奋斗的小鸟 2019/11/4 18:15:27 好的,demo中有的吗?好像没找到 vtxf 2019/11/4 18:16:48 还没有示例。。 18:17:05 vtxf 2019/11/4 18:17:05 var img; earth.capture(128, 128).then(image...

documentation
question

![image](https://user-images.githubusercontent.com/13550568/68010227-025b4600-fcbf-11e9-8382-de69bbf0a2d4.png) 如果CesiumLab开启以后,会保存到CesiumLab的场景服务中 ![image](https://user-images.githubusercontent.com/13550568/68010242-0edf9e80-fcbf-11e9-9ee8-1310304f317e.png) 点击保存按钮以后,可以在这里看到结果

documentation
question