当前位置:网站首页>Cesium loading 3D tiles model
Cesium loading 3D tiles model
2022-06-22 06:47:00 【GIS developer】
I have a problem recently , Use the three-dimensional model of tilt Photography Made by Dajiang UAV , It needs to be loaded on the map for display . After exporting from Dajiang's mapping software , The suffix of 3D model file is b3dm, After consulting the data, it is found that , yes 3D Tiles Format .
3D Tiles
3D Tiles It is an open 3D spatial data standard , It is designed to improve the loading and rendering speed of models in large 3D scenes , It can be understood as a tile of a three-dimensional scene . If you want to be in Web The client renders a very large 3D model ( Such as the architectural model of a big city ), If you download all the models to the client and render them , The time consumed in this process is unacceptable to users using ordinary computers . However , In the vast majority of user interactive 3D scenes , Only a small part of the model needs to be rendered , Loading and rendering all 3D models is a great waste of resources ,3D Tiles It provides a good solution to this problem . Organize 3D spatial data into 3D Tiles Format , It can realize on-demand loading and rendering of models , So as to achieve a smooth 3D model browsing experience .3D Tiles It is also a hierarchical model organized in a tree structure , The difference is that the two-dimensional Tile Map divides the two-dimensional space ,3D Tiles Is to divide the three-dimensional space .
Load code
vue And cesium Development environment construction , Reference resources https://blog.csdn.net/GISuuser/article/details/125376282?spm=1001.2014.3001.5501
<template>
<div id="cesiumContainer">
</div>
</template>
<script> import * as Cesium from 'cesium'; export default {
name: 'HelloWorld', props: {
msg: String }, setup(){
window.CESIUM_BASE_URL = '/cesium/'; Cesium.Ion.defaultAccessToken = ' You applied for token'; }, mounted(){
// "cesiumContainer" You need to render the map dom Of id. const viewer = new Cesium.Viewer('cesiumContainer', {
terrainProvider: Cesium.createWorldTerrain() }); let tileSetModel = new Cesium.Cesium3DTileset({
url: "./terra_b3dms/tileset.json" }); tileSetModel.readyPromise.then( tileset=> {
console.log(" Loading complete ") viewer.scene.primitives.add(tileset); viewer.zoomTo(tileset, new Cesium.HeadingPitchRange(0.5, -0.2, tileset.boundingSphere.radius * 1.0)); }).catch(function (error) {
console.log(error); }); } } </script>
<style scoped> #cesiumContainer{
width: 100%; height: 100%; } </style>
In the code , Used 3D Tiles Model , Can be in https://download.csdn.net/download/GISuuser/85708223?spm=1001.2014.3001.5503 download
effect


边栏推荐
- 【OpenAirInterface5g】高层模块接口及itti实体线程创建
- 5G-GUTI详解
- ReadWriteLock
- Record of problems caused by WPS document directory update
- [5g NR] ng setup of ngap protocol
- Leetcode: interview question 08.12 Eight queens [DFS + backtrack]
- Detailed tutorial on connecting MySQL with tableau
- Anaconda introduction, installation and use nanny level tutorial
- [php]tp6 cli mode to create tp6 and multi application configurations and common problems
- 代码的巨大进步
猜你喜欢

Leetcode the shortest path of three (eight) charts per week

QT connect to Alibaba cloud using mqtt protocol

Languo technology helps the ecological prosperity of openharmony

Producer and consumer issues
![[5g NR] NAS connection management - cm status](/img/a3/c23958ff593f77cdc459bebc3f87d2.png)
[5g NR] NAS connection management - cm status

SQL injection vulnerability (x) secondary injection

Four functional interfaces (required)

ForkJoinPool

Common auxiliary classes - (key)

Rebuild binary tree
随机推荐
WPS文档目录更新产生的问题记录
Flink core features and principles
关于solidity的delegatecall的坑
[CPU design practice] fundamentals of digital logic circuit design (I)
import keras时遇到的错误 TypeError: Descriptors cannot not be created directly. If this call came from a _
Don't throw away the electric kettle. It's easy to fix!
iframe框架,,原生js路由
【5G NR】UE注册管理状态
东郊到家开发技术服务
【OpenAirInterface5g】高层模块接口及itti实体线程创建
Leetcode--- search insertion location
[5g NR] mobile phone ID number IMEI and imeisv
【M32】单片机 svn 设置忽略文件
5g terminal identification Supi, suci and IMSI analysis
Leetcode the shortest path of three (eight) charts per week
[5g NR] NAS connection management - cm status
Cactus Song - online operation (4)
Cactus Song - March to C live broadcast (3)
OpenGL - Textures
Clickhouse compares data from two machines