当前位置:网站首页>3D model downloading and animation control
3D model downloading and animation control
2022-06-29 12:59:00 【giao00000】
3D model download and animation control
List of articles
1. Model download address
3D Warehouse https://3dwarehouse.sketchup.com/
Sketchfab https://sketchfab.com/
STK Model download :STK V11.2 Versions and above provide
CZMLExport function , The model service address will be filled in when exporting , The default is http://assets.agi.com/models/

Exporting CZML When you file STK The corresponding model address will be automatically associated according to the model set by each object in the scene ( Is limited to STK Desktop built-in 3D model ). Then you can open CZML File to view the specific model address , Download manually , Such as http://assets.agi.com/models/f-22a_raptor.gltf

According to STK Self contained mdl Model to write NodeJS The script automatically downloads the corresponding gltf Model
/** * download AGI Three dimensional model */
// File download Required basic classes
var fs = require("fs");
var path = require("path");
var request = require("request");
// Create a folder Directory Determine whether the file is created
var dirPath = path.join(__dirname, "file");
if (!fs.existsSync(dirPath)) {
fs.mkdirSync(dirPath);
console.log(" Folder created successfully ");
} else {
console.log(" Folder already exists ");
}
// Read the local file directory (STK The installation directory )
const readDir = "D:\\Program Files\\AGI\\STK 11\\STKData\\VO\\Models\\Land";
fs.readdir(readDir, (err, files) => {
if (err) {
console.log(" Failed to read file ");
}
console.log(files);
files.forEach((item) => {
// The filter suffix is gif The file of
let gifReg = /gif$/;
if (gifReg.test(item)) {
console.log(item);
// Intercept model name
let modelName = item.slice(0, item.length - 4) + ".gltf";
let url = "https://assets.agi.com/models/" + modelName;
let stream = fs.createWriteStream(path.join(dirPath, modelName));
request(url).pipe(stream).on("close", function (err) {
console.log(" file [" + modelName + "] The download ");
});
}
})
})
2. Animation control
Mainly in the Cesium Animation and joint control of 3D model in application , The format of 3D model is gltf Format .
Animation control can be divided into two types :
Model built-in animation : The model itself includes animation , There is animation when modeling the model , Such as the rotation of helicopter propeller , Embodied in gltf In the file is
animationsattribute . in addition Cesium Provided the interfaceRunAnimationYou can control whether to run the animation .
Manual control through model joints : The model includes a series of joints , Such as rocket engine spitting fire 、 Primary and secondary separation, etc , Embodied in gltf In the file is
articulations, coordination Cesium The interface can control the movement of specific joints of the model at different times ; About how to be in gltf Write in file articulations attribute , You can refer to
[1]. https://agiweb.secure.force.com/faqs/articles/Keyword/What-Software-Setup-is-Required-to-Convert-Models-to-glTF
[2]. https://github.com/AnalyticalGraphicsInc/gmdf/tree/master/samples
[3]. https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/AGI_articulations/README.md
边栏推荐
- 中职网络安全技能竞赛之应用服务漏洞扫描与利用(SSH私钥泄露)
- [intelligent QBD risk assessment tool] Shanghai daoning brings you leanqbd introduction, trial and tutorial
- 1. opencv realizes simple color recognition
- How to create new user for ORACLE 19c (CDB & PDB)
- Adjacency matrix and adjacency table structure of C # realization graph
- PyGame accurately detects image collision
- 面试突击61:说一下MySQL事务隔离级别?
- MySQL master-slave synchronous asynchronous replication semi synchronous replication full synchronous replication
- [comprehensive case] credit card virtual transaction identification
- Newton inequality
猜你喜欢

How to calculate win/tai/loss in paired t-test

倍福TwinCAT3 的OPC_UA通信测试案例

Qt中的UI文件介绍

Cereal mall project

Go Senior Engineer required course | I sincerely suggest you listen to it. Don't miss it~

测试--自动化测试:关于unittest框架

解决问题:ModuleNotFoundError: No module named ‘pip‘

cnpm报错‘cnpm‘不是内部或外部命令,也不是可运行的程序或批处理文件

Go learning - build a development environment vscode development environment golang

Comparison table of LR and Cr button batteries
随机推荐
QQ集体被盗号,猝不及防的大型社死名场面
huffman编码
nvtmpp
推荐模型复现(一):熟悉Torch-RecHub框架与使用
nacos启动报错
Recommended model recurrence (I): familiar with torch rechub framework and use
Comment calculer Win / Tai / Loss in paired t - test
Deep understanding of volatile keyword
Method area of JVM
LeetCode_ Double pointer_ Medium_ 328. parity linked list
Pygame 对图像进行翻转
LeetCode_双指针_中等_328.奇偶链表
Testing -- automated testing: about the unittest framework
Hystrix断路器
How to create new user for ORACLE 19c (CDB & PDB)
超 Nice 的表格响应式布局小技巧
How to fix ORA-01017:用户名/口令无效 登录拒绝
Interview shock 61: tell me about MySQL transaction isolation level?
SCHIEDERWERK电源维修SMPS12/50 PFC3800解析
Recurrence of recommended models (IV): multi task models esmm and MMOE