IanPhilips / UnityOculusAndroidVRBrowser

3D browser based on GeckoView and Oculus SDK for Unity projects built on Android (Oculus Go/Quest, maybe GearVR)
MIT License
225 stars 63 forks source link

BrowserView render on top of everything #11

Closed Akravator91 closed 4 years ago

Akravator91 commented 4 years ago

Hi2.

Small question, Does the BrowserView has to be rendered on top of everything? I have a keyboard that use a canvas renderer and as well as some other game object with default unity material. And the BrowserView gameobject is always render in top of the canvas as well as every other game object.

IanPhilips commented 4 years ago

Great question. There are two ways that I know to get around this. 1. Continue to use your canvas based keyboard and either change the size of the browser when it comes up or keep it below/next to the browser so they never overlap.

  1. Use a complete keyboard image rendered onto its own ovrsurfaceoverlay with another ovrsurfaceoverlay image that frames the key in focus.

El mar., 7 de abril de 2020 03:12, Raymond notifications@github.com escribió:

Hi2.

Small question, Does the BrowserView has to be rendered on top of everything? I have a keyboard that use a canvas renderer and as well as some other game object with default unity material. And the BrowserView gameobject is always render in top of the canvas as well as every other game object.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IanPhilips/UnityAndroidVRARBrowser/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFQ7EMTEMXXR2HAGAXKOXKTRLLVBFANCNFSM4MC6JS2A .

Akravator91 commented 4 years ago

Hi Ian,

Thank you for your suggestion and replying my message.

Your suggestion might take care of the overlapping of the Keyboard's issue. However, how about other 3D object. For example; if there is a player avatar or some other GameObjects?

IanPhilips commented 4 years ago

You'll want to read up on ovroverlays here: https://developer.oculus.com/documentation/unity/unity-ovroverlay/

In short, the overlays are rendered directly over the eye buffer so only other ovroverlays can be rendered over themselves. Traditional objects in unity will always be underneath.

El mar., 7 de abril de 2020 09:03, Raymond notifications@github.com escribió:

Hi Ian,

Thank you for your suggestion and replying my message.

Your suggestion might take care of the overlapping of the Keyboard's issue. However, how about other 3D object. For example; if there is a player avatar or some other GameObjects?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/IanPhilips/UnityAndroidVRARBrowser/issues/11#issuecomment-610439717, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFQ7EMV45KKFHQK7IWXMV43RLM6C3ANCNFSM4MC6JS2A .

Akravator91 commented 4 years ago

Been trying for a week... (っ- ‸ – ς) and I havent find a good way to deal with the overlay.

Does the browser has to use OVRoverlay?

IanPhilips commented 4 years ago

Yes, the browser has to use the OVROverlay. What are you having trouble with? Using more OVROverlays is the only option to display other UI elements over the browser, or you can hide (scaling or moving) the browser.