Jump to content

Motion vector


Hans Peter

Recommended Posts

Hi there, 

 

I'm having a hard time exporting some motion vectors out of Mantra. I used a method that was described in this forum. Two get blur nodes, one set to 0 and the other one to 1. Subtracted them and piped into a custom direction vector attribute which I used to render out an image plane in Mantra. Unfortunately I'm not getting any motion vector in the exr file. The image plane is black and when trying to use it with a vector blur in Nuke or a velocity blur in Houdini's comp area nothing happens. 

Link to comment
Share on other sites

Could you post the hip file? It sounds like the motion vector pass isn't being created. I would double check that the attribute you are exporting is set to be a vector, and that the image plane has the correct attribute name and data type. Also make sure you have the setup on the shaders that your geometry is using. Use the IPR to see if there's anything there.

I'm guessing you got the setup from the thread below, but there are 2 of them. I have used Matt's method and it works every time! I would give that a try or you can post a hip file so it's easier to pinpoint the issue. All I said above are just guesses, I can't be sure without looking at it :P

This is the post with the working setup:

 

Link to comment
Share on other sites

I changed the way you were exporting the motion blur to the setup I mentioned. Also you have to enable Allow Motion Blur in Mantra, and to use the velocity of your object I enabled  Geometry Velocity Blur under the Sampling tab of the geometry object. (If you only want to use transformation blur then you can increase the xform samples to 2 in Mantra). Finally you also have to assign the material to the object.

motionvector_working.hipnc

Link to comment
Share on other sites

Make sure you copied the whole setup inside the Mantra Surface, including the null node that is renaming the variable to ndcvec. If you didn't copy the null node, you can also change the last line of the snippet to diff *= res;

That is provided you didn't add any nodes after the subtract. If you did, just replace diff with the data name that is being output from the node that is being connected into the snippet.

Link to comment
Share on other sites

Another question: how would you give out a velocity aov? Same technique? Following the houdini help section the velblur node needs the velocity from the velocity plane. Is this the motion vector? Because I can't get any result with the outputted motion vector. 

Edited by Heraklit
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...