Author Topic: Velocity Pass Problem  (Read 11391 times)

2017-06-22, 14:16:31

PEgaz

  • Active Users
  • **
  • Posts: 41
    • View Profile
Hi,

Attached two files comparision Corona vs Vray
 - Corona: VelocityPass in 32bit EXR + Fusion
 - Vray: VelocityPass 8bit + AfterEffect + RSMB Plugin

I know, I know - I hate all that "On Vray it was like .... and here is different", too. I love Corona but I really can't get it to work when VelocityPass is involved.


I have no clue why only Red Channel is used in CoronaPass, so only half of the image is affected - it seems that information from the other vector is missing.
I've just made some quick comparision with Vray and everything is allright.

Questions are:

1. What I'm doing wrong that the VelocityPass renders badly.

2. Is that huge amount of work for you guys to make a Switch Button to render the VelocityPass in old_time_manner - so that old dinosaurs like us(I'm sure I'm not the only one), who bought RSMB (I really like the plugin!)  - can use VelocityChannel, too.?
(I tried DeadClown tip from: https://forum.corona-renderer.com/index.php?topic=11510.0    - I couldn't get it to work properly  [it may happened because the CoronaVelocityPass seems to be rendered demaged from my scene, of course)

regards
Piotr
« Last Edit: 2017-06-22, 14:27:25 by PEgaz »

2017-06-22, 17:49:40
Reply #1

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6102
    • View Profile
Just to check, was this with the World or Camera mode for the Velocity pass? The Camera is the option for many packages (though different post-production motion blur packages may expect different modes) and I believe RSMB uses Camera mode.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2017-06-23, 09:01:10
Reply #2

PEgaz

  • Active Users
  • **
  • Posts: 41
    • View Profile
It was Camera mode.
I've attached the same frame rendered with World mode - looks stranger and it surely can't be used, too.

2017-07-05, 14:23:34
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13655
  • Marcin
    • View Profile
I just tested this with Fusion and it seems to work fine. There is definitely R, G, and B information, and I am not getting anything like "half of the screen" effect.
I tried both jpg for beauty + exr for velocity and cxr with everything baked in.

PEgaz, did you save the velocity element correctly with 32-bit depth? What software are you using to get the motion blur?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-07-06, 10:38:02
Reply #4

PEgaz

  • Active Users
  • **
  • Posts: 41
    • View Profile
Hi maru, thank you for your reply.

I save EXR as FullFloat 32bit - as you can see it blurs only part of the image (even with extremely big blur scale in Fusion), it seems that some parts of the render misses velocity vector information. (I tried also with 8bit and 16bit images).

I've sent also renders from exactly the same scene only converted to Vray - as you can see there's velocity info on whole image and every it's part is affected.

I can send the original files and/or Max scene - just tell me.

regards
PEgaz


2017-07-06, 15:12:57
Reply #5

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6102
    • View Profile
Could this be the Offset? I don't have RSMB to test, but I remember a note from earlier "Corona outputs vector data with 0 velocity as black - so values go into positive and negative direction from there. Reelsmart expects data with a midpoint at grey (from the old days when nobody knew what floating point data is). "

You could inspect the "black" areas to see if there is data there (right click on the VFB to inspect the pixel), negative values in effect that won't show (and is not what RSMB is expecting). I can't test, but adding an offset of 0.5 in the Velocity pass settings should correct for that - anyone with RSMB able to test? Also, just to clarify as you have mentioned Fusion and RSMB, it is RSMB that you are using?

Tom Grimes | chaos-corona.com
Product Manager | contact us

2017-07-06, 15:46:16
Reply #6

PEgaz

  • Active Users
  • **
  • Posts: 41
    • View Profile
TomG - I owe you huge bloody steak with beer .... or salad with no_gas_water (depends on you :)
That did the trick - everythings works fine!

I still have no idea why it didn't work with Fusion, it should.
But who cares, now it works with RSMB :)

regards, PEgaz



2017-07-06, 15:51:33
Reply #7

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6102
    • View Profile
Great news! It's unfortunate that different software has different "expectations" for the velocity, but the option is there to correct for that, and easily done once you know what your software is looking for :) Mmm steak and beer sounds perfect! Glad it is working now
Tom Grimes | chaos-corona.com
Product Manager | contact us

2018-12-11, 14:41:41
Reply #8

FlorianW.

  • Active Users
  • **
  • Posts: 53
    • View Profile
For myself, this isn't working.

My Settings

- 32bit EXR
- Mode "Camera
- Offset: 0,5
- Flipped "Y" Channel in AE

and still, it calculates the Motion Blur completly wrong and different than in Fusion. Anyone knows the Issue between RSMB and Corona?

Thanks in Advance!

3dsMax 2021 - Corona 5

2018-12-11, 16:45:42
Reply #9

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6102
    • View Profile
It's not really an issue as such, just getting the settings right for what RSMB expects as input (sadly, as noted, there is no standard for this). My first thought is, does the Y channel need flipping? I thought just the offset adjustment was all that was required. With RSMB being a paid plugin, we don't have access to it for testing at the moment.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2018-12-14, 09:15:38
Reply #10

PEgaz

  • Active Users
  • **
  • Posts: 41
    • View Profile
hi Sequana,

For me just using offset 0,5 did the trick - it was few months ago and I don't remember details - if you still have problems I can look for files in my archiv to see exact parameters I set.

In meantime I'm sending you what RE:Vision Effects Support sent me (nothing special but may help):
-------------------------------------------------------------------------------------------------
My question:
Does it support Velocity channels created with CoronaRenderer - as you can see here [example how to make it work with Fusion -
] or I can attach any example file if you want and send me your email. The velocity channel is way different and I completely can't get it work with RSMB Vector as it was with Vray.

Their answer:
Probably, but we have no experience with this.  I see that they put the motion vectors into the velocity x and velocity y channels of an EXR file.  You'll see in the Fusion tutorial that they convert this to red and green channels (which is also what RSMB needs).  However, you will need to do more than that, because we expect our motion vectors to be transformed to red and green channels in a way that is not just copying dx and dy to red and green channels (you can read about our motion vector format at this link:  http://revisionfx.com/faq/motion_vector/ )

Basically, in a floating point image handed to us with dx in the red channel and dy in the green channel, we make the motion vectors using this math:
  Vector x for RSMB = (red *2.0 –1)*MaxDIsplace;
  Vector y for RSMB = (green* 2.0 –1)* MaxDisplace;
So you'll want to make your motion vector images:
 Red = ((CoronaRenderVectorX)/MaxDisplace + 1)*0.5;


 Green = ((CoronaRenderVectorY/MaxDisplace + 1)*0.5;


Where MaxDisplace is the value used to scale the motion vectors as described in the FAQ link I listed above.  If you are using floating point images and a floating point project in AE, then you can set Max Displace to 1.0.

So in this case where you use MaxDisplace to 1.0 (using floating point EXR and floating point AE project), then in the Corona Renderer velocity settings, I believe you should set
 Multiplier to 1.0
 Offset to 0.5

Then you'll need to import the EXR sequence in After Effects.  Make sure to right-click on the footage in the project bin, select "Intepret Footage.." and under the color management tab select "Preserve RGB."

Then drop your vector footage into a comp.  Apply the effect Effects->3D->extractor and select the X velocity to go to the red channel, and the Y velocity to go to the green channel (and copy the alpha channel)

Then put this vector comp (it needs to be pre-comped!) and your color elements (which may be in the same EXR footage) into a comp together and apply RSMB Vectors.  Set RSMB Vector's MaxDisplace set to 1.0.  Depending on how Corona renders, you may need to flip the Y vector by setting RSMB Vector's Vector Scale Y setting  to –1.
-------------------------------------------------------------------------------------------------

I hope it helps.
Regards
PEgaz


2019-08-19, 17:17:21
Reply #11

Otuama

  • Active Users
  • **
  • Posts: 159
    • View Profile
Hi all.

I'm trying to do a timelapse and have tested using the vector pass.  It worked well.

I had to set the offset to 0.5.

Now, for some reason the vector pass is rendering out grey whereas before it was a series of pinks, yellows, greens and blues.

Can anyone help with this because I'm confused.

Thanks

2019-08-19, 17:21:39
Reply #12

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6102
    • View Profile
Since the data in the pass is in fact 32 bit, the real question is, if you right click on a pixel, what are the values there? Could be the data is still there, just showing differently in the VFB (since that range of data can't be displayed fully in monitor RGB). As well as, does it still work in your destination post-processing software?
Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-08-19, 18:07:06
Reply #13

Otuama

  • Active Users
  • **
  • Posts: 159
    • View Profile
Here are 3 different scenes.

The grey one is just black and grey.

I'm looking at the settings between scenes but don't think there's anything different.

I ran it through AE but it didn't seem to work properly with RSMB.




2019-08-19, 18:09:32
Reply #14

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 6102
    • View Profile
What does right clicking on the pixel show in the VFB? (Right click inspects the actual value at that pixel)
Tom Grimes | chaos-corona.com
Product Manager | contact us