diff --git a/book/SUMMARY.md b/book/SUMMARY.md index ccb4ea8..abd91be 100644 --- a/book/SUMMARY.md +++ b/book/SUMMARY.md @@ -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) diff --git a/book/city/01_remove.md b/book/city/01_remove.md new file mode 100644 index 0000000..ba88473 --- /dev/null +++ b/book/city/01_remove.md @@ -0,0 +1,5 @@ +# 海の境界を消す + +海には境界があってそれが惑星システム(planet system)を構築する際に邪魔になるので消します。 + + diff --git a/book/city/README.md b/book/city/README.md new file mode 100644 index 0000000..32e8d33 --- /dev/null +++ b/book/city/README.md @@ -0,0 +1,4 @@ +# city sample + +[city sample](https://www.unrealengine.com/marketplace/ja/product/city-sample) + diff --git a/book/crs/01_character.md b/book/crs/01_character.md new file mode 100644 index 0000000..ccaaed0 --- /dev/null +++ b/book/crs/01_character.md @@ -0,0 +1,4 @@ +# CRでキャラクターを動かす + +`control rig`は`CR_xxx`というファイル名がつけられています。 + diff --git a/book/crs/README.md b/book/crs/README.md new file mode 100644 index 0000000..22d4be8 --- /dev/null +++ b/book/crs/README.md @@ -0,0 +1,4 @@ +# control rig sample + +[control rig sample](https://www.fab.com/ja/listings/2ce3fe44-9ee6-4fa7-99fc-b9424a402386) + diff --git a/book/default/00_version.md b/book/default/00_version.md index ccbec92..e50374a 100644 --- a/book/default/00_version.md +++ b/book/default/00_version.md @@ -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 diff --git a/book/gas/00_character_new.md b/book/gas/01_character.md similarity index 96% rename from book/gas/00_character_new.md rename to book/gas/01_character.md index 46c0b83..1873ee0 100644 --- a/book/gas/00_character_new.md +++ b/book/gas/01_character.md @@ -1,4 +1,4 @@ -## 新しいキャラを追加する +# キャラクターを追加する これには`IKリターゲット`が必要です。 diff --git a/book/gas/01_jump_high.md b/book/gas/02_jump.md similarity index 94% rename from book/gas/01_jump_high.md rename to book/gas/02_jump.md index d502e58..5bfea7f 100644 --- a/book/gas/01_jump_high.md +++ b/book/gas/02_jump.md @@ -1,4 +1,4 @@ -## 飛びつける高さを増やす +# 飛びつける高さを増やす 1. `Content/Blueprints/CBP_SandboxCharacter`を開いて、関数の`TryTraversalAction`を編集します。 2. 一番下の`Max:275`を`Max:475`に変更します。 diff --git a/book/gas/03_vrm.md b/book/gas/03_vrm.md new file mode 100644 index 0000000..b913f23 --- /dev/null +++ b/book/gas/03_vrm.md @@ -0,0 +1,8 @@ +# キャラクターの見た目を変える + +キャラクターの見た目を変えるには`.vrm`を使うと便利です。これは`pixiv`が作っている規格です。 + +ueで読み込むには`vrm4u`というpluginを使用します。 + +## vrm4u + diff --git a/book/gas/04_vmc.md b/book/gas/04_vmc.md new file mode 100644 index 0000000..2012cc9 --- /dev/null +++ b/book/gas/04_vmc.md @@ -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を有効にする + + + +VMCモードを有効にすると、キャラクターがidle状態、つまり、停止しているときだけVMCのモーションキャプチャを反映させます。 +これはVMCモードの変数を用意し、ABPで条件を書いて実現しています。キャラクターを動かしたときは一時的に無効にします。 diff --git a/book/gas/05_kawaii.md b/book/gas/05_kawaii.md new file mode 100644 index 0000000..3894188 --- /dev/null +++ b/book/gas/05_kawaii.md @@ -0,0 +1,4 @@ +# 揺れものを設定する + +[kawaiiphysics](https://github.com/pafuhana1213/kawaiiphysics) + diff --git a/book/gas/06_camera.md b/book/gas/06_camera.md new file mode 100644 index 0000000..d579296 --- /dev/null +++ b/book/gas/06_camera.md @@ -0,0 +1,9 @@ +# カメラワークを設定する + +スキル発動時にカメラをぐるっと回す演出です。 +スキル発動時にボス戦であれば演出されます。 +正面カメラを設置し、タイムラインで動かしたあとに通常(後方)カメラに切り替えることで実現しています。 + + + + diff --git a/book/gas/README.md b/book/gas/README.md index d211fa7..a0b1539 100644 --- a/book/gas/README.md +++ b/book/gas/README.md @@ -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) diff --git a/book/json/01_varest.md b/book/json/01_varest.md new file mode 100644 index 0000000..655e2b9 --- /dev/null +++ b/book/json/01_varest.md @@ -0,0 +1,5 @@ +# apiから情報を取得する + +[varest](https://github.com/ufna/VaRest)などのpluginを使うと便利です。しかし、supportが終了しているため独自にbuildする必要があります。あるいは有料のものを購入するのもいいでしょう。 + + diff --git a/book/json/README.md b/book/json/README.md new file mode 100644 index 0000000..942b924 --- /dev/null +++ b/book/json/README.md @@ -0,0 +1,3 @@ +# json blueprint utilities + +`json`を扱う。 diff --git a/book/plan/01_flying.md b/book/plan/01_flying.md new file mode 100644 index 0000000..99a4770 --- /dev/null +++ b/book/plan/01_flying.md @@ -0,0 +1,3 @@ +# superhero flight animations + +[superhero flight animations](https://www.fab.com/ja/listings/41185c19-5191-4153-8293-8cc9901efa95) diff --git a/book/plan/02_uds.md b/book/plan/02_uds.md new file mode 100644 index 0000000..e0fd748 --- /dev/null +++ b/book/plan/02_uds.md @@ -0,0 +1,7 @@ +# ultra dynamic sky + +[ultra dynamic sky](https://docs.google.com/document/d/1xAr0Hd3mY7Mp0g0waKLUvJaddUPaVxEeRoEEFXctCE0/) + +blueprintなどでも`uds`と略されます。 + + diff --git a/book/plan/03_ocean.md b/book/plan/03_ocean.md new file mode 100644 index 0000000..6bf7fe5 --- /dev/null +++ b/book/plan/03_ocean.md @@ -0,0 +1,3 @@ +# ocean waves + +[ocean waves](https://www.unrealengine.com/marketplace/ja/product/ocean-waves) diff --git a/book/plan/README.md b/book/plan/README.md new file mode 100644 index 0000000..fdc0a13 --- /dev/null +++ b/book/plan/README.md @@ -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|惑星の海を作る| + +