Skip to content

Sample Unity project for using TLabWebView (3D web browser / 3D WebView plugin) with Mixed Reality Toolkit in OculusQuest

License

Notifications You must be signed in to change notification settings

TLabAltoh/TLabWebViewMRTK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLabWebViewMRTK

Sample project for using TLabWebView (3D web browser / 3D WebView plugin) with Mixed Reality Toolkit

Document is here
Snippets is here

Note

This is a project created for Oculus Quest 2 using MRTK2, but it will not work with HoloLens. This is because the WebView used is an Oculus (or Android) dependent system.

Note

This project is configured by default not to open http sites (a blank screen is displayed); if you want to open http sites, set clearartextTrafficPermitted to true in network_sec_config.xml.

Warning

When upgrading a project to Unity 2022.3.x, a problem was found where the build and web page display succeeded, but the controller and hand tracking were not enabled. Since the cause is not yet known, I recommend that this project be built with Unity 2021.3.x.

Warning

I do not recommend building this project on Unity 6000.x when deploying to Oculus Quest (or Meta Quest). Right now, I have found that HardwareBuffer mode is unstable when this project is built with Unity 6000.x (See this issue for details). If you do, please refer to the "Configuration for Unity 6000.x" section in the Setup section.

Warning

This project uses HardwareBuffer as the default CaptureMode for WebView and Vulkan is used as the default Graphics API. This combination of HardwareBuffer option and Vulkan API is confirmed to work with Oculus Quest, but may not work with some other devices (e.g., the WebView screen may go blank). In that case, Please change the project's Graphics API from Vulkan, which is set by default, to OpenGLES. Or change the CaptureMode from HardwareBuffer to ByteBuffer.


ScreenShot

Operating Environment

  • Oculus Quest 2
  • Qualcomm Adreno650

Requirements

Get Started

Installing

Clone the repository with the following command

git clone https://github.com/TLabAltoh/TLabWebViewMRTK.git

cd TLabWebViewMRTK

git submodule update --init

Set Up

Please see the setup section here

Sample Scene

/Assets/TLab/TLabWebViewMRTK/Scene/TLabWebView MRTK Sample.unity

Releases

No releases published

Packages

No packages published

Languages