Jump to content

JHibbins

Verified Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by JHibbins

  1. Explicitly calling this function results in a black screen, so we just removed this function and setup the defaults based on platform

    public void UpdateVideoSettings()
        {
            switch (Options.Option_Video_Shadows)
            {
                case Options.ShadowsEnum.DISABLED:
                    QualitySettings.SetQualityLevel(5);
                    break;
                case Options.ShadowsEnum.HARD_ONLY:
                    QualitySettings.SetQualityLevel(6);
                    break;
                case Options.ShadowsEnum.HARD_AND_SOFT:
                default:
                    QualitySettings.SetQualityLevel(7);
                    break;
            }
            // ANTI ALIASING
            switch (Options.Option_Video_Anti_Aliasing)
            {
                case Options.AntiAliasingEnum.DISABLED:
                    QualitySettings.antiAliasing = 0;
                    break;
                case Options.AntiAliasingEnum.MULTI_SAMPLING_X2:
                    QualitySettings.antiAliasing = 2;
                    break;
                case Options.AntiAliasingEnum.MULTI_SAMPLING_X4:
                    QualitySettings.antiAliasing = 4;
                    break;
                case Options.AntiAliasingEnum.MULTI_SAMPLING_X8:
                default:
                    QualitySettings.antiAliasing = 8;
                    break;
            }
            UnityEngine.XR.XRSettings.eyeTextureResolutionScale = Options.Option_Video_RenderScale;
            QualitySettings.lodBias = Options.GetOptionVideoLODBias();
        }

     

  2. Hey!

    We have a large amount of assets to load in scene, this takes a while so we pop up a loading icon on other platforms, we either use a dedicated render layer or the platform loading system (and put 1 of 16 loading images up in order)

    We are using Unity and Wave SDK

    What is the best way to achieve the same? 

    Best Regards

    Jon

     

    • Like 1
  3. When launching our game we car converting to support WaveSDK, the camera does not enable UNLESSS we switch back to dashboard then back to the game, then the camera is visible, we can however hear the game running in the dark, has anyone got a work around or seen this before?

    Here are the Logs:

    2023-03-26 13:53:03.654  4144-4173  Unity                   com.psytecgames.windlands2           I  WaveXR_InitOnLoad: Start
                                                                                                        Wave.XR.WaveXRRuntimeInitializeOnLoad:Start()
    2023-03-26 13:53:04.127  4144-4173  Unity                   com.psytecgames.windlands2           E  [EGL] Unable to acquire context: EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
    2023-03-26 13:53:04.128  4144-4220  Unity                   com.psytecgames.windlands2           E  [EGL] Unable to acquire context: EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
    2023-03-26 13:53:04.129  4144-4173  Unity                   com.psytecgames.windlands2           E  [EGL] Unable to acquire context: EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
    2023-03-26 13:53:04.131  4144-4173  Unity                   com.psytecgames.windlands2           E  [EGL] eglDestroySurface(m_EGLDisplay, m_EGLSurface): EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.
    2023-03-26 13:53:04.132  4144-4173  Unity                   com.psytecgames.windlands2           W  Hardware resolution scaling not supported, falling back to software scaling (blit).
    2023-03-26 13:53:04.134  4144-4173  Unity                   com.psytecgames.windlands2           E  [EGL] Unable to acquire context: EGL_BAD_ACCESS: EGL cannot access a requested resource (for example a context is bound in another thread).
    2023-03-26 13:53:04.139  4144-4220  Unity                   com.psytecgames.windlands2           E  OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state
    2023-03-26 13:53:04.168  4144-4173  Unity                   com.psytecgames.windlands2           I  WaveXRRuntimeOnInitialize: OnSceneLoaded: Hub_Environment
                                                                                                        Wave.Essence.WaveXR_RuntimeInitializeOnLoad:OnSceneLoaded(Scene, LoadSceneMode)
                                                                                                        UnityEngine.Events.UnityAction`2:Invoke(T0, T1)
    2023-03-26 13:53:04.168  4144-4173  Unity                   com.psytecgames.windlands2           I  WaveXR_InitOnLoad: OnSceneLoaded: Hub_Environment
                                                                                                        Wave.XR.WaveXRRuntimeInitializeOnLoad:OnSceneLoaded(Scene, LoadSceneMode)
                                                                                                        UnityEngine.Events.UnityAction`2:Invoke(T0, T1)

     

    This seems to be the issue:E  [EGL] Unable to acquire context: EGL_BAD_SURFACE: An EGLSurface argument does not name a valid surface (window, pixel buffer or pixmap) configured for GL rendering.

    Using Unity 2020.3.34f1

    With Latest WaveSDK 5.2.0-r.8

    and ViveXRElite

  4. I was using a beta specifically to enable some dev support, but i can't update to the latest version now, here are the logs I extracted:

    2023-03-26 13:45:11.377  2016-2430  Unity                   com.htc.vrs.launcher                 I  [ViveInputVirtualButtonLog][OnRightVirtualButtonPresseDown] HandRole.RightHand press down, args = HTC.UnityPlugin.Vive.ViveInputVirtualButton+OutputEventArgs
    2023-03-26 13:45:11.557  2016-2430  Unity                   com.htc.vrs.launcher                 I  [ViveInputVirtualButtonLog][OnRightVirtualButtonClicked] HandRole.RightHand clicked, args = HTC.UnityPlugin.Vive.ViveInputVirtualButton+OutputEventArgs
    2023-03-26 13:45:11.568  2016-2430  Unity                   com.htc.vrs.launcher                 I  [SettingsUI][SystemUpdateProgressHandler][OnEnable] Request HMD update. (SettingsUI_RequestUpdateHMDFirmwareEvent)
    2023-03-26 13:45:11.568  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate][HMD] UI Request update firmware. updating flag set to true.
    2023-03-26 13:45:11.568  2016-2430  Unity                   com.htc.vrs.launcher                 I  isBetaROM RomVersion : 1.0.999.232 , divid[1] : 0
    2023-03-26 13:45:11.568  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate][HMD] Request update rom: DEFAULT
    2023-03-26 13:45:11.571  2016-2430  Unity                   com.htc.vrs.launcher                 I  [OEMService] Receive set config event, entry name: system_update_require, value: False
    2023-03-26 13:45:11.584  2016-7984  Unity                   com.htc.vrs.launcher                 I  [CompanionApp][OnUpdateFirmwareResponse] before error=0 error_string=FOTA_NO_ERROR state=1
    2023-03-26 13:45:11.584  2016-7984  Unity                   com.htc.vrs.launcher                 I  [CompanionApp][OnUpdateFirmwareResponse] after error=0 error_string=FOTA_NO_ERROR state=1
    2023-03-26 13:45:11.585  2016-7984  Unity                   com.htc.vrs.launcher                 I  [CompanionApp][OnUpdateFirmwareResponse] before error=0 error_string=FOTA_NO_ERROR state=2
    2023-03-26 13:45:11.585  2016-7984  Unity                   com.htc.vrs.launcher                 I  [CompanionApp][OnUpdateFirmwareResponse] after error=0 error_string=FOTA_NO_ERROR state=2
    2023-03-26 13:45:11.585  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate] error=0 error_string=FOTA_NO_ERROR device_id=0 progress=0 state=1
    2023-03-26 13:45:11.585  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate] ErrorCode=0
    2023-03-26 13:45:11.585  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate][HMD] state: 1    progress: 0
    2023-03-26 13:45:11.585  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate] error=0 error_string=FOTA_NO_ERROR device_id=0 progress=0 state=2
    2023-03-26 13:45:11.585  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate] ErrorCode=0
    2023-03-26 13:45:11.585  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate][HMD] state: 2    progress: 0
    2023-03-26 13:45:13.087  2016-3346  Unity                   com.htc.vrs.launcher                 I  [CompanionApp][OnUpdateFirmwareResponse] before error=20000011 error_string=DOWNLOAD_METADATA_SIGNATURE_MISMATCH state=5
    2023-03-26 13:45:13.094  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate] error=20000011 error_string=DOWNLOAD_METADATA_SIGNATURE_MISMATCH device_id=0 progress=0 state=5
    2023-03-26 13:45:13.095  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate] update error, updating flag set to false.
    2023-03-26 13:45:13.096  2016-2430  Unity                   com.htc.vrs.launcher                 E  [CompanionService][FirmwareUpdate] update error: 20000011 DOWNLOAD_METADATA_SIGNATURE_MISMATCH (state: 5)
                                                                                                        HTC.Launcher.CompanionService.FirmwareUpdateServiceComponent:OnUpdateFirmwareResponse(UpdateFirmwareResponse)
                                                                                                        System.Action:Invoke()
                                                                                                        System.Action:Invoke()
                                                                                                        UnityMainThreadDispatcher:Update()
    2023-03-26 13:45:13.096  2016-2430  Unity                   com.htc.vrs.launcher                 I  [CompanionService][FirmwareUpdate][HMD] update error
    2023-03-26 13:45:13.096  2016-2430  Unity                   com.htc.vrs.launcher                 I  [SystemUpdateProgressHandler][OnFirmwareUpdateError] Close progress popup and show error popup.

  5. Hey,

    We can't get the composition layer working at-all on the Vive XR Elite :

     

                compositionLayer.texture = loadingIconTextures[index];
                compositionLayer.RenderAsLayer();
                compositionLayer.RenderInGame();

    image.png.39d2077d3aab87516d92c8aa8d918fc9.png

    We are seeing this in debug:

    03-02 17:10:15.860  3559  3590 I Unity   : UnityEngine.BeforeRenderHelper:Invoke()
    03-02 17:10:15.860  3559  3590 I Unity   :
    03-02 17:10:15.871  3559  3590 I Unity   : Wave_CompositionLayer SetLayerTexture: Update Texture ID. layerID: 7
    03-02 17:10:15.871  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayer:SetLayerTexture()
    03-02 17:10:15.871  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayer:OnBeforeRender()
    03-02 17:10:15.871  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayerManagerOnBeforeRender:Invoke()
    03-02 17:10:15.871  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayerManager:OnBeforeRender()03-02 17:10:15.871  3559  3590 I Unity   : UnityEngine.Events.UnityAction:Invoke()
    03-02 17:10:15.871  3559  3590 I Unity   : UnityEngine.BeforeRenderHelper:Invoke()
    03-02 17:10:15.871  3559  3590 I Unity   :
    03-02 17:10:15.872  3559  3590 I Unity   : Wave_CompositionLayer SetLayerTexture: Create External Texture.
    03-02 17:10:15.872  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayer:SetLayerTexture()
    03-02 17:10:15.872  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayer:OnBeforeRender()
    03-02 17:10:15.872  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayerManagerOnBeforeRender:Invoke()
    03-02 17:10:15.872  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayerManager:OnBeforeRender()03-02 17:10:15.872  3559  3590 I Unity   : UnityEngine.Events.UnityAction:Invoke()
    03-02 17:10:15.872  3559  3590 I Unity   : UnityEngine.BeforeRenderHelper:Invoke()
    03-02 17:10:15.872  3559  3590 I Unity   :
    03-02 17:10:16.975 23075 23354 I Unity   : [OnOOBEStateResponse] error=None event_type=EventBatteryChanged
    03-02 17:10:19.570 23075 23354 I Unity   : [OnOOBEStateResponse] error=None event_type=EventBatteryChanged
    03-02 17:10:22.517 23075 23354 I Unity   : [OnOOBEStateResponse] error=None event_type=EventBatteryChanged
    03-02 17:10:25.238  3559  3590 I Unity   : Wave_CompositionLayerManager UnsubscribeFromLayerManager: Remove layer
    03-02 17:10:25.238  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayerManager:UnsubscribeFromLayerManager(CompositionLayer, Boolean)
    03-02 17:10:25.238  3559  3590 I Unity   : LoadingIndicator:EnableLoadingIndicator(Boolean)
    03-02 17:10:25.238  3559  3590 I Unity   : LevelLoadedDelegate:Invoke(LevelManager)
    03-02 17:10:25.238  3559  3590 I Unity   : LevelManager:Update()
    03-02 17:10:25.238  3559  3590 I Unity   :
    03-02 17:10:25.313  3559  3590 I Unity   : Wave_CompositionLayerManager CompositionLayersToBeUnsubscribed: Processing
    03-02 17:10:25.313  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayerManager:OnBeforeRender()03-02 17:10:25.313  3559  3590 I Unity   : UnityEngine.Events.UnityAction:Invoke()
    03-02 17:10:25.313  3559  3590 I Unity   : UnityEngine.BeforeRenderHelper:Invoke()
    03-02 17:10:25.313  3559  3590 I Unity   :
    03-02 17:10:25.314  3559  3590 I Unity   : Wave_CompositionLayerManager CompositionLayerStatusUpdateNeeded
    03-02 17:10:25.314  3559  3590 I Unity   : Wave.OpenXR.Toolkit.CompositionLayer.CompositionLayerManager:OnBeforeRender()03-02 17:10:25.314  3559  3590 I Unity   : UnityEngine.Events.UnityAction:Invoke()
    03-02 17:10:25.314  3559  3590 I Unity   : UnityEngine.BeforeRenderHelper:Invoke()

×
×
  • Create New...