vault backup: 2025-01-06 22:38:26
This commit is contained in:
parent
0c2963ce69
commit
85645d08ca
@ -5,6 +5,25 @@ excerpt:
|
||||
tags:
|
||||
rating: ⭐
|
||||
---
|
||||
# Assimp
|
||||
加载选项:
|
||||
- aiProcess_JoinIdenticalVertices:
|
||||
- aiProcess_RemoveComponent:
|
||||
- aiProcess_OptimizeMeshes:推荐移除,会导致模型只有一个Material。
|
||||
|
||||
真正的数据都存储在Scene节点`mMeshes[]`、`mMaterials[]`中。其RootNode、ChildrenNode存储对应的数据Index。
|
||||
- mMeshes[]
|
||||
- mVertices[]
|
||||
- mNormals[]
|
||||
- mTextureCoords[]
|
||||
- mFaces[]
|
||||
- mIndices[]
|
||||
- mMaterialIndex
|
||||
## Materials
|
||||
```c++
|
||||
aiMaterial *material = scene->mMaterials[mesh->mMaterialIndex];
|
||||
```
|
||||
|
||||
# UProceduralMeshComponent
|
||||
使用现在StaticMesh构建PMC,PMC的MaterialSection是正常的。
|
||||
1. UKismetProceduralMeshLibrary::CopyProceduralMeshFromStaticMeshComponent()
|
@ -10,7 +10,7 @@ rating: ⭐
|
||||
- 其他代码
|
||||
- [RuntimeStaticMeshImporter](https://github.com/RianeDev/RuntimeStaticMeshImporter)
|
||||
- [RuntimeMeshLoader](https://github.com/Chrizey91/RuntimeMeshLoader)
|
||||
|
||||
- [[Assimp & UProceduralMeshComponent实时载入StaticMesh]]
|
||||
## 相关函数
|
||||
```text
|
||||
bool FSceneImporter::ProcessMeshData(FAssetData& MeshData)
|
||||
|
Loading…
x
Reference in New Issue
Block a user