Web3D+GIS 开源社区平台,专注于 Three.js 和 Cesium 的案例展示与分享
本平台是一个专注于 Three.js 和 Cesium 的 Web3D 开源案例库,提供丰富的三维可视化示例,涵盖着色器、地图服务、动画效果等多个领域。
- 🎯 丰富案例:包含数百个原生 Three.js 和 Cesium 示例
- 🎨 着色器特效:从入门到精通的完整着色器教程系列
- 🗺️ GIS 地图:支持多种在线/离线地图服务接入
- ⚡ 高性能渲染:优化的大量点、线、面数据渲染方案
- 🌐 分布式存储:支持资源的分布式部署和加载
- 主站:https://threelab.github.io/three-lab-demos/#/example
- 国内镜像:https://gitee.com/giser2017/three-lab-demos
- 社区讨论:https://github.com/threelab/three-lab-demos/discussions
├── assets/ # 静态资源目录
├── config/ # 配置文件目录
│ ├── links.js # 导航链接配置
│ ├── author.js # 作者信息配置
│ ├── three-examples.json # Three.js案例配置(JSON格式)
│ └── cesium-examples.json # Cesium案例配置(JSON格式)
├── files/ # 音视频模型等公共资源
├── js/ # 第三方依赖库(dat.gui, gsap等)
├── threeExamples/ # Three.js案例代码目录
└── cesiumExamples/ # Cesium案例代码目录
| 文件 | 说明 |
|---|---|
three-examples.json |
Three.js案例配置,包含ID、名称、作者、代码路径、预览图等元数据 |
cesium-examples.json |
Cesium案例配置,包含图层、离线地图、基础功能、扩展功能等分类 |
links.js |
网站全局链接配置(导航、Logo等) |
author.js |
作者信息配置,提交案例时关联ID展示作者信息 |
# 克隆仓库
git clone https://github.com/threelab/three-lab-demos.git
# 进入目录
cd three-lab-demos
# 使用静态服务器运行(推荐使用 serve)
npx serve- 创建 GitHub 仓库
- 进入 Settings > Pages
- Build and deployment > Source 选择
deploy from a branch - 选择对应分支即可
将案例文件放入对应目录:
threeExamples/
└── basic/
├── test.js # 案例代码
└── test.jpg # 预览图片
在 config/three-examples.json 或 config/cesium-examples.json 中添加:
{
"id": "unique-id",
"name": "案例名称",
"author": "作者ID",
"codeUrl": "/threeExamples/basic/test.html",
"image": "/threeExamples/basic/test.jpg",
"meta": {
"title": "页面标题",
"keywords": "关键字",
"description": "描述信息"
}
}- 依赖库:放入
js/目录(如 dat.gui、gsap) - 公共资源:放入
files/目录(音视频、模型等) - 图片规范:压缩至 4KB 以内,使用
example-name.jpg命名格式
欢迎提交 PR!如需加入仓库管理:
| 联系方式 | 地址 |
|---|---|
| 2945853209 | |
| QQ群 | 131995948 |
MIT License
Web3D+GIS open source community platform focused on Three.js and Cesium case demonstrations.
This platform is an open-source Web3D case library focusing on Three.js and Cesium, providing rich 3D visualization examples covering shaders, map services, animation effects and more.
- 🎯 Rich Examples: Hundreds of native Three.js and Cesium examples
- 🎨 Shader Effects: Complete shader tutorial series from beginner to advanced
- 🗺️ GIS Maps: Support for multiple online/offline map services
- ⚡ High Performance: Optimized rendering for large point/line/polygon datasets
- 🌐 Distributed Storage: Support for distributed resource deployment
- Main: https://threelab.github.io/three-lab-demos/#/example
- Mirror: https://gitee.com/giser2017/three-lab-demos
- Discussions: https://github.com/threelab/three-lab-demos/discussions
├── assets/ # Static assets
├── config/ # Configuration files
├── files/ # Common resources (audio, video, models)
├── js/ # Third-party libraries
├── threeExamples/ # Three.js examples
└── cesiumExamples/ # Cesium examples
git clone https://github.com/threelab/three-lab-demos.git
cd three-lab-demos
npx serveWelcome PRs! For repository management, contact QQ: 2945853209
MIT License

