Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syui committed Feb 7, 2025
1 parent eb26189 commit fe22a22
Show file tree
Hide file tree
Showing 22 changed files with 138 additions and 10 deletions.
22 changes: 18 additions & 4 deletions book/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@
* [version](default/00_version.md)
* [start](default/01_start.md)
* [install](default/02_install.md)
* [blueprint](default/03_blueprint.md)
* [gas](gas/README.md)
* [新しいキャラを追加する](gas/00_character_new.md)
* [飛びつける高さを増やす](gas/01_jump_high.md)
* [tips](default/03_tips.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 changes: 5 additions & 0 deletions book/city/01_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 海の境界を消す

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


4 changes: 4 additions & 0 deletions book/city/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# city sample

[city sample](https://www.unrealengine.com/marketplace/ja/product/city-sample)

Binary file modified book/cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/cover_b.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions book/crs/01_character.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# CRでキャラクターを動かす

`control rig``CR_xxx`というファイル名がつけられています。

4 changes: 4 additions & 0 deletions book/crs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# control rig sample

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

3 changes: 2 additions & 1 deletion book/default/00_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion book/gas/00_character_new.md → book/gas/01_character.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 新しいキャラを追加する
# キャラクターを追加する

これには`IKリターゲット`が必要です。

Expand Down
2 changes: 1 addition & 1 deletion book/gas/01_jump_high.md → book/gas/02_jump.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 飛びつける高さを増やす
# 飛びつける高さを増やす

1. `Content/Blueprints/CBP_SandboxCharacter`を開いて、関数の`TryTraversalAction`を編集します。
2. 一番下の`Max:275``Max:475`に変更します。
Expand Down
8 changes: 8 additions & 0 deletions book/gas/03_vrm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# キャラクターの見た目を変える

キャラクターの見た目を変えるには`.vrm`を使うと便利です。これは`pixiv`が作っている規格です。

ueで読み込むには`vrm4u`というpluginを使用します。

## vrm4u

41 changes: 41 additions & 0 deletions book/gas/04_vmc.md
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions book/gas/05_kawaii.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 揺れものを設定する

[kawaiiphysics](https://github.com/pafuhana1213/kawaiiphysics)

9 changes: 9 additions & 0 deletions book/gas/06_camera.md
Original file line number Diff line number Diff line change
@@ -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>


10 changes: 7 additions & 3 deletions book/gas/README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -56,9 +60,9 @@ characterの動きは`/Content/Blueprints/ABP_SandboxCharacter`で設定され

ゲームを再生してみると先ほどと同じkeyで動きます。

## blueprint
## tips

基本的なテクニックを紹介しています。

[/default/03_blueprint.html](/default/03_blueprint.html)
[/default/03_tips.html](/default/03_tips.html)

5 changes: 5 additions & 0 deletions book/json/01_varest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# apiから情報を取得する

[varest](https://github.com/ufna/VaRest)などのpluginを使うと便利です。しかし、supportが終了しているため独自にbuildする必要があります。あるいは有料のものを購入するのもいいでしょう。


3 changes: 3 additions & 0 deletions book/json/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# json blueprint utilities

`json`を扱う。
3 changes: 3 additions & 0 deletions book/plan/01_flying.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# superhero flight animations

[superhero flight animations](https://www.fab.com/ja/listings/41185c19-5191-4153-8293-8cc9901efa95)
7 changes: 7 additions & 0 deletions book/plan/02_uds.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ultra dynamic sky

[ultra dynamic sky](https://docs.google.com/document/d/1xAr0Hd3mY7Mp0g0waKLUvJaddUPaVxEeRoEEFXctCE0/)

blueprintなどでも`uds`と略されます。


3 changes: 3 additions & 0 deletions book/plan/03_ocean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ocean waves

[ocean waves](https://www.unrealengine.com/marketplace/ja/product/ocean-waves)
9 changes: 9 additions & 0 deletions book/plan/README.md
Original file line number Diff line number Diff line change
@@ -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|惑星の海を作る|


0 comments on commit fe22a22

Please sign in to comment.