Search Unity

Alembic Motion vector HDRP

Discussion in 'Asset Importing & Exporting' started by Mark_29, May 3, 2019.

  1. Mark_29

    Mark_29

    Joined:
    Aug 11, 2014
    Posts:
    79
    I am trying to get get motion blur working with Alembics in HDRP with no luck.

    I have tried turning the motion vectors on in the lit shader. I have also tried various import options for the alembic (import points / interpolate)

    Could anyone advise?

    using unity 2019.1,
    HDRP 5.10
    Alembic 1.0.3
     
  2. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    I think we have bug logged for that.
    Just to confirm, you used the alembic materials for this (HDRP did not support natively motion vectors for Mesh data I think)?
     
  3. Mark_29

    Mark_29

    Joined:
    Aug 11, 2014
    Posts:
    79
    Thanks for the quick response!

    I am using the default HDRP lit shader. There is a checkbox for MotionVector for vertex animation in there. I am not sure if that is meant to work with alembic or not (it doesn't seem to work)

    The actual alembic shaders don't work or do not render correctly in HDRP
     
  4. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi,

    Alembic support for motion vector require special treatment that haven't land in the mainline of HDRP but are part of Unity japan Alembic importer:
    https://github.com/unity3d-jp/AlembicForUnity/pull/224

    So currently with HDRP, unless you apply same change than the PR above, you can't do it, you need to use the LitAlembic.shader (not in hdrp)
     
  5. Mark_29

    Mark_29

    Joined:
    Aug 11, 2014
    Posts:
    79
    Thanks for the info and links. We had a few issues with trying to merge the or take the special treatment (we are not that technical). Will give it another try

    Do you know if this is feature will be added to HDRP in the near future?
     
  6. alti

    alti

    Joined:
    Jan 8, 2014
    Posts:
    94
    bump
     
  7. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    Current versions of HDRP (2019.4+ I think ) support the motions vectors if you enable the "Add Extra velocity" (or something like that) option on them.
     
  8. raincole

    raincole

    Joined:
    Sep 14, 2012
    Posts:
    63
    Sorry, where is this option? I can't find it anywhere.

    Not in Lit Shader:
    upload_2022-3-11_7-13-44.png

    Not in alembic importer either:

    upload_2022-3-11_7-14-8.png

    Does HDRP support Alembic with pre-calculated motion vectors now?
     
  9. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    I forgot the exact version of HDRP that it landed on:
    Here's a screenshot on how it looks like in 22.1 (name has not changed since it was implemented):
    It's all the way to the bottom of the material options.
    Screen Shot 2022-03-14 at 8.23.05 AM.png