This commit is contained in:
syui 2025-02-08 02:43:28 +09:00
parent b6efdb52ef
commit bbf151850d
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
19 changed files with 135 additions and 7 deletions

View File

@ -6,7 +6,21 @@
* [start](default/01_start.md)
* [install](default/02_install.md)
* [tips](default/03_tips.md)
* [gas](gas/README.md)
* [新しいキャラを追加する](gas/00_character_new.md)
* [飛びつける高さを増やす](gas/01_jump_high.md)
* [game animation sample](gas/README.md)
* [キャラクターを追加する](gas/01_character.md)
* [飛びつける高さを増やす](gas/02_jump.md)
* [キャラクターの見た目を変える](gas/03_vrm.md)
* [モーションキャプチャで動かす](gas/04_vmc.md)
* [揺れものを設定する](gas/05_kawaii.md)
* [カメラワークの設定する](gas/06_camera.md)
* [control rig sample](crs/README.md)
* [CRでキャラクターを動かす](crs/01_character.md)
* [city sample](city/README.md)
* [海の境界を消す](city/01_remove.md)
* [json blueprint utilities](json/readme.md)
* [apiから情報を取得する](json/01_varest.md)
* [有料アセット](plan/README.md)
* [superhero fligth animations](plan/01_flying.md)
* [ultra dynamic sky](plan/02_uds.md)
* [ocean waves](plan/03_ocean.md)
* [end](end/README.md)

5
book/city/01_remove.md Normal file
View File

@ -0,0 +1,5 @@
# 海の境界を消す
海には境界があってそれが惑星システム(planet system)を構築する際に邪魔になるので消します。

4
book/city/README.md Normal file
View File

@ -0,0 +1,4 @@
# city sample
[city sample](https://www.unrealengine.com/marketplace/ja/product/city-sample)

4
book/crs/01_character.md Normal file
View File

@ -0,0 +1,4 @@
# CRでキャラクターを動かす
`control rig``CR_xxx`というファイル名がつけられています。

4
book/crs/README.md Normal file
View File

@ -0,0 +1,4 @@
# control rig sample
[control rig sample](https://www.fab.com/ja/listings/2ce3fe44-9ee6-4fa7-99fc-b9424a402386)

View File

@ -27,8 +27,9 @@
|name|latest|
|---|---|
|[ultra dynamic sky](https://docs.google.com/document/d/1xAr0Hd3mY7Mp0g0waKLUvJaddUPaVxEeRoEEFXctCE0/)|20250203|空や天候を自動化|
|[superhero flight animations](https://www.fab.com/ja/listings/41185c19-5191-4153-8293-8cc9901efa95)|20241217|空を飛ぶ|
|[ultra dynamic sky](https://docs.google.com/document/d/1xAr0Hd3mY7Mp0g0waKLUvJaddUPaVxEeRoEEFXctCE0/)|20250203|空や天候を自動化|
|[ocean waves](https://www.unrealengine.com/marketplace/ja/product/ocean-waves)|20241217|惑星の海を作る|
## link

View File

@ -1,4 +1,4 @@
## 新しいキャラを追加する
# キャラクターを追加する
これには`IKリターゲット`が必要です。

View File

@ -1,4 +1,4 @@
## 飛びつける高さを増やす
# 飛びつける高さを増やす
1. `Content/Blueprints/CBP_SandboxCharacter`を開いて、関数の`TryTraversalAction`を編集します。
2. 一番下の`Max:275``Max:475`に変更します。

8
book/gas/03_vrm.md Normal file
View File

@ -0,0 +1,8 @@
# キャラクターの見た目を変える
キャラクターの見た目を変えるには`.vrm`を使うと便利です。これは`pixiv`が作っている規格です。
ueで読み込むには`vrm4u`というpluginを使用します。
## vrm4u

41
book/gas/04_vmc.md Normal file
View File

@ -0,0 +1,41 @@
# モーションキャプチャで動かす
カメラ(camera)からcharacterを動かす技術をモーションキャプチャ(motion capture)といいます。様々なprotocol(プロトコル)がありますが、`vrm4u`では[vmc](https://qiita.com/mintan/items/72d63cce4e6197b151b7)というprotocolを使います。
`epicgames`は[livelink](https://dev.epicgames.com/documentation/ja-jp/unreal-engine/live-link-in-unreal-engine)というものを作っています。
必要なものは多く、基本的には`web-camera``client-app`, `ue-plugin`が必要です。私は以下を使っています。
- camera: ートパソコンに付属しているwebカメラ
- client: [webcam motion capture](https://webcammotioncapture.info/)
- plugin: [vrm4u](https://github.com/ruyo/VRM4U)
clientはそれぞれのosにあったものを選びます。無料でも可能ですが、性能的には有料アプリがおすすめです。いくつか紹介しておきます。
この辺の情報は最初はわからないと思いますが、基本的には以下の流れで情報を処理します。
```sh
[camera] --> [client] --> [plugin]
```
## client
|name|body|free|
|---|---|---|
|[vmc](https://github.com/sh-akira/VirtualMotionCapture)|vmcの開発元が出しているclient。protocolと同じ名前がつけられている|🟩|
|[vseeface](https://www.vseeface.icu/)|高性能なclient|🟩|
|[xr animator](https://booth.pm/ja/items/4513654)|お手軽に表示できるclient|🟩|
|[waidayo](https://booth.pm/ja/items/1779185)|iosにも対応しているclient|🟩|
|[vrm posing desktop](https://store.steampowered.com/app/1895630/VRM_Posing_Desktop/)|steamから出ているclient|🟥|
|[webcam motion capture](https://webcammotioncapture.info/)|安定したclient。使ってみた中では動きが一番良かった|🟥|
## build packageを使うときportに注意
clientから送信されるportをpluginで受信します。build packageの`.exe`で確認するときは、editor(エディタ)を落としておきましょう。
## 停止したときだけvmcを有効にする
<iframe width="100%" height="415" src="https://www.youtube.com/embed/BsLOlAr-wBY?si=jahPUVD8YMMfefvm&amp;start=195&amp;mute=1&rel=0&showinfo=0&controls=0&end=204" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
VMCモードを有効にすると、キャラクターがidle状態、つまり、停止しているときだけVMCのモーションキャプチャを反映させます。
これはVMCモードの変数を用意し、ABPで条件を書いて実現しています。キャラクターを動かしたときは一時的に無効にします。

4
book/gas/05_kawaii.md Normal file
View File

@ -0,0 +1,4 @@
# 揺れものを設定する
[kawaiiphysics](https://github.com/pafuhana1213/kawaiiphysics)

9
book/gas/06_camera.md Normal file
View File

@ -0,0 +1,9 @@
# カメラワークを設定する
スキル発動時にカメラをぐるっと回す演出です。
スキル発動時にボス戦であれば演出されます。
正面カメラを設置し、タイムラインで動かしたあとに通常(後方)カメラに切り替えることで実現しています。
<iframe width="100%" height="415" src="https://www.youtube.com/embed/BsLOlAr-wBY?si=jahPUVD8YMMfefvm&amp;start=29&end=34&amp;mute=1&rel=0&showinfo=0&controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

View File

@ -1,7 +1,11 @@
## GASとは
# game animation sample
[game aimation sample](https://www.fab.com/ja/listings/880e319a-a59e-4ed2-b268-b32dac7fa016)はepicgamesが提供しているassetです。
[Game] [A]nimation [S]ampleでGASと略すことがあります。
なお、[G]ame [A]birity [S]ystemもGASなので紛らわしいです。
まずはこれを使ってキャラクター(character)を動かしてみましょう。
## level(map)

5
book/json/01_varest.md Normal file
View File

@ -0,0 +1,5 @@
# apiから情報を取得する
[varest](https://github.com/ufna/VaRest)などのpluginを使うと便利です。しかし、supportが終了しているため独自にbuildする必要があります。あるいは有料のものを購入するのもいいでしょう。

3
book/json/README.md Normal file
View File

@ -0,0 +1,3 @@
# json blueprint utilities
`json`を扱う。

3
book/plan/01_flying.md Normal file
View File

@ -0,0 +1,3 @@
# superhero flight animations
[superhero flight animations](https://www.fab.com/ja/listings/41185c19-5191-4153-8293-8cc9901efa95)

7
book/plan/02_uds.md Normal file
View File

@ -0,0 +1,7 @@
# ultra dynamic sky
[ultra dynamic sky](https://docs.google.com/document/d/1xAr0Hd3mY7Mp0g0waKLUvJaddUPaVxEeRoEEFXctCE0/)
blueprintなどでも`uds`と略されます。

3
book/plan/03_ocean.md Normal file
View File

@ -0,0 +1,3 @@
# ocean waves
[ocean waves](https://www.unrealengine.com/marketplace/ja/product/ocean-waves)

9
book/plan/README.md Normal file
View File

@ -0,0 +1,9 @@
# 有料アセット
|name|latest|
|---|---|
|[superhero flight animations](https://www.fab.com/ja/listings/41185c19-5191-4153-8293-8cc9901efa95)|20241217|空を飛ぶ|
|[ultra dynamic sky](https://docs.google.com/document/d/1xAr0Hd3mY7Mp0g0waKLUvJaddUPaVxEeRoEEFXctCE0/)|20250203|空や天候を自動化|
|[ocean waves](https://www.unrealengine.com/marketplace/ja/product/ocean-waves)|20241217|惑星の海を作る|