You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/01/13 03:50:55 UTC

[echarts-examples] 01/02: Add atmosphere example

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git

commit 378cdb22fe2abacf752894962be4e36426de86e0
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Jan 13 11:42:05 2021 +0800

    Add atmosphere  example
---
 public/data-gl/bar3d-dataset.js                    |  1 -
 public/data-gl/bar3d-music-visualization.js        |  1 -
 public/data-gl/bar3d-punch-card.js                 |  1 -
 public/data-gl/bar3d-voxelize-image.js             |  1 -
 public/data-gl/global-population-bar3d-on-globe.js |  1 -
 .../{globe-layers.js => globe-atmosphere.js}       | 24 ++++++++--------------
 public/data-gl/globe-displacement.js               |  1 -
 public/data-gl/globe-layers.js                     |  1 -
 public/data-gl/globe-moon.js                       |  1 -
 public/data-gl/image-surface-sushuang.js           |  1 -
 public/data-gl/image-to-bar3d.js                   |  1 -
 public/data-gl/iron-globe.js                       |  1 -
 public/data-gl/line3d-orthographic.js              |  1 -
 public/data-gl/lines3d-airline-on-globe.js         |  1 -
 public/data-gl/lines3d-flights.js                  |  1 -
 public/data-gl/map3d-buildings.js                  |  1 -
 public/data-gl/map3d-wood-city.js                  |  1 -
 public/data-gl/metal-surface.js                    |  1 -
 public/data-gl/parametric-surface-rose.js          |  1 -
 public/data-gl/scatter3D-dataset.js                |  1 -
 public/data-gl/scatter3d-globe-population.js       |  1 -
 public/data-gl/scatter3d-scatter.js                |  1 -
 public/data-gl/scatter3d.js                        |  1 -
 public/data-gl/simple-surface.js                   |  1 -
 public/data-gl/sphere-parametric-surface.js        |  1 -
 public/data-gl/surface-golden-rose.js              |  1 -
 public/data-gl/surface-leather.js                  |  1 -
 public/data-gl/surface-mollusc-shell.js            |  1 -
 public/data-gl/surface-theme-roses.js              |  1 -
 public/data-gl/surface-wave.js                     |  1 -
 public/data-gl/transparent-bar3d.js                |  1 -
 31 files changed, 8 insertions(+), 46 deletions(-)

diff --git a/public/data-gl/bar3d-dataset.js b/public/data-gl/bar3d-dataset.js
index c975213..e37a4a3 100644
--- a/public/data-gl/bar3d-dataset.js
+++ b/public/data-gl/bar3d-dataset.js
@@ -2,7 +2,6 @@
 title: 3D Bar with Dataset
 category: bar3D
 titleCN: 使用 dataset 为三维柱状图设置数据
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 $.get(ROOT_PATH + '/data/asset/data/life-expectancy-table.json', function (data) {
diff --git a/public/data-gl/bar3d-music-visualization.js b/public/data-gl/bar3d-music-visualization.js
index 711c70c..17c1548 100644
--- a/public/data-gl/bar3d-music-visualization.js
+++ b/public/data-gl/bar3d-music-visualization.js
@@ -2,7 +2,6 @@
 title: Music Visualization
 category: bar3D
 titleCN: Music Visualization
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 var UPDATE_DURATION = 100;
diff --git a/public/data-gl/bar3d-punch-card.js b/public/data-gl/bar3d-punch-card.js
index e2f55a8..c9b37af 100644
--- a/public/data-gl/bar3d-punch-card.js
+++ b/public/data-gl/bar3d-punch-card.js
@@ -2,7 +2,6 @@
 title: Bar3D - Punch Card
 category: bar3D
 titleCN: Bar3D - Punch Card
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/bar3d-voxelize-image.js b/public/data-gl/bar3d-voxelize-image.js
index b2654bb..611425d 100644
--- a/public/data-gl/bar3d-voxelize-image.js
+++ b/public/data-gl/bar3d-voxelize-image.js
@@ -2,7 +2,6 @@
 title: Voxelize image
 category: bar3D
 titleCN: Voxelize image
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 var canvas = document.createElement('canvas');
diff --git a/public/data-gl/global-population-bar3d-on-globe.js b/public/data-gl/global-population-bar3d-on-globe.js
index 4ffb812..305a94f 100644
--- a/public/data-gl/global-population-bar3d-on-globe.js
+++ b/public/data-gl/global-population-bar3d-on-globe.js
@@ -2,7 +2,6 @@
 title: Global Population - Bar3D on Globe
 category: bar3D
 titleCN: Global Population - Bar3D on Globe
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 $.getJSON(ROOT_PATH + "/data-gl/asset/data/population.json", function (data) {
diff --git a/public/data-gl/globe-layers.js b/public/data-gl/globe-atmosphere.js
similarity index 54%
copy from public/data-gl/globe-layers.js
copy to public/data-gl/globe-atmosphere.js
index 4850ee6..16ec6ce 100644
--- a/public/data-gl/globe-layers.js
+++ b/public/data-gl/globe-atmosphere.js
@@ -1,8 +1,7 @@
 /*
-title: Globe Layers
+title: Globe with Atmosphere
 category: globe
-titleCN: Globe Layers
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
+titleCN: 大气层显示
 */
 
 option = {
@@ -17,6 +16,10 @@ option = {
 
         environment: ROOT_PATH + '/data-gl/asset/starfield.jpg',
 
+        atmosphere: {
+            show: true
+        },
+
         light: {
             ambient: {
                 intensity: 0.1
@@ -24,18 +27,7 @@ option = {
             main: {
                 intensity: 1.5
             }
-        },
-
-        layers: [{
-            type: 'blend',
-            blendTo: 'emission',
-            texture: ROOT_PATH + '/data-gl/asset/night.jpg'
-        }, {
-            type: 'overlay',
-            texture: ROOT_PATH + '/data-gl/asset/clouds.png',
-            shading: 'lambert',
-            distance: 5
-        }]
+        }
     },
     series: []
-}
\ No newline at end of file
+};
\ No newline at end of file
diff --git a/public/data-gl/globe-displacement.js b/public/data-gl/globe-displacement.js
index bacb9e8..06b2125 100644
--- a/public/data-gl/globe-displacement.js
+++ b/public/data-gl/globe-displacement.js
@@ -2,7 +2,6 @@
 title: Globe Displacement
 category: globe
 titleCN: Globe Displacement
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 option = {
diff --git a/public/data-gl/globe-layers.js b/public/data-gl/globe-layers.js
index 4850ee6..6ec140d 100644
--- a/public/data-gl/globe-layers.js
+++ b/public/data-gl/globe-layers.js
@@ -2,7 +2,6 @@
 title: Globe Layers
 category: globe
 titleCN: Globe Layers
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 option = {
diff --git a/public/data-gl/globe-moon.js b/public/data-gl/globe-moon.js
index b1ac8c9..5fa9158 100644
--- a/public/data-gl/globe-moon.js
+++ b/public/data-gl/globe-moon.js
@@ -2,7 +2,6 @@
 title: Moon
 category: globe
 titleCN: Moon
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 option = {
diff --git a/public/data-gl/image-surface-sushuang.js b/public/data-gl/image-surface-sushuang.js
index 2af81d9..4faf6ad 100644
--- a/public/data-gl/image-surface-sushuang.js
+++ b/public/data-gl/image-surface-sushuang.js
@@ -2,7 +2,6 @@
 title: Image Surface Sushuang
 category: surface
 titleCN: Image Surface Sushuang
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 var img = new Image();
diff --git a/public/data-gl/image-to-bar3d.js b/public/data-gl/image-to-bar3d.js
index 210923a..8db304e 100644
--- a/public/data-gl/image-to-bar3d.js
+++ b/public/data-gl/image-to-bar3d.js
@@ -2,7 +2,6 @@
 title: Image to Bar3D
 category: bar3D
 titleCN: Image to Bar3D
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 var img = new Image();
diff --git a/public/data-gl/iron-globe.js b/public/data-gl/iron-globe.js
index c6bcf84..9764e57 100644
--- a/public/data-gl/iron-globe.js
+++ b/public/data-gl/iron-globe.js
@@ -2,7 +2,6 @@
 title: Iron globe
 category: globe
 titleCN: Iron globe
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/line3d-orthographic.js b/public/data-gl/line3d-orthographic.js
index d14ba0b..b70b68b 100644
--- a/public/data-gl/line3d-orthographic.js
+++ b/public/data-gl/line3d-orthographic.js
@@ -2,7 +2,6 @@
 title: 三维折线图正交投影
 category: line3D
 titleCN: 三维折线图正交投影
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 var data = [];
diff --git a/public/data-gl/lines3d-airline-on-globe.js b/public/data-gl/lines3d-airline-on-globe.js
index f4b923c..ef04a53 100644
--- a/public/data-gl/lines3d-airline-on-globe.js
+++ b/public/data-gl/lines3d-airline-on-globe.js
@@ -2,7 +2,6 @@
 title: Airline on Globe
 category: lines3D
 titleCN: Airline on Globe
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 $.getJSON(ROOT_PATH + '/data-gl/asset/data/flights.json', function(data) {
diff --git a/public/data-gl/lines3d-flights.js b/public/data-gl/lines3d-flights.js
index 3afbbf2..e6eb33f 100644
--- a/public/data-gl/lines3d-flights.js
+++ b/public/data-gl/lines3d-flights.js
@@ -2,7 +2,6 @@
 title: Flights
 category: lines3D
 titleCN: Flights
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/map3d-buildings.js b/public/data-gl/map3d-buildings.js
index ca3c407..54b74dd 100644
--- a/public/data-gl/map3d-buildings.js
+++ b/public/data-gl/map3d-buildings.js
@@ -2,7 +2,6 @@
 title: Buildings
 category: map3D
 titleCN: Buildings
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/map3d-wood-city.js b/public/data-gl/map3d-wood-city.js
index 2227778..6b89e7f 100644
--- a/public/data-gl/map3d-wood-city.js
+++ b/public/data-gl/map3d-wood-city.js
@@ -2,7 +2,6 @@
 title: Wood City
 category: map3D
 titleCN: Wood City
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/metal-surface.js b/public/data-gl/metal-surface.js
index c163741..6ebcd9c 100644
--- a/public/data-gl/metal-surface.js
+++ b/public/data-gl/metal-surface.js
@@ -2,7 +2,6 @@
 title: Metal Surface
 category: surface
 titleCN: Metal Surface
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/parametric-surface-rose.js b/public/data-gl/parametric-surface-rose.js
index af775f5..8b71738 100644
--- a/public/data-gl/parametric-surface-rose.js
+++ b/public/data-gl/parametric-surface-rose.js
@@ -2,7 +2,6 @@
 title: Parametric Surface Rose
 category: surface
 titleCN: Parametric Surface Rose
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/scatter3D-dataset.js b/public/data-gl/scatter3D-dataset.js
index bda618c..d15364e 100644
--- a/public/data-gl/scatter3D-dataset.js
+++ b/public/data-gl/scatter3D-dataset.js
@@ -2,7 +2,6 @@
 title: 3D Scatter with Dataset
 category: scatter3D
 titleCN: 使用 dataset 为三维散点图设置数据
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 $.get(ROOT_PATH + '/data/asset/data/life-expectancy-table.json', function (data) {
diff --git a/public/data-gl/scatter3d-globe-population.js b/public/data-gl/scatter3d-globe-population.js
index 03b71b9..189d244 100644
--- a/public/data-gl/scatter3d-globe-population.js
+++ b/public/data-gl/scatter3d-globe-population.js
@@ -2,7 +2,6 @@
 title: Scatter3D - Globe Population
 category: scatter3D
 titleCN: Scatter3D - Globe Population
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/scatter3d-scatter.js b/public/data-gl/scatter3d-scatter.js
index b16be1c..b1ee000 100644
--- a/public/data-gl/scatter3d-scatter.js
+++ b/public/data-gl/scatter3d-scatter.js
@@ -2,7 +2,6 @@
 title: 3D Scatter with Scatter Matrix
 category: scatter3D
 titleCN: 三维散点图和散点矩阵结合使用
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 $.get(ROOT_PATH + '/data/asset/data/life-expectancy-table.json', function (data) {
diff --git a/public/data-gl/scatter3d.js b/public/data-gl/scatter3d.js
index e138cdc..a3235f8 100644
--- a/public/data-gl/scatter3d.js
+++ b/public/data-gl/scatter3d.js
@@ -3,7 +3,6 @@ title: Scatter3D
 category: scatter3D
 theme: dark
 titleCN: Scatter3D
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/simple-surface.js b/public/data-gl/simple-surface.js
index c262665..4b16ebd 100644
--- a/public/data-gl/simple-surface.js
+++ b/public/data-gl/simple-surface.js
@@ -2,7 +2,6 @@
 title: Simple Surface
 category: surface
 titleCN: Simple Surface
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 option = {
diff --git a/public/data-gl/sphere-parametric-surface.js b/public/data-gl/sphere-parametric-surface.js
index ab25a2b..507a4bf 100644
--- a/public/data-gl/sphere-parametric-surface.js
+++ b/public/data-gl/sphere-parametric-surface.js
@@ -2,7 +2,6 @@
 title: Sphere Parametric Surface
 category: surface
 titleCN: Sphere Parametric Surface
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 option = {
diff --git a/public/data-gl/surface-golden-rose.js b/public/data-gl/surface-golden-rose.js
index 7fcdec8..eb61325 100644
--- a/public/data-gl/surface-golden-rose.js
+++ b/public/data-gl/surface-golden-rose.js
@@ -2,7 +2,6 @@
 title: Golden Rose
 category: surface
 titleCN: Golden Rose
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/surface-leather.js b/public/data-gl/surface-leather.js
index 903f428..83c6801 100644
--- a/public/data-gl/surface-leather.js
+++ b/public/data-gl/surface-leather.js
@@ -2,7 +2,6 @@
 title: 皮革材质
 category: surface
 titleCN: 皮革材质
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 var TILING = [4, 2];
diff --git a/public/data-gl/surface-mollusc-shell.js b/public/data-gl/surface-mollusc-shell.js
index 18e4967..7745288 100644
--- a/public/data-gl/surface-mollusc-shell.js
+++ b/public/data-gl/surface-mollusc-shell.js
@@ -2,7 +2,6 @@
 title: Mollusc Shell
 category: surface
 titleCN: Mollusc Shell
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 option = {
diff --git a/public/data-gl/surface-theme-roses.js b/public/data-gl/surface-theme-roses.js
index c6e9d5f..376b7cf 100644
--- a/public/data-gl/surface-theme-roses.js
+++ b/public/data-gl/surface-theme-roses.js
@@ -2,7 +2,6 @@
 title: Theme Roses
 category: surface
 titleCN: Theme Roses
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 
diff --git a/public/data-gl/surface-wave.js b/public/data-gl/surface-wave.js
index edf57a8..23c7b24 100644
--- a/public/data-gl/surface-wave.js
+++ b/public/data-gl/surface-wave.js
@@ -2,7 +2,6 @@
 title: Surface Wave
 category: surface
 titleCN: Surface Wave
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 option = {
diff --git a/public/data-gl/transparent-bar3d.js b/public/data-gl/transparent-bar3d.js
index 6cecec2..c001eb5 100644
--- a/public/data-gl/transparent-bar3d.js
+++ b/public/data-gl/transparent-bar3d.js
@@ -2,7 +2,6 @@
 title: Transparent Bar3D
 category: bar3D
 titleCN: Transparent Bar3D
-scripts: 'http://echarts.baidu.com/resource/echarts-gl-latest/dist/echarts-gl.min.js'
 */
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org