当前位置:网站首页>Cesium-1.72 learning (camera tracking)
Cesium-1.72 learning (camera tracking)
2022-06-30 17:10:00 【Eternal wolf tooth】

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>cameraFllow Camera tracking </title>
<link rel="stylesheet" href="/Cesium-1.72/Build/Cesium/Widgets/widgets.css">
<script src="/Cesium-1.72/Build/Cesium/Cesium.js"></script>
</head>
<body>
<div style="width:1500px;height:700px;">
<div id="cesiumContainer" style="width:100%;height:100%;"></div>
</div>
</body>
</html>
<script> var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider:new Cesium.UrlTemplateImageryProvider({
url:'http://localhost:8099/basemap_0-10/{z}/{y}/{x}.png', // Native map service fileExtension : "png", }), geocoder:false, // A geographic location search tool , Used to display the geographic location accessed by the camera . The default is Microsoft Bing Map . homeButton:true, // Home page location , Click to jump to the default view . sceneModePicker:true, // Switch 2D、3D and Columbus View (CV) Pattern . baseLayerPicker:false, // Select the base map of 3D digital earth (imagery and terrain). navigationHelpButton:true, // Help tips , How to operate digital earth . animation:false,// Control the playback speed of window animation . creditsDisplay:false, // Display trademark copyright and data sources . timeline:false, // Show the current time and allow the user to drag to any specified time on the progress bar . fullscreenButton:true, // Check the full screen button shouldAnimate: true, clock:new Cesium.Clock({
currentTime:Cesium.JulianDate.fromDate(new Date()) }) }); viewer.scene.globe.enableLighting = true;// Enable the earth with the sun as the light source var position = Cesium.Cartesian3.fromDegrees( -123.0744619, 44.0503706, 100000, ); var entity = viewer.entities.add({
id:"plane", name: "my big palne", position: position, model: {
uri: "/Cesium-1.72/Apps/SampleData/models/CesiumAir/Cesium_Air.glb", minimumPixelSize: 128, maximumScale: 20000, }, }); // Gets or sets what the camera is currently tracking Entity example viewer.trackedEntity = entity; var i = 0 ; setInterval(function(){
viewer.entities.getById("plane").position=Cesium.Cartesian3.fromDegrees( -123.0744619+i, 44.0503706, 100000, ); i+=0.1; },100); </script>
Camera follows aircraft
Case code :https://github.com/zhangxuhui1992/cesium
边栏推荐
- addmodule_allmerge_ams_im
- Data mining knowledge points sorting (final review version)
- Lambda expression_ Stream stream_ File class
- 删除有序数组中的重复项 II[双指针--多情况统一]
- ROC-RK3566-PC使用10.1寸IPS触摸屏显示
- 香港回归25周年 香港故宫博物馆正式开放成文化新地标
- MySQL8 NDB Cluster安装部署
- 【OpenCV 例程200篇】215. 基于多段线绘制近似椭圆
- Restartprocessifvisible process
- Simpleitk encountered an ITK only supports orthonormal direction cosines error while reading NII
猜你喜欢

Hologres shared cluster helps Taobao subscribe to the extreme refined operation

Raft introduction

JS Es5 can also create constants?

AcWing 第 57 场周赛

On July 2, I invited you to TD Hero online conference

坚果云-在新电脑上同步移动硬盘的文件

Data security compliance has brought new problems to the risk control team

Undistorted resize using pil
![9: Chapter 3: e-commerce engineering analysis: 4: [general module]; (to be written...)](/img/96/cbed98ec69c952f1d231ce2ed25aab.png)
9: Chapter 3: e-commerce engineering analysis: 4: [general module]; (to be written...)

商单视频播放超2000万!农院改造为何屡被催更?
随机推荐
leetcode:1042. 不邻接植花【随机填入符合要求的 + 后面不会形成矛盾 + set.pop】
[JVM] class loading related interview questions - class loading process and parental delegation model
安全帽佩戴检测算法研究
Differential analysis between different groups nichenet for silicosis runs successfully!
Several cross end development artifacts
Jspreadsheet/ce JExcel: more data fields than the given fields (columns) will lead to blank columns. Solution
香港回归25周年 香港故宫博物馆正式开放成文化新地标
Geo read single cell CSV expression matrix single cell column name change Seurat
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
平面相交与平面方程
利用PIL进行不失真的resize
Mathematical modeling for war preparation 34-bp neural network prediction 2
idea必用插件
Lambda表达式_Stream流_File类
Jsr303 and common validator implementations
数据安全合规之后,给风控团队带来了新的问题
列表变成向量 列表变向量 list vector
parker变量柱塞泵PV092R1K1T1NMMC
Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API
Exercise book of introduction to database system