# CustomUMeshComponent
A minimal Unreal Engine 4 project that contains all the needed source code for a custom mesh component and showcases its usage. This is an example project published with a series of articles that cover the process of creating custom mesh components in UE4.
The intro for the series can be found [here](https://medium.com/realities-io/creating-a-custom-mesh-component-in-ue4-part-0-intro-2c762c5f0cd6)
## UDeformMeshComponent
The example mesh component created in this project is a deform mesh component that can be deformed using a secondary/deform transform. The deformation is very simple; rotation and scale are interpolated by the distace between the vertex position and the secondary transform origin position (Both in world space)
Here's how it looks:
![DeformMeshComponentDemo](ReadmeResources/DeformMeshComponentDemo.gif)
## Modules
### 1. DeformMesh
Contains all the source code for the DeformMeshComponent.
#### Classes and Structs:
* UDeformMeshComponent
* FDeformMeshSection
* FDeformMeshVertexFactory
* FDeformMeshVertexFactoryShaderParameters
* FDeformMeshSceneProxy
* FDeformMeshSectionProxy
### 2. CustomUMeshComponent
The primary game module for the project. Contains an actor that uses the DeformMeshComponent to render a mesh and deform it.
#### Classes and Structs:
* ADeformMeshActor
## Shaders
* **LocalVertexFactory.ush:** A copy of the engine's LocalVertexFactory.ush but with modifications to support the deform mesh vertex factory logic.
没有合适的资源?快使用搜索试试~ 我知道了~
CustomMeshComponent:用于创建自定义网格组件并在虚幻引擎4中使用它的最小源代码。这是一个示例项目,其中发布了一...
共31个文件
uasset:6个
h:5个
cpp:5个
需积分: 38 18 下载量 173 浏览量
2021-05-10
09:30:02
上传
评论
收藏 6.23MB ZIP 举报
温馨提示
CustomUMeshComponent 一个最小的虚幻引擎4项目,其中包含自定义网格组件所需的所有源代码,并展示了其用法。 这是一个示例项目,其中发布了一系列文章,涵盖了在UE4中创建自定义网格组件的过程。 该系列的简介可以在找到 UDeformMeshComponent 在此项目中创建的示例网格部件是变形网格部件,可以使用辅助/变形变换对其进行变形。 变形非常简单。 旋转和比例由顶点位置和辅助变换原点位置(两者在世界空间中)之间的距离插值(这在世界空间中),如下所示: 模组 1.变形网格 包含DeformMeshComponent的所有源代码。 类和结构: UDeformMeshComponent FDeformMeshSection FDeformMeshVertexFactory FDeformMeshVertexFactoryShaderParameters FD
资源详情
资源评论
资源推荐
收起资源包目录
CustomMeshComponent-master.zip (31个子文件)
CustomMeshComponent-master
.gitignore 127B
Content
MainMap_BuiltData.uasset 1KB
Materials
UnlitMat.uasset 127KB
Maps
MainMap_BuiltData.uasset 1.08MB
MainMap.umap 31KB
BPs
DeformController.uasset 19KB
3DModels
statue.uasset 1.49MB
12328_Statue_v1_L2.uasset 1.29MB
MainMap.umap 1KB
LICENSE 1KB
Shaders
Private
LocalVertexFactory.ush 46KB
README.md 1KB
CustomUMeshComponent.uproject 477B
Config
DefaultEditor.ini 2B
DefaultEngine.ini 669B
DefaultGame.ini 95B
ReadmeResources
DeformMeshComponentDemo.gif 2.81MB
Source
CustomUMeshComponent.Target.cs 405B
CustomUMeshComponentEditor.Target.cs 420B
DeformMesh
DeformMesh.h 598B
Classes
Components
DeformMeshComponent.h 5KB
DeformMesh.cpp 579B
DeformMesh.Build.cs 709B
Private
Components
DeformMeshComponent.cpp 32KB
CustomUMeshComponent
CustomUMeshComponent.cpp 225B
CustomUMeshComponentGameModeBase.cpp 100B
CustomUMeshComponentGameModeBase.h 322B
CustomUMeshComponent.h 92B
CustomUMeshComponent.Build.cs 801B
Public
DeformMeshActor.h 1KB
Private
DeformMeshActor.cpp 1KB
共 31 条
- 1
小旗旗
- 粉丝: 24
- 资源: 4557
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0