近期热门
Houdini Vat流程及Niagara流程 原作者:鱼非鱼

Houdini Vat流程及Niagara流程 原作者:鱼非鱼

 !heats_icon! [复制链接]
1575 2 73 8 5天前
文章原作者:鱼非鱼
⼀、相关插件安装
①安装Houdini的时候勾选“houdini engin for UE”,同时勾选安装Labs。
②将下⾯第⼀张截图中的两个⽂件夹拷⻉到第⼆张截图显⽰的路径下
01.12.1.png
③设置⾃动启动插件(⾮必要,只是为了⽅便),如下图所⽰
01.12.2.png
④将下⾯第⼀张截图中的两个⽂件夹拷⻉到第⼆张截图显⽰的路径下。
01.12.3.png
如果不知道这个⽂件夹在哪,可以根据下图点击红⾊框,这样Houdini会直接跳转到相应⽂件夹。
01.12.4.png
安装成功之后UE插件⽬录下会显⽰,如下图所⽰
01.12.5.png
⼆、数据导⼊流程
1、rigid body
①数据导出导⼊
01.12.6.png
01.12.7.png
01.12.8.png
01.12.9.png
01.12.10.png
01.12.11.png
注意:导⼊数据数据时要严格按照导⼊附录开启或关闭相关选项。
01.12.12.png
对贴图执⾏上⾯步骤之后UE将会对贴图做如下修改
01.12.13.png
UE存在⼀个bug,当执⾏这⼀步的之后有时geo还是乱的,这时可以按下图操作修复
01.12.14.png
②创建材质
01.12.15.png
01.12.16.png
01.12.17.png
01.12.20.png
01.12.18.png
01.12.19.png
③将vat添加到定序器
01.12.21.png
01.12.22.png
④将vat加载到Niagara⾥⾯
01.12.23.png
01.12.24.png
01.12.25.png
01.12.26.png
01.12.27.png
实际上,data不⽤导⼊也可以,注意,有时在导⼊Data的并没有Houdini_VAT_Parameters这个选项。
01.12.28.png
实际上,data不⽤导⼊也可以,在⽂件夹⾥⽤记事本打开也可以看到相应的数据,如下图所
01.12.29.png
01.12.30.png
01.12.31.png
01.12.32.png
⑤注意事项
*刚体解算尽量不要从第0帧开始。
*当刚体出现破⾯、炸⾯的情况时可根据以下选项解决
01.12.33.png
01.12.34.png
*刚体是确定的。也就是说刚体从起始帧开始就是确定的,不会死亡。同时刚体是以packed的状态存在。如果不是压缩状态可以⽤softbody导出,但⾯数、点数、拓扑必须是确定的。
2、soft body
soft body的流程刚rigid差不多。这⾥不再介绍。需要注意的是,soft body 的⾯数、点数以及拓扑结构也是需要确定的,在整个缓存⾥不允许有变化。
3、dynamic remeshing
①数据导出导⼊
注:如果rigid body或者soft body的⾯数、点数、拓扑是变化的情况下也可以将它们以dynamic remeshing的⽅式导出到UE。
01.12.35.png
01.12.36.png
01.12.37.png
除了以上步骤,其它的跟rigid body ⼀样。
②注意事项
*geo可以从⽆到有(起始帧可以没有任何东西),或者从有到⽆。
* 01.12.38.png
* 01.12.39.png
4、Particle Sprites
①数据导出导⼊
跟前⾯类型⼀样。particles数量是可以变化的,但是每个粒⼦的id要确定,即,每个粒⼦的id在其⽣命周期内固定不变。
三、Niagara流程
数据导出导⼊
01.12.40.png
01.12.41.png
01.12.42.png
01.12.43.png

附录
I. FBX Import Settings
Make sure the following settings are set to the these values (you can find the settings using the Search bar):
Offset Uniform Scale: 1.0
Import LODs: On
Vertex Color Import Option: Replace
Recompute Normals: Off
Recompute Tangents: Off
Remove Degenerates: Off
Import Static Meshes: On
Fallback Collision Type: None
Build Reversed Index Buffer: Off
Build Scale: 1.0 | 1.0 | 1.0
II. Texture Settings
1. In the Content Browser, select multiple textures.
2. Rght-click on any selected textures and go to Scripted Asset Actions.
3. Select either Houdini Config Textures for VAT (HDR) or Houdini Config Textures for VAT (SDR) to match Settings > All Modes > Texture Format on the VAT node in Houdini.
4. Hit Ctrl+S on selected textures to confirm the changes.
5. In Unreal, sometimes there are issues with power-of-two textures that have data in their alpha channels,in which case, consider using Houdini Config Textures for VAT (HDR) even if you exported those textures in SDR (non-HDR) formats in Houdini.
III. Static Mesh Settings
If there are tiny holes, tearing and flickering in your animation, particularly with the Dynamic Remeshing mode,
consider open the mesh with the Mesh Editor, and then turn on LOD0 > Build Settings > UE4 Compatible UVs.
If there are still issues, consider turning on LOD0 > Build Settings > Use Full Precision UVs.
IV. Real-Time Data (JSON) File
VAT 3.0 normally does not require the Real-Time Data file, but you may still export it in certain situations:
A. You definitely have to use the legacy workflow in order to apply VAT materials to instanced meshes (ISM/HISM) or mesh particles.
B. You probably should use the legacy workflow if your animation spans a huge area.
Steps:
1. On the VAT node, go to Advanced, turn on Support Real-Time Instancing.
2. Render your assets.
3. In the UE Material Instance, turn on Support Legacy Parameters and Instancing.
4. Enable all six parameters now appearing below Support Legacy Parameters and Instancing.
5. Follow their tooltip to batch-set their values (all six bound parameters share the same tooltip).
73
点赞
+10
打赏
8
添加到收藏夹

40

点击复制链接

使用微信扫码分享
一次扣10个券
全部评论4
您需要登录后才可以回帖 登录

学特效请加UP 客服微信: a18502083676,进群沟通学习哈
4天前  ·  3楼
回复

使用道具 举报

感谢楼主的分享, 感谢感谢
4天前  ·  2楼
回复

使用道具 举报

  • 老焦 
    期待对你有帮助嘿嘿,我们后续也会持续分享哈
    回复
    more_vert
    4天前
您当前使用的浏览器IE内核版本过低会导致网站显示错误

请使用高速内核浏览器或其他浏览器