Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Oculus Unreal Integration - v1.36 (04/23/19)

NinjaGGNinjaGG Posts: 229 Oculus Staff
edited May 23 in Unreal Development

Version 1.36 of our integration for Unreal Engine 4.22.0 and 4.21.2 have been released!

For more information, see our Unreal Engine Developer Guide.

Note: You must log into a subscribed GitHub account first, otherwise you will get a 404 error from the link below.

You can grab the latest version of the Oculus UE4 Source here: 
More information about this release can be found here.

New Features

  • Added the OVRPlatform Tool to the Unreal Integration. The OVRPlatform Tool enables builds to be submitted directly from the Unreal Editor.
  • Moved ovrp_WaitToBeginFrame to the start of the game thread to reduce the latency between the start of game frame and the frame being visible.

Integration Changes

  • Updated the Oculus Unreal Integration to 1.36.
    • Updated the Audio integration to 1.36.
    • Updated the Avatars integration to 1.36.
  • Deprecated support of the Oculus audio plugin on Android.

Bug Fixes

  • Fixed an issue where a mirrored window may have been displayed incorrectly.
  • Fixed an issue where any call to the blueprint SetSplashScreen after the first would not have any effect.
  • Fixed an issue where some splash screen frames executed out of order with game thread frames.
  • Fixed an issue where hiding a splash screen on Android platforms would write data into unallocated memory.

Known Issues

  • A significant drop in frame rate occurs when UE4 is not in focus in VR preview mode. To avoid this issue, uncheck the Use Less CPU when in Background in Edit > Editor Preferences > General (left sidebar) > Miscellaneous (left sidebar) > Performance.
  • Exclusive Mode issues: Setting the mirror window to full-screen exclusive mode will not work correctly if the monitor and HMD are connected to different GPUs.
The thread for the previous version (v1.35) can be found here: https://forums.oculusvr.com/developer/discussion/73915/oculus-integration-for-unreal-v1-35-02-28-19
If you need immediate help or want additional support/context on an issue you are having with our platform or integrations:

1. Gather any and all logs, screenshots, and version numbers of relevant software (Oculus SDK, engine, etc.)
2. Please submit a ticket here (include what you've gathered in step 1).
3. Tag me @NinjaGaijin once you have done so!

Comments

  • NeontopNeontop Posts: 219 Oculus Start Member
    I'm going to upgrade asap to 4.22 to see if all the good things are unreal .👍

  • Mosel3yMosel3y Posts: 9
    NerveGear
    edited April 23
    @NinjaGaijin

    Bug?:
    Shipping builds crash on launch, only on Gear VR.

    Repo:
    1. Make a new project
    2. In Android settings Package for Oculus Mobile devices, Add Oculus Go/ Gear VR 
    3. Package for Android, Shipping configuration
    4. Install on mobile device (I've tested S6 and S7)
    5. Run app

    It will crash immediately. 

    Log:
    DEBUG(22895): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    DEBUG(22895): Build fingerprint: 'samsung/zerofltexx/zeroflte:7.0/NRD90M/G920FXXU6ERF5:user/release-keys'
    DEBUG(22895): Revision: '11'
    DEBUG(22895): ABI: 'arm'
    DEBUG(22895): pid: 22797, tid: 22893, name: OVR::TimeWarp  >>> com.ProteusVR.AndroidTest_Avatars <<<
    DEBUG(22895): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    DEBUG(22895): Abort message: 'eglCreateContext failed: EGL_BAD_ATTRIBUTE'
    DEBUG(22895):     r0 00000000  r1 0000596d  r2 00000006  r3 00000008
    DEBUG(22895):     r4 c157c978  r5 00000006  r6 c157c920  r7 0000010c
    DEBUG(22895):     r8 c1b21080  r9 c157c700  sl c1b2108c  fp c157c6c4
    DEBUG(22895):     ip 00000000  sp c157c1b8  lr f242d9c7  pc f2430230  cpsr 600f0010
    DEBUG(22895): backtrace:
    DEBUG(22895):     #00 pc 0004a230  /system/lib/libc.so (tgkill+12)
    DEBUG(22895):     #01 pc 000479c3  /system/lib/libc.so (pthread_kill+34)
    DEBUG(22895):     #02 pc 0001d9c5  /system/lib/libc.so (raise+10)
    DEBUG(22895):     #03 pc 00019511  /system/lib/libc.so (__libc_android_abort+34)
    DEBUG(22895):     #04 pc 00017150  /system/lib/libc.so (abort+4)
    DEBUG(22895):     #05 pc 00005903  /system/lib/liblog.so (__android_log_assert+114)
    DEBUG(22895):     #06 pc 00126ca8  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #07 pc 0010a700  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #08 pc 00108da4  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #09 pc 00108d6c  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #10 pc 00047493  /system/lib/libc.so (_ZL15__pthread_startPv+22)
    DEBUG(22895):     #11 pc 00019f6d  /system/lib/libc.so (__start_thread+6)

    --
    I believe the problem is in OculusHMD.cpp. Line 2175:

    #if PLATFORM_ANDROID && USE_ANDROID_EGL_NO_ERROR_CONTEXT
    ovrp_SetupDistortionWindow3(ovrpDistortionWindowFlag_NoErrorContext);
    #else
    ovrp_SetupDistortionWindow3(ovrpDistortionWindowFlag_None);
    #endif // PLATFORM_ANDROID && USE_ANDROID_EGL_NO_ERROR_CONTEXT

    After changing "ovrpDistortionWindowFlag_NoErrorContext", to "ovrpDistortionWindowFlag_None", it will run on Gear VR, however it will now crash on the Oculus Go.

    Am I the only one getting this result ?
  • NinjaGGNinjaGG Posts: 229 Oculus Staff
    Mosel3y Please submit this as a bug report here: https://developer.oculus.com/bugs/create/

    If you need immediate help or want additional support/context on an issue you are having with our platform or integrations:

    1. Gather any and all logs, screenshots, and version numbers of relevant software (Oculus SDK, engine, etc.)
    2. Please submit a ticket here (include what you've gathered in step 1).
    3. Tag me @NinjaGaijin once you have done so!
  • aussieburgerVRaussieburgerVR Posts: 221 Oculus Start Member
    Mosel3y said:
    @NinjaGaijin

    Bug?:
    Shipping builds crash on launch, only on Gear VR.

    Repo:
    1. Make a new project
    2. In Android settings Package for Oculus Mobile devices, Add Oculus Go/ Gear VR 
    3. Package for Android, Shipping configuration
    4. Install on mobile device (I've tested S6 and S7)
    5. Run app

    It will crash immediately. 

    Log:
    DEBUG(22895): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    DEBUG(22895): Build fingerprint: 'samsung/zerofltexx/zeroflte:7.0/NRD90M/G920FXXU6ERF5:user/release-keys'
    DEBUG(22895): Revision: '11'
    DEBUG(22895): ABI: 'arm'
    DEBUG(22895): pid: 22797, tid: 22893, name: OVR::TimeWarp  >>> com.ProteusVR.AndroidTest_Avatars <<<
    DEBUG(22895): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    DEBUG(22895): Abort message: 'eglCreateContext failed: EGL_BAD_ATTRIBUTE'
    DEBUG(22895):     r0 00000000  r1 0000596d  r2 00000006  r3 00000008
    DEBUG(22895):     r4 c157c978  r5 00000006  r6 c157c920  r7 0000010c
    DEBUG(22895):     r8 c1b21080  r9 c157c700  sl c1b2108c  fp c157c6c4
    DEBUG(22895):     ip 00000000  sp c157c1b8  lr f242d9c7  pc f2430230  cpsr 600f0010
    DEBUG(22895): backtrace:
    DEBUG(22895):     #00 pc 0004a230  /system/lib/libc.so (tgkill+12)
    DEBUG(22895):     #01 pc 000479c3  /system/lib/libc.so (pthread_kill+34)
    DEBUG(22895):     #02 pc 0001d9c5  /system/lib/libc.so (raise+10)
    DEBUG(22895):     #03 pc 00019511  /system/lib/libc.so (__libc_android_abort+34)
    DEBUG(22895):     #04 pc 00017150  /system/lib/libc.so (abort+4)
    DEBUG(22895):     #05 pc 00005903  /system/lib/liblog.so (__android_log_assert+114)
    DEBUG(22895):     #06 pc 00126ca8  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #07 pc 0010a700  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #08 pc 00108da4  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #09 pc 00108d6c  /data/app/com.oculus.systemdriver-2/lib/arm/libvrapiimpl.so
    DEBUG(22895):     #10 pc 00047493  /system/lib/libc.so (_ZL15__pthread_startPv+22)
    DEBUG(22895):     #11 pc 00019f6d  /system/lib/libc.so (__start_thread+6)

    --
    I believe the problem is in OculusHMD.cpp. Line 2175:

    #if PLATFORM_ANDROID && USE_ANDROID_EGL_NO_ERROR_CONTEXT
    ovrp_SetupDistortionWindow3(ovrpDistortionWindowFlag_NoErrorContext);
    #else
    ovrp_SetupDistortionWindow3(ovrpDistortionWindowFlag_None);
    #endif // PLATFORM_ANDROID && USE_ANDROID_EGL_NO_ERROR_CONTEXT

    After changing "ovrpDistortionWindowFlag_NoErrorContext", to "ovrpDistortionWindowFlag_None", it will run on Gear VR, however it will now crash on the Oculus Go.

    Am I the only one getting this result ?
    I'm getting this crash as well - could you link the bug report ticket once it's available?
  • NeontopNeontop Posts: 219 Oculus Start Member
    edited April 26
    Hello @NinjaGaijin with the 1.36  the Oculus Avatar
    In multiplayer is broken as there is a change in the ovrAvatarManager.
    They commented out theQueueAvatarPacketServer function and now it is not possible to replicate the Avatar.
    Can you check with the dev when they will provide a solution?
    Thanks.

  • NeontopNeontop Posts: 219 Oculus Start Member
    edited April 27
    Ok this is about the new avatar:


  • NeontopNeontop Posts: 219 Oculus Start Member
    Hello @NinjaGaijin I was looking at this information about the new Avatar in UE. I don't understand those informations compared with the one above.


  • JimRJDMJimRJDM Posts: 8
    NerveGear
    Hi

    I've installed Unreal 4.22.1 but it still has version 1.32 of the Oculus VR plugin.
    We're having significant problems with Rift and Unreal Engine with 1.32 of the plugin

    So....Is there a way I can download and update the Oculus VR plugin from 1.32 to 1.36 from within the Unreal editor?
    If so where can I download V 1.36 and how do I then install it?

    Or is the "download binary from GitHub and then compile" the only way to get Unreal and 1.36? (I really hope not)


    Cheers
    Jim
  • NeontopNeontop Posts: 219 Oculus Start Member
    1.37 is out  ;)

  • motorsepmotorsep Posts: 1,420 Oculus Start Member
    @NinjaGaijin

    Any ETA for 4.22.2 + 1.37 integrations to pop up on github ?
Sign In or Register to comment.