TLabAltoh / TLabWebViewVR

Sample Unity project for using TLabWebView in OculusQuest. Includes Meta XR SDK and XR Interaction Toolkit implementation example.
https://tlabgames.gitbook.io/tlabwebview/
MIT License
43 stars 9 forks source link

Is it possible to have two Webviews and more in one scene? #5

Closed aequivalent2 closed 1 year ago

TLabAltoh commented 1 year ago

Thanks for the comment. TLabWebView does not support multiple instances yet, but as soon as it does, I will include it in the next update (I don't think it'll take long. Just give me a minute).

aequivalent2 commented 1 year ago

Okay thanks have a nice Day

TLabAltoh commented 1 year ago

TLabWebViewVR now supports multiple instances

Demonstration Video

How to check how it works

I have prepared multiple WebView instances for the OculusIntegration sample scene. You can check the behavior with multiple instances by enabling the disabled WebView instances and building the scene.

Currently not possible

aequivalent2 commented 1 year ago

Thank you i will test it out tomorrow :)

aequivalent2 commented 1 year ago

Is it normal that the Racast Dummy is missing in the XR Toolkit?

TLabAltoh commented 1 year ago

Yes. The raycast dummy has been removed from the project as it is no longer needed due to changes in the system design.

 (Before the change, raycast dummy was necessary because physics.raycast() was used to determine the intersection of the WebView panel and rays. Now, the intersection is determined based on the positional relationship of the ray pointer to the panel. (You can check the implementation in the TLabWebViewXRInputListener.cs))

aequivalent2 commented 1 year ago

Hello i tested it with the XR-Toolkit and i ran into one Problem. I attached the error code Screenshot 2023-10-08 133355

TLabAltoh commented 1 year ago

Thanks for reporting this.

The error may be that you are using an older version of the code in Assets/TLab/TLabWebView, replacing the Assets/TLab folder with the latest commit from that repository may fix the error.

(This repository is subject to frequent fatal changes, so code compatibility between versions is low).

If you have made changes to prefabs or other files inside Asset/TLab, please save them once to a folder other than Asset/TLab so that you can continue working on them after the update.

I have not yet checked if the bug can be reproduced, so I'll check on my end.

aequivalent2 commented 1 year ago

Hello, sorry to bother you but i tried it and the both webviews are displaying the same image in the XR-Interaction Toolkit

TLabAltoh commented 1 year ago

I'm sorry. There was a mistake in my earlier comment.

//////////////////////////////// replacing the Assets/TLab folder with the latest commit from that this repository may fix the error. ////////////////////////////////

Only this repository has multi-instance WebView support, so replace Asset/TLab with the latest commit from this repository.

aequivalent2 commented 1 year ago

Thanks now it works perfectly fine. Thank you very much :)