Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Motion Vectors stretch terrain details if terrain not at 0,0,0 HDRP

Discussion in '2023.1 Beta' started by DeadPoet, Jan 30, 2023.

  1. DeadPoet

    DeadPoet

    Joined:
    Jan 7, 2013
    Posts:
    37
    As soon as motion vectors are enabled and the terrain is moved by any number larger than 0.0001 away from 0,0,0 coordinates, every terrain detail is stretched like crazy. Disabling motion vectors fixes the stretching (but ofc causes other problems with some features).

    upload_2023-1-30_15-25-31.png
     
  2. MaxWitsch

    MaxWitsch

    Joined:
    Jul 6, 2015
    Posts:
    114
    Hehe, I just posted the same bug at the same time.
    But i don't think it is caused by the terrain.
    I tested it on a non terrain scene and the bug appears on every Mesh drawn via scripting.
     
  3. MaxWitsch

    MaxWitsch

    Joined:
    Jul 6, 2015
    Posts:
    114
    Have you found a workaround for this error?
    Except for disabling the motion vectors?
     
  4. sqallpl

    sqallpl

    Joined:
    Oct 22, 2013
    Posts:
    384
    No idea what happens here but it could be related:

    https://issuetracker.unity3d.com/is...eobjects-when-theyre-rendered-through-terrain

    https://forum.unity.com/threads/ter...motion-vectors-leading-to-taa-issues.1182244/

    https://forum.unity.com/threads/enabling-motion-vector-pass-for-drawprocedural.939452/#post-7609909

    TLDR: looks like terrain details are rendered without motion vectors (probably by using DrawMesh functions). Maybe the system will be switched to new RenderMesh functions but I don't think that there was any confirmation on that. I'm just guessing. Related issue posted on issue tracker was marked as 'won't fix'. Anyway this bug looks like something new but it could be related.
     
    Last edited: Feb 7, 2023