当前位置:网站首页>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
- ROC-RK3566-PC使用10.1寸IPS触摸屏显示
- parker比例溢流阀RS10R35S4SN1JW
- 深度学习——(2)几种常见的损失函数
- dart:字符串replace相关的方法
- Talk about telecommuting | community essay solicitation
- geo 读取单细胞csv表达矩阵 单细胞 改列名 seurat
- Lambda表达式_Stream流_File类
- Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API
- Etcd tutorial - Chapter 8 compact, watch, and lease APIs for etcd
猜你喜欢

Compile u-boot source code for stm32p157 development board

More than 20million videos have been played in the business list! Why is the reform of Agricultural Academies urged repeatedly?

“推广+搞笑剧情”,如何碰撞出爆款的火花?

Design of piece counter based on 51 single chip microcomputer
![[200 opencv routines] 215 Drawing approximate ellipse based on polyline](/img/43/fd4245586071020e5aadb8857316c5.png)
[200 opencv routines] 215 Drawing approximate ellipse based on polyline

Wechat emoticons are written into the judgment, and the OK and bomb you send may become "testimony in court"

Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API

parker比例溢流阀RS10R35S4SN1JW

阿里云盘分享压缩包

登录框Tricks
随机推荐
巩固入门-C#基础变量和常量
NielsenIQ迎来零售实验室负责人Dawn E. Norvell,将加速扩张全球零售战略
数据挖掘知识点整理(期末复习版)
深度学习——(2)几种常见的损失函数
pref使用记录
idea必用插件
RTP sending PS stream zero copy scheme
Halcon knowledge: regional topics [07]
基于51单片机的计件器设计
Etcd教程 — 第九章 Etcd之实现分布式锁
Dart: string replace related methods
Home office discussion on the experience of remote assistance to quickly improve efficiency | community essay solicitation
Undistorted resize using pil
Consolidate entry-C basic variables and constants
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)
In order to make remote work unaffected, I wrote an internal chat room | community essay
Property or method “approval1“ is not defined on the instance but referenced during render
Several cross end development artifacts
Redis elimination strategy
【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)