当前位置:网站首页>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 .
边栏推荐
- CSDN articles crawl the top ten bloggers' articles and convert them to MD
- LMS Virtual. Derivation method of lab acoustic simulation results
- 所见之处都是我精准定位的范畴!显著图可视化新方法开源
- Local cache selection (guava/caffeine/ohc) and performance comparison
- Golang gets the start timestamp and end timestamp of a past or future week or month
- Force buckle deletes duplicates in the sort array
- Relationship between continuous testing and quality assurance
- 阿里巴巴面试题:多线程相关
- [technology planting grass] skillfully use cloud function to create wechat web page authorization public service
- How to open Tencent enterprise mailbox and Tencent enterprise mailbox login portal
猜你喜欢

Perhaps the greatest romance of programmers is to commemorate their dead mother with a software

Use recursion to form a multi-level directory tree structure, with possibly the most detailed notes of the whole network.

Installation and use of winscp and putty

WinSCP和PuTTY的安装和使用

【小程序】实现双列商品效果

Open source model library of flying propeller industry: accelerating the development and application of enterprise AI tasks

Kitten paw: FOC control 15-mras method of PMSM

牛学长周年庆活动:软件大促限时抢,注册码免费送!

Data management: business data cleaning and implementation scheme
![[applet] when compiling the preview applet, a -80063 error prompt appears](/img/4e/722d76aa0ca3576164fbed4e2c4db2.png)
[applet] when compiling the preview applet, a -80063 error prompt appears
随机推荐
Part of the problem solution of unctf2020
Installation and use of winscp and putty
CSDN auto sign in
GNN upper edge distributor! Instead of trying to refine pills, you might as well give your GNN some tricks
用一个软件纪念自己故去的母亲,这或许才是程序员最大的浪漫吧
ctfhub---SSRF
LMS Virtual. Derivation method of lab acoustic simulation results
Leetcode lecture on algorithm interview for large factories 2 Time space complexity
【Redis进阶之ZipList】如果再有人问你什么是压缩列表?请把这篇文章直接甩给他。
13 `bs_ duixiang. Tag tag ` get a tag object
Basic templates for various configurations of the SSM framework
Local cache selection (guava/caffeine/ohc) and performance comparison
Longest substring without duplicate characters
One article introduces you to the world of kubernetes
. Net core cross platform development bbs forum (connotation source code + complete operation video)
【CVPR 2020】会议版本:A Physics-based Noise Formation Model for Extreme Low-light Raw Denoising
Shardingsphere-proxy-5.0.0 implementation of capacity range partition (V)
DML operation
一次 MySQL 误操作导致的事故,「高可用」都顶不住了!
How to view kubernetes API traffic by grabbing packets