当前位置:网站首页>Feasibility of importing UE4 using gltf with instances
Feasibility of importing UE4 using gltf with instances
2022-06-24 01:16:00 【Jean】
author :Huang Jiahe
Catalog | Use... With instances Gltf Import UE4 The feasibility of 1. Used by jinhengyu js A containing instance is generated Gltf 2. take Gltf Import UE4 3. Conclusion Take the artificial island as an example file size Import effect And FBX Comparison file size Name Open source |
|---|
Use... With instances Gltf Import UE4 The feasibility of
1. Use js A containing instance is generated Gltf
File size is :21K
Gltf Contains a cube Mesh,Cube be known as :Cube.009
1. "meshes": [
2. {
3. "name": "Cube.009",
4. "primitives": [
5. {
6. "attributes": {
7. "POSITION": 0
8. },
9. "indices": 1
10. }
11. ]
12. }
13. ]The scene is 10*10 individual Cube Example [ common 100 individual ], Of each model Name by : Number of columns _ Row number
1. "nodes": [
2. {
3. "mesh": 0,
4. "name": "0_0",
5. "translation": [
6. 0,
7. 0,
8. 0
9. ]
10. },
11. {
12. "mesh": 0,
13. "name": "0_1",
14. "translation": [
15. 0,
16. 0,
17. 10
18. ]
19. },.....
20. ]Gltf You can ask jinhengyu about the format requirements of , I don't know if there are other requirements for this .
2. take Gltf Import UE4
Use Datasmith Plug in import Gltf
Parameter selection :Gltf The middle coordinate is expressed in m In units of ,UE4 Middle coordinates in cm In units of , So you have to multiply all the coordinates by 100
Import results :
Only one... Was imported Cube Model , And generate... In the world outline 10*10 A model , and Gltf In the agreement , In line with expectations .
The name of the model in the scene is also the same as Gltf Agreement , It is convenient for subsequent construction ID Corresponding . After testing, it can also support Chinese , however : If UE4 There is already a model with the same name in , New model name suffix will be added _2
There is only one model asset , Of the model UE4 The asset size is 86K, If put 100 individual Cuhe, The total asset size is 8.4M, Greatly reduce the number of models .
Be careful :Gltf in "translation": [ 0, 0, 10] They correspond to each other UE4 Medium X,Z,Y
3. Conclusion
Gltf The model with instantiation is very useful for us . And it can better support .
The test coordinates are 30 It can be imported normally from km away .
Take the artificial island as an example
file size
FBX The models in are pure models
With HZMB-EI-DY-OSD-01-S3_1.fbx For example ,FBX It contains 630 A model , Among them is 627 All of them are the same model
FBX File size is : 23M
Import it into Bentley,Dgn File size is : 33M
Import it into UE4 In the following ,UE The asset size is : 76M
Import effect
To import Bentley As an example
You can see that most models are identical , But it is not a shared component , Will cause the file to be on the hard disk 、 A large amount is stored in the memory .
3dmax A screenshot of the model
Gltf Model files can use instantiated models , That is, if there is... In the model file 300 An example of the same model , Only the position of the model is changed 、 rotate 、 The zoom , In this case Gltf Save only one copy of the model , Other models reuse this model , It can greatly reduce the file size , Improve file reading speed .
And FBX Comparison
file size
FBX The stored model does not contain instance effects , File storage is large , Reading files is slow .
Gltf Can store instance models , File storage is small , Read files faster .
If the models of the whole bridge are available in the future , The amount of model data will be very large , It is a burden for both hard disk and memory . To make it easier to view the model , It requires a lot of memory , Use Gltf Instance model can reduce memory and hard disk
Name
FBX The name contained in is garbled
Gltf The name of , Strictly follow the... In the field name name , Easy to control
Open source
FBX The disadvantage of the format is that it is a closed format . visit FBX The only official way to use the data in the file is to use the official SDK.
Gltf The format is open 3D Model and scene formats , It aims to effectively transmit rich scenes 3D data .
Gltf Easy to read and write , You can use one of several open source libraries to glTF The file is read into the custom application , You can also write your own import program .glTF Format use JSON Descriptor file , This document describes glTF Contents and properties of .
边栏推荐
- 【SPRS J P & RS 2022】小目标检测模块:A Normalized Gaussian Wasserstein Distance for Tiny Object Detection
- Basic DDoS commands
- Map design
- ShardingSphere-proxy-5.0.0容量范围分片的实现(五)
- [ICPR 2021] tiny object detection in aerial images
- Talk to Wu Jiesheng, head of Alibaba cloud storage: my 20 years of data storage (unlimited growth)
- 【小程序】相对路径和绝对路径的表示符
- Dart series part: asynchronous programming in dart
- Everything I see is the category of my precise positioning! Open source of a new method for saliency map visualization
- [shutter] how to use shutter packages and plug-ins
猜你喜欢

【Redis进阶之ZipList】如果再有人问你什么是压缩列表?请把这篇文章直接甩给他。

Real time computing framework: Spark cluster setup and introduction case

An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!

Cvpr2022 𞓜 thin domain adaptation

一次 MySQL 误操作导致的事故,「高可用」都顶不住了!

【CVPR 2022】高分辨率小目标检测:Cascaded Sparse Query for Accelerating High-Resolution Smal Object Detection

13 `bs_duixiang.tag标签`得到一个tag对象

Theoretical analysis of countermeasure training: adaptive step size fast countermeasure training

【ICPR 2021】遥感图中的密集小目标检测:Tiny Object Detection in Aerial Images

Installation and use of winscp and putty
随机推荐
A review of Tencent digital ecology conference · wechat low code special session
2022 postgraduate entrance examination experience sharing [preliminary examination, school selection, re examination, adjustment, school recruitment and social recruitment]
牛学长周年庆活动:软件大促限时抢,注册码免费送!
[applet] indicator of relative path and absolute path
Version ` zlib 1.2.9 "not found (required by / lib64 / libpng16.so.16)
杂乱的知识点
[ICPR 2021] tiny object detection in aerial images
Golang gets the start timestamp and end timestamp of a past or future week or month
Map data types in golang
CSDN articles crawl the top ten bloggers' articles and convert them to MD
LSF opens job idle information to view the CPU time/elapse time usage of the job
If you want to open an account for stock trading, is it safe to open an account online-
[CVPR 2020 oral] a physics based noise formation model for extreme low light raw denoising
Perhaps the greatest romance of programmers is to commemorate their dead mother with a software
[OSG] OSG development (04) - create multiple scene views
Container JVM that has to be picked up
2021-11-21: map[i][j] = = 0, which means that (I, J) is an ocean. If you cross it, the cost will be
ctfhub---SSRF
How to write peer-reviewed papers
[applet] realize the effect of double column commodities