# Single File EXR with Velocity Channel

**URL:** <https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746>\
**Category:** Issues\
**Tags:** velocity\
**Created:** [March 16, 2012, 1:54pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746 "2012-03-16T13:54:15Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![frame\_michael](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/frame_michael/32/38761_2.png) [@frame\_michael](https://forums.chaos.com/u/frame_michael)\
**Post date:** [March 16, 2012, 1:54pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/1 "2012-03-16T13:54:15Z")

</div>

Hi,  
we have setup our workflow to incorporate single file exrs with all the render elements we need in it.

We are using Reel Smart Motion blur in After Effects to render Motion Blur in post.  
I have managed to get the right results when using pngs (one for each render element) and preserving rgb in AE.  
But i am not able to get the same result with the single file exrs. It seems the velocity channel is getting a different  
gamma than the other channels.

I would really like to stay with the single file exrs and only one render pass (high rendertimes / animation)

We are using 3dsMAX 2012 64bit Vray 2.20.01. Linear workflow.

This is the VFB velocity channel - looking right

This is how the channel looks like when used in AE - all other channels are ok!

This is our render setup for single file EXRs (to my knowledge it only works this way - save separate render channels produces multiple files)

Does anyone have a solution for this - or is it a bug?

best regards  
Michael

 ![velocity-chanel-VFB.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/0/908fa8dade568edbfbce7ac47f83d831f0e61231.jpeg)  
 ![AE-EXR-result.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/6/b/6b6db70176e1fc46dcca5ef8e708c7ce7e807996.jpeg)  
 ![single-file-EXRs.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/0/9021e66dd282764aff344080a6e946e3597fc5fa.jpeg)

---

<div class="post-metadata">

**Author:** ![instinct](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/instinct/32/74489_2.png) [@instinct](https://forums.chaos.com/u/instinct)\
**Post date:** [March 16, 2012, 1:59pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/2 "2012-03-16T13:59:48Z")

</div>

The default for velocity is signed (so things moving from right to left will cause negative values) so the negative part is eventually dropped by AE ? Also the element records velocity as pixels/frame by default, so values above one might also be clamped by AE

Regards,  
Thorsten

---

<div class="post-metadata">

**Author:** ![frame\_michael](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/frame_michael/32/38761_2.png) [@frame\_michael](https://forums.chaos.com/u/frame_michael)\
**Post date:** [March 16, 2012, 2:04pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/3 "2012-03-16T14:04:38Z")

</div>

@Thorsten, sorry I don’t get what you mean with the negative part in AE.  
I used the same settings (with headroom for the max veolicity in last frame) and the same numbers within RSMB in AE.  
What I don’t get is with the same settings it works using multiple pngs as opposed to a single EXR.

---

<div class="post-metadata">

**Author:** ![frame\_michael](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/frame_michael/32/38761_2.png) [@frame\_michael](https://forums.chaos.com/u/frame_michael)\
**Post date:** [March 19, 2012, 3:03pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/4 "2012-03-19T15:03:24Z")

</div>

I checked the EXR’s in PDPlayer - in case AE is interpreting the EXR’s wrong.  
But it’s the same there. So it seems like a problem of Vray saving to single file EXR or EXR interpreting it wrong?

Can someone help - please?

 ![pdplayer-velocity.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/a/2/a2cb236bcf7bebb0b9ce9001c95f35d2e6c8250c.jpeg)

---

<div class="post-metadata">

**Author:** ![jacksc02](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jacksc02](https://forums.chaos.com/u/jacksc02)\
**Post date:** [March 20, 2012, 5:16am UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/5 "2012-03-20T05:16:41Z")

</div>

I use single EXRs with velocity channels in fusion and everything works perfectly

---

<div class="post-metadata">

**Author:** ![jacksc02](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jacksc02](https://forums.chaos.com/u/jacksc02)\
**Post date:** [March 20, 2012, 5:49am UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/6 "2012-03-20T05:49:26Z")

</div>

here is a screen grab of fusion showing that the velocity channel in a single EXR is working perfectly well.  
If you want to try one of my EXRs PM me and I will send it to you to try in AFX.

 ![fus_velocity.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/b/7/b780fb68acf29e15d67f7e189bbc41c37d399ab5.jpeg)

---

<div class="post-metadata">

**Author:** ![frame\_michael](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/frame_michael/32/38761_2.png) [@frame\_michael](https://forums.chaos.com/u/frame_michael)\
**Post date:** [March 20, 2012, 8:52am UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/7 "2012-03-20T08:52:27Z")

</div>

@Chris, could you check your Vray VFB if it looks the same there? My velocity channel inside VFB is way flatter (more desaturated) looking.

---

<div class="post-metadata">

**Author:** ![jacksc02](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jacksc02](https://forums.chaos.com/u/jacksc02)\
**Post date:** [March 20, 2012, 10:43am UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/8 "2012-03-20T10:43:31Z")

</div>

Here is what it looks like inside the VFB in max

 ![velocity.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/5/d/5d8debbcab7bebeba773aa2b5ecfe20defd59314.jpeg)

---

<div class="post-metadata">

**Author:** ![jacksc02](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jacksc02](https://forums.chaos.com/u/jacksc02)\
**Post date:** [March 20, 2012, 10:51am UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/9 "2012-03-20T10:51:08Z")

</div>

Looks quite different in the max VFB and that is because in fusion it is not showing the “blue” velocity information

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [March 20, 2012, 8:56pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/10 "2012-03-20T20:56:51Z")

</div>

You don’t really need the blue part; most compositing software doesn’t use it anyways.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [March 20, 2012, 9:33pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/11 "2012-03-20T21:33:29Z")

</div>

the way the exr looks in after effects appears correct. When vray displays the exr in framebuffer its placed against a neutral gray background. However if you are using a multichannel exr, the gray background does not get written into it, so you see Red and Green on pure black. If you simply take the image out of vray frame buffer and subtract 50% gray, you will get the same result.

---

<div class="post-metadata">

**Author:** ![frame\_michael](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/frame_michael/32/38761_2.png) [@frame\_michael](https://forums.chaos.com/u/frame_michael)\
**Post date:** [March 22, 2012, 9:53am UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/12 "2012-03-22T09:53:23Z")

</div>

Thanks Dmitry,

with your idea i was able to get the right result.  
I just added 50% gray to the velocity channel and it works the right way in AE!  
Without the added gray the velocity calculation is wrong.

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [March 22, 2012, 2:18pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/13 "2012-03-22T14:18:06Z")

</div>

what are you using in AE as the motion vector?

---

<div class="post-metadata">

**Author:** ![frame\_michael](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/frame_michael/32/38761_2.png) [@frame\_michael](https://forums.chaos.com/u/frame_michael)\
**Post date:** [March 22, 2012, 5:47pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/14 "2012-03-22T17:47:53Z")

</div>

I’m not quite sure what you mean - in AE it’s just a layer or precomp.  
Inside the precomp is the velocity channel with gray added on top.

 ![gray-solid.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/0/1/01a665a3c9726dd1657065f8f1c956b04cd29f1e.jpeg)  
 ![motion-vectors.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/f/1/f14aecd1cce268cf67b88ed23b164eefdf0c24e1.jpeg)

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [March 22, 2012, 5:57pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/15 "2012-03-22T17:57:45Z")

</div>

i see, i guess its how the reel smart motion blur reads it. Must be ae thing. Glad it works 🙂

---

<div class="post-metadata">

**Author:** ![Revisionfx](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Revisionfx](https://forums.chaos.com/u/Revisionfx)\
**Post date:** [March 22, 2012, 9:37pm UTC](https://forums.chaos.com/t/single-file-exr-with-velocity-channel/40746/16 "2012-03-22T21:37:22Z")

</div>

Based on what you are seeing, it could be that the EXR export are not scaled/offset as we (RE:Vision) expect them (+ I presume they also won’t have per object alpha coverage via that method).  
IF Max Displace/Max Velocity (the vector scaling) is actually 1.0 in such case (is the raw untransformed data), then adding 0.5 0.5 to red and green channels would work for us.  
But this will only work with a full 32b float pipeline otherwise you will only have motion between 0.0 and 1.0 pixels not clamped.  
ELSE If not, then it’s a bit more complicated and I can review per app the best solution.  
[http://revisionfx.com/support/faqs/motion\_vector\_FAQs/motion\_vector\_math/](http://revisionfx.com/support/faqs/motion_vector_FAQs/motion_vector_math/)

I also note as it’s frequent question here that in Nuke be careful if you do that (add 0.5,0.5) and use a constant color node to change the frame range in that node to sequence range otherwise it will motion blur only frame 1. (add constant color then set coverage matte)

While I am here, you can just set the Max Displace (it’s actually just a scale if you are in float) to image width if you export 16 bit integers (short) png or something (that takes a lot less storage place) until at least 2K that’s way enough precision. Then you are not worried about remembering that number.

Pierre at [revisionfx.com](http://revisionfx.com)
