# Characterに強めにブラー効果がかかるような調節をしたい

**URL:** <https://forums.unrealengine.com/t/character/410429>\
**Category:** Character & Animation\
**Tags:** Post-Processing, unreal-engine, question, Blueprint\
**Created:** [November 23, 2017, 7:33pm UTC](https://forums.unrealengine.com/t/character/410429 "2017-11-23T19:33:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![katutojiWazen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@katutojiWazen](https://forums.unrealengine.com/u/katutojiWazen)\
**Post date:** [November 23, 2017, 7:33pm UTC](https://forums.unrealengine.com/t/character/410429/1 "2017-11-23T19:33:25Z")

</div>

お世話になっております。  
ポストプロセスエフェクトによって画面にモーションブラーをかける設定がありますが、  
背景には強くかけず、キャラには強めにかけたいです。  
（もしくはScene Depthで取得できるような、カメラ距離によって効果の強弱をつけたい）

このようにモーションブラーの強弱をつける範囲を設定する方法等はありますでしょうか。

---

<div class="post-metadata">

**Author:** ![alwei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alwei/32/1194579_2.png) [@alwei](https://forums.unrealengine.com/u/alwei)\
**Post date:** [November 26, 2017, 5:25am UTC](https://forums.unrealengine.com/t/character/410429/2 "2017-11-26T05:25:19Z")

</div>

標準のモーションブラーでは不可能です。ポストプロセスマテリアルを使う必要があります。実装難易度は高めですが、以下に方法記載しておきます。

まずは独自のモーションブラーを実装しておく必要があります。この部分が正直一番難易度が高いです。モーションブラーではなく、ラジアルブラーの実装方法であれば見つけたので、紹介しておきます。

[https://forums.unrealengine.com/community/community-content-tools-and-tutorials/28458-radial-blur-postprocess-material](https://forums.unrealengine.com/community/community-content-tools-and-tutorials/28458-radial-blur-postprocess-material)

モーションブラーをかけたいアクター(キャラクター)のCustom DepthもしくはCustom Stencilのチェックをオンにします。

ポストエフェクトマテリアル内部でSceneTextureノードでCustom Depth、Custom Stencilのどちらかを使って、キャラクターのシルエット情報を取得します。あとはシルエットを取得したキャラクターに対してのみ、通常のモーションブラーを強くかけるように指定を行います。

シルエットの取得自体は以下の記事が参考になります。

[http://unrealengine.hatenablog.com/entry/2016/05/30/220000](http://unrealengine.hatenablog.com/entry/2016/05/30/220000)

難易度は高いですが、不可能ではありません。ぜひ挑戦してみてください。

---

<div class="post-metadata">

**Author:** ![katutojiWazen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@katutojiWazen](https://forums.unrealengine.com/u/katutojiWazen)\
**Post date:** [November 26, 2017, 1:59pm UTC](https://forums.unrealengine.com/t/character/410429/3 "2017-11-26T13:59:21Z")

</div>

ご回答ありがとうございます！ご紹介していただいた情報を元に出来る限りやってみたいと思います。ポストプロセスの効果を個別にかける方法は、また他の事にも応用がききそうですので参考にさせていただきます。
