1
0
hugo/content/blog/2023-12-03-ue5.md
2024-04-23 22:21:26 +09:00

75 lines
3.4 KiB
Markdown

+++
date = "2023-12-03"
tags = ["ue5","3d"]
title = "ue5を触ってみた4"
slug = "ue5"
+++
今日は
### system
画面にメニューが出てるので非表示
1. まずはHUDを非表示にするため`WBP_MainHUD.uasset`から`is Visibility`のチェックを外す
### animation
いくつか動かないモーションがあります。ue5のモデルを使用すると動くのですが、vroidからリターゲットで作成したものは動かないので、個別調整しました。
2. 落下モーションが動かないので、見てみると、リターゲットで作成されていなかったので、再び`ABP_Player_UE5`からリターゲティングを作成して`AM_Superhero...`を作成する
3. まだ動かないので、`BP_SuperheroFlightComponent.uasset`を編集する。"Play anim montage event."を以下のようにしました。
```
PlayAnimMontage --> Play Anim Montage (Anim Montage) --> (asset) AM_Superhero...
```
4. hoverのモーションも動かないので、`ABP_Player_UE5_xxx`を編集します。"Play hover flight start montage notify event."を以下のようにしました。
```
AnimNotifyHoverStart --> ... --> Play Slot Animation as Dynamic Montage --> (asset) A_Fight_Hover...
```
### shader
cel shaderでモデルをアニメ風にしたい。
5. `BP_Player_UE5_xxx`の編集に入り、コンポーネントの`Camera`から詳細を確認。そこに`Rendering Features`があるので、Post Prosess Material(ポストプロセスマテリアル)に`Cel_Shader(マルっこいやつ)`を選択します。
例えば、以下はue4の対応です。ue5で使えるかはわかりません。
- https://github.com/alwei/PPCelShader
- https://github.com/alwei/PPLineDrawing
![](https://raw.githubusercontent.com/syui/img/master/other/ue5_ai_20231202_203956.png)
![](https://raw.githubusercontent.com/syui/img/master/other/ue5_ai_20231202_221341.png)
![](https://raw.githubusercontent.com/syui/img/master/other/ue5_ai_20231203_175538.png)
![](https://raw.githubusercontent.com/syui/img/master/other/ue5_ai_20231203_200607.png)
![](https://raw.githubusercontent.com/syui/img/master/other/ue5_ai_20231203_203249.png)
![](https://raw.githubusercontent.com/syui/img/master/other/ue5_ai_20231203_203304.png)
### link
気になった記事を幾つかまとめます。
- [assetまとめ](https://ug0001.wixsite.com/unrealcafe/%E3%82%A2%E3%82%BB%E3%83%83%E3%83%88)
- [UE5でつくるセルシェーディング](https://cgworld.jp/regular/202311-ue5toon-04.html)
### 動画ページ作りました
<video controls style="width:100%;"><source src="/ai/video/ue5_ai_0003.mp4"></video>
### 追記、パソコンが治った
思うところがあって壊れてたパソコンを直しました。
電源つかないなあと思って色々やってると電源がついた。起動してみるとbiosが起動しない。やっぱり無理かと思って放置。なにかを思いついて試す。やっぱり無理。また試すというのを3回くらい繰り返すと復活しました。
ただ、gpuのファンが回らなくなってた。これは分解時に破損したものか、昔から破損してたのか、あるいは今回動かなくなったのかわからない。でもgpuの動作には問題ないですね。ファンも他から持ってくればいいだけだし。
再びosが起動したときは嬉しかった。