# velocity passの出力について

**URL:** <https://forums.unrealengine.com/t/velocity-pass/481413>\
**Category:** Rendering\
**Tags:** unreal-engine, Motion-Blur, velocity, Rendering, question\
**Created:** [April 5, 2021, 11:34am UTC](https://forums.unrealengine.com/t/velocity-pass/481413 "2021-04-05T11:34:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_10c3631f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_10c3631f1](https://forums.unrealengine.com/u/anonymous_user_10c3631f1)\
**Post date:** [April 5, 2021, 11:34am UTC](https://forums.unrealengine.com/t/velocity-pass/481413/1 "2021-04-05T11:34:50Z")

</div>

[https://docs.unrealengine.com/ja/AnimatingObjects/Sequencer/Workflow/RenderAndExport/HighQualityMediaExport/RenderPasses/index.html](https://docs.unrealengine.com/ja/AnimatingObjects/Sequencer/Workflow/RenderAndExport/HighQualityMediaExport/RenderPasses/index.html)  
↑を参考に  
UE4.26.1のMovie Render Queueを使用してvelocity passを出力して  
Nukeにてモーションブラーを適用したいと思っております。

スターターコンテンツの球体にアニメーションを付けただけの簡単なシーンでテストしています。

 ![334802-ls-test-b0003.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/5/66514d9aa65e1ab37a8f9837e908e1c9190b26b0.jpeg)

ただしvelocity passがうまく処理できていないのか、単一色の出力結果しか得られません。

> **[Nothing rendered in Velocity Pass from Sequencer](https://forums.unrealengine.com/questions/951805/view.html)**
>
> Hi, I’m struggling to render a velocity pass out of Sequencer. The rendered frame is always a single color with out any information in it. If I animate the camera it does give me some flat information in the render. Howver it never gives me velocity...

↑の方同様の結果の状態です。  
こちらの方はPost Process Materialの適用のアドバイスで上手くいったような感じでしたので  
自分でも試したのですが、上手くいかず真っ黒の結果が出力されました。

 ![334801-motionblur-01.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/9/1193db463cbc9492315c4d505b1fc37d9dde7737.png)

4.26.1で同様の処理をしている方がいたら正常にレンダリング出来ておりますでしょうか。  
何かおかしな設定箇所があれば、ご指摘頂きたいと思います。

---

<div class="post-metadata">

**Author:** ![T\_Sumisaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@T\_Sumisaki](https://forums.unrealengine.com/u/T_Sumisaki)\
**Post date:** [April 6, 2021, 2:00pm UTC](https://forums.unrealengine.com/t/velocity-pass/481413/2 "2021-04-06T14:00:00Z")

</div>

こちらの手元ではDocument通りに設定してVelocityPassが出力されていますね  
PostProcessMaterialもMovieRenderQueueに付属しているMotionVectorsでそれらしきものが出ています

見落としやすいと思われるチェック項目は以下のとおりです

- ProjectSettingsの `Output velocities during base pass` がONになっているか
- ConsoleCommandで `r.BasePassForceOutputsVelocity 1` を実行したか

触って比べてみた感じはProjectSettingsの項目さえ有効になっていれば出力されるようですね  
一度確認してみてください

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_10c3631f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_10c3631f1](https://forums.unrealengine.com/u/anonymous_user_10c3631f1)\
**Post date:** [April 7, 2021, 7:03am UTC](https://forums.unrealengine.com/t/velocity-pass/481413/3 "2021-04-07T07:03:40Z")

</div>

T\_Smisaki様

ご返答ありがとうございます。  
  
ご指摘のように"Output velocities during base pass"の有効化で無事出力できました。  
  
また、Nukeでのvector blurの適用も無事確認できました。  
  
助かりました!
