vault backup: 2025-01-06 22:38:26

This commit is contained in:
BlueRose 2025-01-06 22:38:26 +08:00
parent 0c2963ce69
commit 85645d08ca
2 changed files with 20 additions and 1 deletions

View File

@ -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构建PMCPMC的MaterialSection是正常的。
1. UKismetProceduralMeshLibrary::CopyProceduralMeshFromStaticMeshComponent()

View File

@ -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)