Skip to content

Open Source three.js cesium.js examples and demo community - 开源的 three.js 和 cesium.js 案例社区 ---- star ----点星星

License

Notifications You must be signed in to change notification settings

AivoGenX/threejs-cesium-webgpu-vue-js

Repository files navigation

💎 原生Three 和 Cesium 案例 - 不断更新 - 只做开源 -

开源不易 - ⭐ - 点星助力,你的爱心就是我的动力!!谢谢

加入仓库一起管理 联系🐧QQ 🐧QQ群
2945853209 131995948

Web3D+GIS开源社区平台!

🌳 案例

官网实例

threejs.js webgl

threejs.js webgl

酷炫地图

🏠 国内镜像

https://gitee.com/giser2017/threejs-cesium-webgpu-vue-js

🏠 国外镜像

https://github.com/AivoGenX/threejs-cesium-webgpu-vue-js

📦 拷贝到自己网站

1.可通过 config/links 文件修改 所有的链接和 logo, 替换成自己的官网或者链接地址。

2.如在 自己网站 部署

QQ QQ群
- 开发 如果只修改了 public 里面得内容,没修改src 内容则不需要打包, 如果需要打包手动删除 public/assets 目录
  1. 创作者可以在 public/config/author.js 录入你的开发者信息,然后你提交的案例关联上id 就会展示作者信息。

  2. 将案例js放入到public目录下的cesiumExamples/threeExamples 中的文件夹中 如threeExamples/basic中放入 test.js, test.jpg, 或者目录test[test.js, test.jpg]

  3. 在config目录下 找到threeExamples 录入案例信息, 内部的资源指向与你的 js 和 image 资源路径对应

  4. 注: 为保证轻量化 案例展示图片资源使用 - https://yasuo.xunjiepdf.com/img/ (自定义压缩至4k以内)

  5. 涉及其他依赖js,可将module.js 放到public/js目录 如 dat.gui,gasp ,注入方式 config.js 可见

  6. 音视频模型存储等一些可以公用的资源 public/files 文件夹下 为了保证存储库大小尽量缩小到5M以内

  • assets 打包后目录
  • config js注入和配置案例信息目录
  • files 音视频模型存储等一些可以公用的资源
  • js dat.gui gsap three官方源码 cesium官方源码
  • threeExamples three.js 案例代码目录
  • cesiumExamples cesium 案例代码目录
{
    id: '父级列表唯一id',
    name: '名称',
    author: '作者id',
    codeUrl: '/threeExamples/basic/test.html',
    image: '/threeExamples/basic/test.jpg',
    meta: {
        title: '此案例网站标题',
        keywords: '搜索引擎关键字',
        description: '此案例页面描述'
    }
}

🏠 搭建自己的分布式存储仓库

  • 架构设计是以请求资源形式访问代码,所以如 codeUrl image, 等资源信息不局限于存储在 本仓库中,例如存储在你自己的服务器,然后url 访问到你的资源地址即可。

  • 然后在此仓库仅配置 案例信息即可, 可参考 three案例 => 扩展功能 => 3D 地图 案例的配置

  • 注 由于 github 访问限制 http 会被自动禁止, 建议 也搭建自己得github page ,使用 github 充当自己的资源服务器。

  • 如:我的一些分布式资源存储在 https://github.com/AivoGenX/Web3dExamples 仓库下 —— 访问服务: https://AivoGenX.github.io/Web3dExamples/

  • github page 搭建 => 创建仓库 => 页面流程 => setting => pages => Build and deployment => source (depoly from a branch) => branch 选择对应分支

  • 注: github page 搭建完成后 直接访问 如 https://xxxx.github.io/xxxx/ 下的资源文件无法显示是正常现象, 在代码中可正常获取

****************************************************************************************************************************

💎 Native Three and Cesium Cases - Continuously Updated - Only Open Source -

Open source is not easy - ⭐ - Star to help, your love is my motivation!! Thank you

Join the warehouse to manage together Contact 🐧QQ 🐧QQ group
2945853209 131995948

Web3D+GIS Open Source Community Platform!

🌳 Cases

Official example threejs.js webgl threejs.js webgl Cool map

🏠 Domestic Mirror

https://gitee.com/giser2017/threejs-cesium-webgpu-vue-js

🏠 Foreign Mirror

https://github.com/AivoGenX/threejs-cesium-webgpu-vue-js

📦 Copy to your own website

  1. You can modify all links and logos through the config/links file, replacing them with your own official website or link address.

  2. If deployed at web

QQ QQ group
- Development If only the content in public is modified, and the content in src is not modified, there is no need to package. If packaging is required, manually delete the public/assets directory
  1. Creators can enter your developer information in public/config/author.js, and then the cases you submit that are associated with the id will display the author information.

  2. Put the case js into the folder in the public directory under cesiumExamples/threeExamples, such as putting test.js, test.jpg, or the directory test[test.js, test.jpg] in threeExamples/basic.

  3. In the config directory, find threeExamples to enter the case information, and the internal resources should correspond to the path of your js and image resources.

  4. Note: To ensure lightweight, the case display picture resources use - https://yasuo.xunjiepdf.com/img/ (Custom compressed to within 4k)

  5. For other dependent js, you can put module.js in the public/js directory, such as dat.gui, gasp, injection method visible in config.js

  6. For some resources that can be used in common, such as audio and video models, store them in the public/files directory. To ensure that the size of the repository is as small as possible, try to reduce it to within 5M.

  • assets packaged directory
  • config js injection and configuration case information directory
  • files audio and video model storage and other resources that can be used in common
  • js dat.gui gsap three official source code cesium official source code
  • threeExamples three.js case code directory
  • cesiumExamples cesium case code directory
{
    id: 'parent list unique id',
    name: 'name',
    author: 'author id',
    codeUrl: '/threeExamples/basic/test.html',
    image: '/threeExamples/basic/test.jpg',
    meta: {
        title: 'this case website title',
        keywords: 'search engine keywords',
        description: 'this case page description'
    }
}

🏠 Build your own distributed storage warehouse

  • The architecture design is to access the code in the form of resource requests, so resources such as codeUrl and image are not limited to being stored in this warehouse. For example, they can be stored on your own server, and then accessed via url.

  • Then, only the case information needs to be configured in this warehouse. You can refer to the configuration of the three case => extension function => 3D map case.

  • Note: Since github access restrictions will automatically prohibit http, it is recommended to also build your own github page, using github as your own resource server.

  • For example: Some of my distributed resources are stored in the https://github.com/AivoGenX/Web3dExamples warehouse - access service: https://AivoGenX.github.io/Web3dExamples/

  • github page construction => create warehouse => page process => setting => pages => Build and deployment => source (deploy from a branch) => branch selection corresponding branch

  • Note: After the github page is built, it is normal that the resource files under https://xxxx.github.io/xxxx/ cannot be displayed directly. They can be obtained normally in the code.

About

Open Source three.js cesium.js examples and demo community - 开源的 three.js 和 cesium.js 案例社区 ---- star ----点星星

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages