1. SunshineSimulation

日照模拟,对3DTiles模型开启日照阴影模拟效果,可实现一天内日升日落(斗转星移)效果

1.1. new SunshineSimulation(options)

Param Type Default Description
options Object
[options.startTime] JulianDate BOSGeo.JulianDate.fromIso8601('2021-08-03T08:30:00')

(日照分析)开始时刻,时钟运行模式为无边界模式UNBOUNDED时无效

[options.stopTime] JulianDate BOSGeo.JulianDate.fromIso8601('2021-08-03T17:30:00')

(日照分析)终止时刻,时钟运行模式为无边界模式UNBOUNDED时无效

[options.multiplier] Number 360

时间流逝倍数, 最小值为0

[options.clockRange] ClockRange BOSGeo.ClockRange.LOOP_STOP

播放(时钟运行)模式(循环播放LOOP_STOP、顺序播放CLAMPED、无边界模式UNBOUNDED)

[options.softShadows] Boolean false

是否使用软阴影

[options.shadowMode] ShadowMode ShadowMode.CAST_ONLY

Cesium3DTileset的阴影模式,开启(ENABLED)/关闭(DISABLED)投射并接收阴影模式, 只投射阴影模式(CAST_ONLY),只接收阴影模式(RECEIVE_ONLY)

[options.isPlaying] Boolean false

是否播放

[options.enableLighting] Boolean false

是否开启全球光照

Example

var sunshineSimulation = new BOSGeo.SunshineSimulation({
    startTime: BOSGeo.JulianDate.fromIso8601('2021-08-03T08:30:00'),
    stopTime: BOSGeo.JulianDate.fromIso8601('2021-08-03T17:30:00'),
});
sunshineSimulation.start();

1.2. 属性

属性名 Type Default Description
clockRange ClockRange ClockRange.LOOP_STOP

播放(时钟运行)模式(循环播放LOOP_STOP、顺序播放CLAMPED、无边界模式UNBOUNDED)

isPlaying Boolean false

是否播放

layers Array.<Cesium3DTileset> `场景中所有的Cesium3DTileset`

参与日照模拟的Cesium3DTileset图层集合

multiplier Number 360

时间流逝倍数

shadowMode ShadowMode ShadowMode.CAST_ONLY

Cesium3DTileset的阴影模式,开启(ENABLED)/关闭(DISABLED)投射并接收阴影模式, 只投射阴影模式(CAST_ONLY),只接收阴影模式(RECEIVE_ONLY)

softShadows Boolean false

是否开启软阴影

startTime JulianDate BOSGeo.JulianDate.fromIso8601('2021-08-03T08:30:00')

日照模拟起始时刻,时钟运行模式为无边界模式UNBOUNDED时无效

stopTime JulianDate BOSGeo.JulianDate.fromIso8601('2021-08-03T17:30:00')

日照模拟终止时刻,时钟运行模式为无边界模式UNBOUNDED时无效

enableLighting Boolean false

是否开启全球光照

timeRatio Number

时刻进度(相较于初始时刻和终止时刻,无边界末实现,初始时刻为00:00,终止时刻为24:00),范围区间为[0, 1]

1.3. 方法

1.3.1. sunshineSimulation.destroy() ⇒ undefined

销毁

1.3.2. sunshineSimulation.start()

播放,从起始时刻开始播放

版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-02-22 17:53:54

results matching ""

    No results matching ""