Announcement

Collapse
No announcement yet.

Set Game Paused - Horrible rendering artifacts?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Set Game Paused - Horrible rendering artifacts?

    Hello all!

    I'm having an issue with a VR project while trying to Pause/Unpause gameplay via blueprint using Set Game Paused.

    Once I pause the game, it appears that we are no longer correctly rendering to the HMD. (Oculus Rift using Oculus Runtime with UE4. I could not have a chance to test this on a Vive yet).
    2 main issues:
    • UMG User interfaces (WidgetActor) are incredibly blurry and glitchy
    • Lots of drawing issues (different parts of the scene view are ghosted on top of the current scene, and the result is visually different in left vs right eye


    Is this because the engine is not properly rendering the scene while paused?
    Is this because the user is using a positionally tracked HMD (Not updating the "actor" location - the HMD may be moving through the tracked area, but the actual "Actor" is not moving?)
    I am at a loss.

    Here is what I have tried to do:
    • Set Player Controller, Player Camera Manager, Pawn, Motion Controllers, etc to be tickable when paused (using the Actor and component nodes)
    • Creating UMG widgets after setting game paused, and then setting widgets to be tickable when paused (both the Widget blueprints + the actors that hold the blueprints)


    The Player Pawn remains correctly tracked by the HMD, the motion controllers continue to track. The UMG widgets are fully interactable, with button presses and variables set as expected. All issues are visual, rendering issues.

    I've tried searching through the forums and google.
    It would be great to pause gameplay using the "Set game paused" as it handles many of the AI, physics and other objects very well. Aside from these horrible rendering issues. Does anyone have any suggestions?

    Cheers!
    Michael Wentworth-Bell
    Espire 1: VR Operative: Espire1.com
    Melbourne, Australia

    #2
    Has anyone experienced this? I thought of posting this in the resndering forum but figured it might be more VR related as the HMD / camera is constantly translating after "set game paused"
    Michael Wentworth-Bell
    Espire 1: VR Operative: Espire1.com
    Melbourne, Australia

    Comment


      #3
      I'm using 4.14 and have similar issues with 3D widgets, as well as the widget interaction component not updating so you can't send input events in pause mode. I believe that is fixed in 4.15 but since we can't update at the office yet, I'm using a basically-zero global time dilation instead (you can change the bounds of the time dilation in the project settings). Hacky but works for me.

      Edit: Issue related to the widget interaction component: https://issues.unrealengine.com/issue/UE-38594
      Last edited by Till Riemer; 05-09-2017, 04:45 AM.
      Till Riemer - Game Programmer

      ROCKFISH Games GmbH
      Hamburg, Germany

      Comment


        #4
        There are issues with Temporal AA and game pause in VR. Try to set r.DefaultFeature.AntiAliasing=0 during pause. Also try to disable instanced stereo rendering.
        Michael Hegemann - https://twitter.com/HegiDev

        Marketplace Content
        Easy Multi Save
        Mobile Touch Navigation

        Comment


          #5
          Hi, was someone able to resolve this issue?

          We have this strange artifacts when unpausing our game using SetGamePaused node as you described. We need SetGamePaused because we need the Delays and timeline to pause as well, and setting global time dilation to 0.0 doesn't do the job.

          We tried r.DefaultFeature.AntiAliasing=0 and other rendering console commands but same result.

          We need a little piece of light with this problem, thanks in advance.

          Comment


            #6
            When we pause, we're calling the console command "r.DefaultFeature.AntiAliasing=0". When we unpause, we set it back to 1.
            This is still an issue in 4.20.2 when playing in editor.
            In a packaged build we dont have this issue.
            Michael Wentworth-Bell
            Espire 1: VR Operative: Espire1.com
            Melbourne, Australia

            Comment

            Working...
            X