SlideShare a Scribd company logo
Acknowledgement: This work was supported by Korea Environment Industry & Technology Institute (KEITI) through
'Advanced Technology Development Project for Predicting and Preventing Chemical Accidents' program.
How to Visualize the
Spatio-Temporal Data Using CesiumJS
Jinho Kim, Yongsub Kwak, Jinhoon Kim, Sanghee Shin
Gaia3D, Inc.
Introduction
1. Weather Data Visualization
2. Visualizing Chemical Dispersion
3. Fluid Simulation & Visualization
Q & A
Contents
2
Introduction
How to Visualize the Spatio-Temporal Data Using CesiumJS
3
Weather Data Visualization Fluid Simulation & Visualization
Spatio-Temporal Visualization of Chemical
Dispersion
We have conducted various projects focused on visualizing spatio-temporal data including environmental impact
assessments, chemical accident risk assessments, and meteorological data visualization.
Initially, we developed our own JavaScript library called mago3D.JS for rendering these datasets. However, in line
with 3D GIS standards and the broader ecosystem, we now carry out most of our projects using CesiumJS.
4
1. Weather Data Visualization
Acknowledgement: Much of this work was funded by the Korea
Meteorological Administration (KMA) for the development of a w
eb-based 3D visualization system for numerical weather predicti
on models.
Weather Data Visualization
Weather Data Visualization
Our first case study focuses on visualizing numerical weather prediction models. Much of this work was sponsored by
the Korea Meteorological Administration (KMA).
• Visualizing iso-value surface of weather variables
• Visualizing streamline data like wind flows
• Visualizing slice plots of 3D volume
Animated wind flows
Iso-surface of wind speed over
50m/s
Slice plots of wind speed
5
Weather Data Pre-processing
Weather Data Visualization
• Meteorological data is distributed in a grid data format with multiple isobaric pressure levels and weather variables
(points : ~10M ).
• The data is pre-generated on the backend.
• There are many forecast models(ECMWF, GFS, KIM) and visualization methods.
• Each forecast model uses different grid definitions, map projections.
• To reduce complexity, we use unified grid data format which is applicable in both 2D, 3D spatial operation.
Unified Grid format
(lon,lat,alt,value)[]
ECMWF
KIM
Iso-surface
Streamline
Weather forecast models Visualization methods
6
Iso-surface Visualization
We use iso-surfaces to represent areas of constant values. This is effective for visualizing volumetric data like
temperature, pressure, or cloud density.
1. Make iso-surface meshes in GLTF format using marching cube algorithms.
2. Vertex position transformation : Index coordinates => lon, lat, alt => ECEF coordinates
3. Using standard atmosphere pressure-altitude table to convert pressure levels to real altitudes.
Weather Data Visualization
1. Marching cube in grid index
space
2. Convert vertex positions to ECEF coordinates 3. Calculate normal from ECEF
coordinates
7
Streamline Visualization
To visualize vector fields like wind, we use streamlines. This technique clearly shows the direction and velocity of wind
patterns over large geographical areas.
• Animated streamline in 3D space to visualize velocity vector field like wind speed
• Calculate and render each particles using Cesium Compute Engine + CustomShader
• Inspired by GPU Powered Wind Visualization With Cesium – Cesium
Weather Data Visualization
8
Streamline Visualization
• Use ComputeEngine to calculate particle positions every frames
• Merging multiple levels data into one texture to deal with maximum texture count limits of hardware
• Buffering recent particle positions is also needed to visualize particle trails
Weather Data Visualization
speed particlePosition
nextParticlePosition
normalized2ECEF vertexShader
fragmentShader
calculatePosition
ECEFParticlePositions
Reference each
particle
using particle index
positionTrailSegment
coloringTrailSegment
1. Calculate particle
positions
ECEFParticlePositions
2. Render trail mesh
Screen
Framebuffer
Trail mesh
Mesh vertex count =
Particle count * trail
length
Reference proper position
texture using vertex index
Texture
9
Slice Plots
Slice plots allow us to render a 2D cross-section of the 3D data. This is useful for analyzing the data at a specific
altitude or plane.
• Slice plots also can help to visualize 3D grid data
• Render a mesh with 3 generated planes and for each axis calculates proper ECEF coordinates
Weather Data Visualization
10
3D Visualization System for Numerical Prediction Models - KMA
Weather Data Visualization
11
12
2. Visualizing Chemical Dispersion
Next, we'll demonstrate how we visualize chemical dispersion simulations. This system is designed to predict and
display the spread of hazardous materials in an urban environment following an accident.
• Data converting & reducing
• Data interpolation & volume rendering
Overview
13
Visualizing Chemical Dispersion
Visualizing Chemical Dispersion
environmental
dynamicmodel
Concentration
value
PNG
value coding (32GB -> 0.16GB)
• Challenge: The raw simulation data is extremely large, often over 30GB, which is too big to transfer and
render in a web browser.
• Solution 1(Data Encoding): We encode the concentration values into the RGBA channels of PNG images.
This significantly compresses the data size, in this case from 32GB down to just 160MB.
• Solution 2(Client-side Interpolation): Instead of sending every single time step, we only send keyframes. The
client then generates the frames in between using linear interpolation for smother animation.
Tackling the Problems - Optimization of Model Data
14
Visualizing Chemical Dispersion
Our visualization is based on a volume rendering technique using ray casting. The process for each pixel is:
1. Ray Casting: A ray is cast from the camera through the pixel into the data volume.
2. Sampling: Data values are sampled at intervals along the ray.
3. Shading: Lighting and color are applied to the sampled points.
4. Compositing: The shaded samples are blended together to calculate the final pixel color.
One pixel in an image
Model
Data
Area
Image to be displayed
on monitor
Volume Rendering
15
1.Raycasting 2.sampling 3.shading 4.compositing
• Exploring varied visualization of chemical concentrations by adjusting rendering parameters such as color
mapping and opacity.
• Expanded profiling capabilities for plane slicing, enabling detailed analysis and quantitative inspection on cross-
sections.
• Combining volume rendering and profiling enables comprehensive investigation of the spatio-temporal
evolution of chemical dispersion.
Volume Rendering Result
Visualization of chemical concentration
volumes sliced into a plane.
Visualizing Chemical Dispersion
Volume Rendering Result and Extension
16
Visualizing Chemical Dispersion
Research progress - 1st Year
17
Visualizing Chemical Dispersion
Research progress - 2nd Year
18
Visualizing Chemical Dispersion
Research progress - 3rd Year (Current)
19
• This year, we are developing and working on visualizing both VolumeRender and Isosurface using the Marching
Cube algorithm developed for KMA.
20
3. Fluid Simulation & Visualization
Fluid Simulation & Visualization
Overview
We explored two approaches: real-time simulation and pre-computed simulation.
1. Real-time allows for live interaction but can be slow and requires a powerful client.
2. Pre-computed is much faster for rendering and allows you to scroll back and forth in time, but it requires high
memory and significant network traffic upfront. It does not support live interaction.
[Water generation from water source] [Precipitation control]
21
Precomputed
Real-time
Fluid Simulation & Visualization
Simulation & Visualization
• Separate development of Simulation and Visualization.
• We've developed a real-time water simulation that runs in the browser, along with separate visualization
techniques for precomputed simulations.
22
Fluid Simulation & Visualization
Realtime Simulation VS Precomputed Simulation
• Realtime processing is simulation using GPUs to allow real-time interaction, but client performance is critical,
browser stability is an issue, and complex simulations are difficult.
• Precomputed processing is smooth because you only need to visualize the pre-calculated results. However, as
the resolution of simulations increases, streaming data lightweighting technologies become more important.
[Control time through scrolling]
[Realtime and Precomputed Comparisons]
Compare Realtime Precomputed
Live Interaction Enabled Disabled
Network Traffic no High
Rendering Speed Slow Fast
Memory Usage low High
Time Flow One-Way Two-way
23
Types of Fluid Visualization Methods
There are several methods for visualizing fluids. We explored three main types:
1. Grid-Based: Such as the Height-Field or Height Map method.
2. Particle-Based: Using techniques like Smoothed-Particle Hydrodynamics (SPH).
3. Volume-Based: Using algorithms like Marching Cubes to generate a mesh from the volume.
[Particle Based Visualization]
SPH(Smoothed-particle hydrodynamics)
[Grid Based Visualization]
Height-Field/Height Map
[Volume Based Visualization]
(Marching Cube / Dual Contouring)
24
Fluid Simulation & Visualization
Height-Field Visualization Method
We chose the Height-Field method for its performance. It works by taking a simple 2D grid mesh and displacing its
vertices up or down based on the color values in a 'water height' texture. This efficiently creates the appearance of
a 3D water surface.
4.0 3.0
3.0 2.0
2.0
1.0
1.0
0.0
2.0 1.0
1.0 0.0
0.0
0.0
0.0
0.0
Water Height Texture
(4x4, png)
Grid Mesh
(4x4, gltf)
Grid Mapping Above View Create depth
through height texture
25
Fluid Simulation & Visualization
Height-Field Visualization Method - Similar cases
• This technique is quite popular and is used in well-known WebGL demos like Evan Wallace's 'WebGL Water'. These
simulations use a height-field for the water surface and then add advanced effects like ray-traced reflections,
refractions, and caustics for realism.
[WebGL Water Page ScreenShot]
26
Fluid Simulation & Visualization
Height-Field Visualization Method
• Results of visualization of implemented simulation as wireframe
27
[Visualized as wireframe]
Fluid Simulation & Visualization
Simulation Method
• The in-house developed simulation is a lattice-based simulation using SWE, which can be discretized into a 2D
lattice with equations derived from NSE, enabling calculations using GPUs, and is suitable for large-scale terrain-
based water flows such as floods.
• Other CFD programs would have been similar. but would have had different policies for calibrating the
simulation, such as handling boundary conditions.
Comparison Complexity Applicability Application Areas
NSE (Navier-Stokes Equatio
ns)
Very Complex
Applicable to all fluid
s
Most areas of CFD, aerospace,
meteorology, fluids, etc.
SWE (Shallow Water Equatio
ns)
Simple
Applicable to shallow w
ater
Shallow water, tsunamis,
flood modeling, ocean tides,
river flows
[Comparison table]
[Wikipedia’s SWE Image]
28
Fluid Simulation & Visualization
Conclusion
With structured visualization methods and formats, and a hybrid of real-time and batch approaches, we can integra
te with external CFD modules while offering lightweight, web-based visualizations.
By combining a height-field simulation with Cesium's 3D globe, we can create compelling and interactive visualizati
ons of fluid dynamics. This is highly effective for applications like urban flood simulation or analyzing water flow ove
r natural terrain.
29
Fluid Simulation & Visualization
Q&A
30
Thank you!
Web: www.gaia3d.com
YouTube: https://www.youtube.com/@mago3d890
Facebook: https://www.facebook.com/Gaia3d
X(Twitter): https://twitter.com/Gaia3D
Github: https://github.com/Gaia3D
31

More Related Content

More from SANGHEE SHIN (20)

PDF
오픈소스로 사업하기 - 가이아쓰리디 이야기(서울시립대학교 창업지원단 특강)
SANGHEE SHIN
 
PDF
FOSS4G 2023 Prizren 참가기
SANGHEE SHIN
 
PDF
책 "제품의 탄생" 소개
SANGHEE SHIN
 
PDF
공간정보 최근 동향과 디지털트윈, 메타버스
SANGHEE SHIN
 
PDF
재테크 2주일만 하면 신상희만큼 한다!
SANGHEE SHIN
 
PDF
다분야 공동활용 디지털 플랫폼 사례 공유
SANGHEE SHIN
 
PDF
공간정보 관점에서 바라본 디지털트윈과 메타버스
SANGHEE SHIN
 
PDF
FOSS4G Firenze 2022 참가기
SANGHEE SHIN
 
PDF
공간정보와 도시 디지털트윈(부산DX컨퍼런스 발표자료)
SANGHEE SHIN
 
PDF
공간정보 최근 동향과 디지털트윈, 메타버스
SANGHEE SHIN
 
PDF
디지털트윈, 스마트시티, 메타버스
SANGHEE SHIN
 
PDF
디지털 트윈(Digital Twin) - 도시와 공간정보 관점에서
SANGHEE SHIN
 
PDF
ICT 기반 환경영향평가 가시화 플랫폼 설계와 시범 구현
SANGHEE SHIN
 
PDF
디지털트윈 기술 및 스마트시티 적용 사례
SANGHEE SHIN
 
PDF
Introduction to OpenIndoorMap
SANGHEE SHIN
 
PDF
State of mago3D, An Open Source Based Digital Twin Platform
SANGHEE SHIN
 
PDF
A Research on EIA(Environmental Impact Assessment) Data Visualization Technol...
SANGHEE SHIN
 
PDF
Integration of BIM and GIS: From Ideal to Reality
SANGHEE SHIN
 
PDF
디지털 트윈 플랫폼 기술과 사례(LX공사 특강)
SANGHEE SHIN
 
PDF
디지털 트윈 기술과 활용 사례 - 공간정보를 중심으로
SANGHEE SHIN
 
오픈소스로 사업하기 - 가이아쓰리디 이야기(서울시립대학교 창업지원단 특강)
SANGHEE SHIN
 
FOSS4G 2023 Prizren 참가기
SANGHEE SHIN
 
책 "제품의 탄생" 소개
SANGHEE SHIN
 
공간정보 최근 동향과 디지털트윈, 메타버스
SANGHEE SHIN
 
재테크 2주일만 하면 신상희만큼 한다!
SANGHEE SHIN
 
다분야 공동활용 디지털 플랫폼 사례 공유
SANGHEE SHIN
 
공간정보 관점에서 바라본 디지털트윈과 메타버스
SANGHEE SHIN
 
FOSS4G Firenze 2022 참가기
SANGHEE SHIN
 
공간정보와 도시 디지털트윈(부산DX컨퍼런스 발표자료)
SANGHEE SHIN
 
공간정보 최근 동향과 디지털트윈, 메타버스
SANGHEE SHIN
 
디지털트윈, 스마트시티, 메타버스
SANGHEE SHIN
 
디지털 트윈(Digital Twin) - 도시와 공간정보 관점에서
SANGHEE SHIN
 
ICT 기반 환경영향평가 가시화 플랫폼 설계와 시범 구현
SANGHEE SHIN
 
디지털트윈 기술 및 스마트시티 적용 사례
SANGHEE SHIN
 
Introduction to OpenIndoorMap
SANGHEE SHIN
 
State of mago3D, An Open Source Based Digital Twin Platform
SANGHEE SHIN
 
A Research on EIA(Environmental Impact Assessment) Data Visualization Technol...
SANGHEE SHIN
 
Integration of BIM and GIS: From Ideal to Reality
SANGHEE SHIN
 
디지털 트윈 플랫폼 기술과 사례(LX공사 특강)
SANGHEE SHIN
 
디지털 트윈 기술과 활용 사례 - 공간정보를 중심으로
SANGHEE SHIN
 

Recently uploaded (20)

PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PPTX
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
PDF
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
PDF
Next level data operations using Power Automate magic
Andries den Haan
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
Next level data operations using Power Automate magic
Andries den Haan
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
Ad

How to Visualize the ​Spatio-Temporal Data Using CesiumJS​

  • 1. Acknowledgement: This work was supported by Korea Environment Industry & Technology Institute (KEITI) through 'Advanced Technology Development Project for Predicting and Preventing Chemical Accidents' program. How to Visualize the Spatio-Temporal Data Using CesiumJS Jinho Kim, Yongsub Kwak, Jinhoon Kim, Sanghee Shin Gaia3D, Inc.
  • 2. Introduction 1. Weather Data Visualization 2. Visualizing Chemical Dispersion 3. Fluid Simulation & Visualization Q & A Contents 2
  • 3. Introduction How to Visualize the Spatio-Temporal Data Using CesiumJS 3 Weather Data Visualization Fluid Simulation & Visualization Spatio-Temporal Visualization of Chemical Dispersion We have conducted various projects focused on visualizing spatio-temporal data including environmental impact assessments, chemical accident risk assessments, and meteorological data visualization. Initially, we developed our own JavaScript library called mago3D.JS for rendering these datasets. However, in line with 3D GIS standards and the broader ecosystem, we now carry out most of our projects using CesiumJS.
  • 4. 4 1. Weather Data Visualization Acknowledgement: Much of this work was funded by the Korea Meteorological Administration (KMA) for the development of a w eb-based 3D visualization system for numerical weather predicti on models.
  • 5. Weather Data Visualization Weather Data Visualization Our first case study focuses on visualizing numerical weather prediction models. Much of this work was sponsored by the Korea Meteorological Administration (KMA). • Visualizing iso-value surface of weather variables • Visualizing streamline data like wind flows • Visualizing slice plots of 3D volume Animated wind flows Iso-surface of wind speed over 50m/s Slice plots of wind speed 5
  • 6. Weather Data Pre-processing Weather Data Visualization • Meteorological data is distributed in a grid data format with multiple isobaric pressure levels and weather variables (points : ~10M ). • The data is pre-generated on the backend. • There are many forecast models(ECMWF, GFS, KIM) and visualization methods. • Each forecast model uses different grid definitions, map projections. • To reduce complexity, we use unified grid data format which is applicable in both 2D, 3D spatial operation. Unified Grid format (lon,lat,alt,value)[] ECMWF KIM Iso-surface Streamline Weather forecast models Visualization methods 6
  • 7. Iso-surface Visualization We use iso-surfaces to represent areas of constant values. This is effective for visualizing volumetric data like temperature, pressure, or cloud density. 1. Make iso-surface meshes in GLTF format using marching cube algorithms. 2. Vertex position transformation : Index coordinates => lon, lat, alt => ECEF coordinates 3. Using standard atmosphere pressure-altitude table to convert pressure levels to real altitudes. Weather Data Visualization 1. Marching cube in grid index space 2. Convert vertex positions to ECEF coordinates 3. Calculate normal from ECEF coordinates 7
  • 8. Streamline Visualization To visualize vector fields like wind, we use streamlines. This technique clearly shows the direction and velocity of wind patterns over large geographical areas. • Animated streamline in 3D space to visualize velocity vector field like wind speed • Calculate and render each particles using Cesium Compute Engine + CustomShader • Inspired by GPU Powered Wind Visualization With Cesium – Cesium Weather Data Visualization 8
  • 9. Streamline Visualization • Use ComputeEngine to calculate particle positions every frames • Merging multiple levels data into one texture to deal with maximum texture count limits of hardware • Buffering recent particle positions is also needed to visualize particle trails Weather Data Visualization speed particlePosition nextParticlePosition normalized2ECEF vertexShader fragmentShader calculatePosition ECEFParticlePositions Reference each particle using particle index positionTrailSegment coloringTrailSegment 1. Calculate particle positions ECEFParticlePositions 2. Render trail mesh Screen Framebuffer Trail mesh Mesh vertex count = Particle count * trail length Reference proper position texture using vertex index Texture 9
  • 10. Slice Plots Slice plots allow us to render a 2D cross-section of the 3D data. This is useful for analyzing the data at a specific altitude or plane. • Slice plots also can help to visualize 3D grid data • Render a mesh with 3 generated planes and for each axis calculates proper ECEF coordinates Weather Data Visualization 10
  • 11. 3D Visualization System for Numerical Prediction Models - KMA Weather Data Visualization 11
  • 13. Next, we'll demonstrate how we visualize chemical dispersion simulations. This system is designed to predict and display the spread of hazardous materials in an urban environment following an accident. • Data converting & reducing • Data interpolation & volume rendering Overview 13 Visualizing Chemical Dispersion
  • 14. Visualizing Chemical Dispersion environmental dynamicmodel Concentration value PNG value coding (32GB -> 0.16GB) • Challenge: The raw simulation data is extremely large, often over 30GB, which is too big to transfer and render in a web browser. • Solution 1(Data Encoding): We encode the concentration values into the RGBA channels of PNG images. This significantly compresses the data size, in this case from 32GB down to just 160MB. • Solution 2(Client-side Interpolation): Instead of sending every single time step, we only send keyframes. The client then generates the frames in between using linear interpolation for smother animation. Tackling the Problems - Optimization of Model Data 14
  • 15. Visualizing Chemical Dispersion Our visualization is based on a volume rendering technique using ray casting. The process for each pixel is: 1. Ray Casting: A ray is cast from the camera through the pixel into the data volume. 2. Sampling: Data values are sampled at intervals along the ray. 3. Shading: Lighting and color are applied to the sampled points. 4. Compositing: The shaded samples are blended together to calculate the final pixel color. One pixel in an image Model Data Area Image to be displayed on monitor Volume Rendering 15 1.Raycasting 2.sampling 3.shading 4.compositing
  • 16. • Exploring varied visualization of chemical concentrations by adjusting rendering parameters such as color mapping and opacity. • Expanded profiling capabilities for plane slicing, enabling detailed analysis and quantitative inspection on cross- sections. • Combining volume rendering and profiling enables comprehensive investigation of the spatio-temporal evolution of chemical dispersion. Volume Rendering Result Visualization of chemical concentration volumes sliced into a plane. Visualizing Chemical Dispersion Volume Rendering Result and Extension 16
  • 19. Visualizing Chemical Dispersion Research progress - 3rd Year (Current) 19 • This year, we are developing and working on visualizing both VolumeRender and Isosurface using the Marching Cube algorithm developed for KMA.
  • 20. 20 3. Fluid Simulation & Visualization
  • 21. Fluid Simulation & Visualization Overview We explored two approaches: real-time simulation and pre-computed simulation. 1. Real-time allows for live interaction but can be slow and requires a powerful client. 2. Pre-computed is much faster for rendering and allows you to scroll back and forth in time, but it requires high memory and significant network traffic upfront. It does not support live interaction. [Water generation from water source] [Precipitation control] 21
  • 22. Precomputed Real-time Fluid Simulation & Visualization Simulation & Visualization • Separate development of Simulation and Visualization. • We've developed a real-time water simulation that runs in the browser, along with separate visualization techniques for precomputed simulations. 22
  • 23. Fluid Simulation & Visualization Realtime Simulation VS Precomputed Simulation • Realtime processing is simulation using GPUs to allow real-time interaction, but client performance is critical, browser stability is an issue, and complex simulations are difficult. • Precomputed processing is smooth because you only need to visualize the pre-calculated results. However, as the resolution of simulations increases, streaming data lightweighting technologies become more important. [Control time through scrolling] [Realtime and Precomputed Comparisons] Compare Realtime Precomputed Live Interaction Enabled Disabled Network Traffic no High Rendering Speed Slow Fast Memory Usage low High Time Flow One-Way Two-way 23
  • 24. Types of Fluid Visualization Methods There are several methods for visualizing fluids. We explored three main types: 1. Grid-Based: Such as the Height-Field or Height Map method. 2. Particle-Based: Using techniques like Smoothed-Particle Hydrodynamics (SPH). 3. Volume-Based: Using algorithms like Marching Cubes to generate a mesh from the volume. [Particle Based Visualization] SPH(Smoothed-particle hydrodynamics) [Grid Based Visualization] Height-Field/Height Map [Volume Based Visualization] (Marching Cube / Dual Contouring) 24 Fluid Simulation & Visualization
  • 25. Height-Field Visualization Method We chose the Height-Field method for its performance. It works by taking a simple 2D grid mesh and displacing its vertices up or down based on the color values in a 'water height' texture. This efficiently creates the appearance of a 3D water surface. 4.0 3.0 3.0 2.0 2.0 1.0 1.0 0.0 2.0 1.0 1.0 0.0 0.0 0.0 0.0 0.0 Water Height Texture (4x4, png) Grid Mesh (4x4, gltf) Grid Mapping Above View Create depth through height texture 25 Fluid Simulation & Visualization
  • 26. Height-Field Visualization Method - Similar cases • This technique is quite popular and is used in well-known WebGL demos like Evan Wallace's 'WebGL Water'. These simulations use a height-field for the water surface and then add advanced effects like ray-traced reflections, refractions, and caustics for realism. [WebGL Water Page ScreenShot] 26 Fluid Simulation & Visualization
  • 27. Height-Field Visualization Method • Results of visualization of implemented simulation as wireframe 27 [Visualized as wireframe] Fluid Simulation & Visualization
  • 28. Simulation Method • The in-house developed simulation is a lattice-based simulation using SWE, which can be discretized into a 2D lattice with equations derived from NSE, enabling calculations using GPUs, and is suitable for large-scale terrain- based water flows such as floods. • Other CFD programs would have been similar. but would have had different policies for calibrating the simulation, such as handling boundary conditions. Comparison Complexity Applicability Application Areas NSE (Navier-Stokes Equatio ns) Very Complex Applicable to all fluid s Most areas of CFD, aerospace, meteorology, fluids, etc. SWE (Shallow Water Equatio ns) Simple Applicable to shallow w ater Shallow water, tsunamis, flood modeling, ocean tides, river flows [Comparison table] [Wikipedia’s SWE Image] 28 Fluid Simulation & Visualization
  • 29. Conclusion With structured visualization methods and formats, and a hybrid of real-time and batch approaches, we can integra te with external CFD modules while offering lightweight, web-based visualizations. By combining a height-field simulation with Cesium's 3D globe, we can create compelling and interactive visualizati ons of fluid dynamics. This is highly effective for applications like urban flood simulation or analyzing water flow ove r natural terrain. 29 Fluid Simulation & Visualization
  • 31. Thank you! Web: www.gaia3d.com YouTube: https://www.youtube.com/@mago3d890 Facebook: https://www.facebook.com/Gaia3d X(Twitter): https://twitter.com/Gaia3D Github: https://github.com/Gaia3D 31