Тёмный

WebXR Export for Unity - 2020-11-01 Update 

Oren De-Panther
Подписаться 345
Просмотров 13 тыс.
50% 1

Samples and How to export to WebXR using Unity, with the recent updates to the WebXR Export package (version 0.3.0).
Newer tutorial (January 2024 Edition) at • How to use WebXR with ...
Create Virtual Reality and Augmented Reality experiences for the Web.
More info and links in the WebXR Export repository - bit.ly/3mN8NEs
Packages:
WebXR Export - bit.ly/2JvQh53
WebXR Interactions - bit.ly/34PRHzj
Chapters:
0:00 What is WebXR
1:10 WebXR Export
1:49 Adding WebXR Export package
4:12 WebXR settings
5:30 Adding Oculus package
6:10 Adding WebXR Interactions and Samples
8:28 The sample scene
10:00 Play VR in the editor
10:41 WebXR WebGLTemplates
11:28 Use HTTPS server
12:37 Demo time!
#WebXR #Unity

Наука

Опубликовано:

 

23 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 54   
@hitlab
@hitlab 2 года назад
Excellent tutorial! Thank you so much. So helpful.
@MrJocyf
@MrJocyf 3 года назад
Great work, man! Impressive!
@ROBYER1
@ROBYER1 3 года назад
This is terrific work, makes me wonder why Unity don't just add this capability into the engine themselves as an official plugin
@De-Panther
@De-Panther 3 года назад
Thanks! I'm not working at Unity, so I can't give an answer to that. But it's not a simple task. WebXR API is mostly based on promises, and you don't know ahead of time which features are available, which is to some degree different from how Unity's current XR packages works. That being said, I think that asking in the forums about WebXR, and talking with relevant Unity employees, will help them see the needs and the amount of devs and users who will use it.
@hafeezurramlee3276
@hafeezurramlee3276 3 года назад
Thank you man !
@madhvendrarathod3152
@madhvendrarathod3152 2 года назад
Excellent Work Man 💫 I was curious about AR. If like for Marker Based AR which scans the target and places a 3D object or a video playback on it. Is it possible to do WebAR with Unity?
@mohammadrazakhan3852
@mohammadrazakhan3852 3 года назад
What If my scene is having XR Rig and oculus hand models. And everything this Is set to XR Related ? When I try to export my scene I get error when I open the Index file in firefox showing Error related to Unity package. When I try to export the Desert scene I didn't got any error. So I got the error because I Have XRRig instead Webxr CamerSet ? Please someone solve my confusion. I'd have WebXr Camera Set instead I have XR Rig which have all my interactable and oculus hand models which is used
@mchac1
@mchac1 Год назад
Amazing work! Is it possible to integrate it on SCORM? I mean you use a webxr template and to integrate web app in LMS (Moodle) unity tutorials require a Scorm template, have you ever try it? Thanks
@JamesClarkToxic
@JamesClarkToxic 2 года назад
I have a scene built with the WebXR Exporter, and with Pixel Crusher's Dialogue System, I'm using a Quest 2. When testing in editor, I can use my thumbstick on my left controller to toggle choices, and the right "A" button to select a choice. However, when I build, it doesn't register any controller input (other than position). Also, is the WebXR Exporter incompatible with the New Input System? I tried to install the Oculus integration, and VR Interaction Framework, which uses the New Input System, and it breaks the project.
@De-Panther
@De-Panther 2 года назад
No support for the new input system
@JamesClarkToxic
@JamesClarkToxic 2 года назад
@@De-Panther Thank you for the reply. With that being said, how do I get the build to register my Quest 2's button presses?
@De-Panther
@De-Panther 2 года назад
@@JamesClarkToxic better use the WebXR Discord or open an issue in the repo. It's all in the WebXRController. There's WebXR Interactions package, which you can look at the code of ControllerInteraction to see how to interact with the WebXRController.
@JustLee-wn5zz
@JustLee-wn5zz 2 года назад
Hello, I followed this tutorial and mine works! By the way, do you know How to activate AR option? Only VR button is active and AR button is greyed out.
@elenix4082
@elenix4082 2 года назад
Why mine does not have that AR/VR toggler button?
@bytech101
@bytech101 2 года назад
I am getting compiler error? What could be the reason. thanks
@MattPorter0
@MattPorter0 3 года назад
Great job!! Is this possible to use with navigating the scene with computer keyboard and mouse?
@De-Panther
@De-Panther 3 года назад
Thanks. Yes, but you'll have to write your own component for that. You'll want to have a combination of moving the WebXRCameraSet GameObject and the MainCamera GameObject
@adriantamas
@adriantamas 3 года назад
Quest Hand Tracking? Haptics for Controllers? Any updates on that?
@De-Panther
@De-Panther 3 года назад
Quest (and Hololens 2) Hand Tracking - You can see at the start of the video (hands made from tiny boxes). Haptics for controllers - Supported both in WebXR and in the editor. You can test it here - bit.ly/3mSahgG
@RabeeQiblawi
@RabeeQiblawi 3 года назад
am strugelling with ui input, do you have an idea of how make that work, interaction toolkit solution not working
@De-Panther
@De-Panther 3 года назад
UI input is a wide subject. Are you asking about casting a ray from the controller to a button on a canvas? If so, attach disabled camera to the controller, and cast the ray from that camera
@TopChartsGameStore
@TopChartsGameStore 2 года назад
i was run this project its showing " webgl using webxrexport%UNITY_WEB-NAME% " . what to do i cant understand. please help me.
@De-Panther
@De-Panther 2 года назад
use the relevant webgltemplate, for 2020 and up, use the templates that ends with 2020
@pushthebutton4602
@pushthebutton4602 3 года назад
How can you add teleporting to this? I would like to walk around.
@De-Panther
@De-Panther 3 года назад
@MrJocyf made an interaction add-on that works with one of the versions of this package. I hope that he'll create a repo for it soon. He used IJEMIN "Simple VR Teleporter" - github.com/IJEMIN/Simple-Unity-VR-Teleporter More info at forum.unity.com/threads/webxr-advanced-interaction-oculus-blackscreen.978258/
@pushthebutton4602
@pushthebutton4602 3 года назад
@@De-Panther thank you for this info! BTW do you no anything about multiplayer with WebXR?
@De-Panther
@De-Panther 3 года назад
It'll be similar to networking/multiplayer in WebGL. Look for libraries/packages/add-ons for Unity that support WebGL
@ikarosound2504
@ikarosound2504 3 года назад
Awesome! I followed the guide but when i try it on AR on ios the 2 squared for the eyes are rotated of 90 degrees and if i turn my phone the image not turn as aspected, it is normal? maybe I missing something?
@De-Panther
@De-Panther 3 года назад
iOS doesn't support WebXR. There are some hacks, but I wouldn't count on them.
@ikarosound2504
@ikarosound2504 3 года назад
@@De-Panther Ah, thanks for the info!!!
@wanglinda2212
@wanglinda2212 2 года назад
@@De-Panther Doesn't it run on a webGL page ?
@De-Panther
@De-Panther 2 года назад
@@wanglinda2212 it runs on WebGL, but it uses the WebXR API which is not supported on iOS
@wanglinda2212
@wanglinda2212 2 года назад
@@De-Panther Is there any other way?About the WebAR, This is one of the few ways we can use Unity... 😢
@Aywhatyoudoing
@Aywhatyoudoing 3 года назад
Import from Unity to Git doesnt work... how to fix?
@De-Panther
@De-Panther 3 года назад
It should work if it's Unity 2019.4.7 and up. And as you can see in the video, it doesn't show a progress bar. Also, you need to have Git client on your computer docs.unity3d.com/Manual/upm-git.html
@mmmshuddup
@mmmshuddup 3 года назад
Amazing work! but I see nothing in my headset. And I get a warning saying there’s no valid WebXRSubsytem enabled... please help :’( idk what any of this means or how to debug
@De-Panther
@De-Panther 3 года назад
In the Editor or in WebGL? For the editor - Check your device XR Plugin in the Desktop plugins list. For WebGL- Make sure that WebXR Export is set in the XR Plugin WebGL list
@hiranga
@hiranga 3 года назад
@@De-Panther This looks really fantastic! I'm trying to understand where to / how to develop an AR experience for WebAR (without need for an App) - do you think you could please clarify this>>> ? >>> I want persistent tracking, hosted to a Marker, so that if the marker goes outside of view, I want the 3d assets to continue showing with the position estimated. I came across Google Model Viewer, which seems to work well, however it does not have Marker tracking to begin the experience, and set the real world scale of the object. I then tried AR.js, but the asset disappears if the Marker goes missing from the scene (unless there is a way of overcoming this???) . Assuming AR.js and Google Model Viewer don't work for me, is Unity AR Foundation the way to do this? I need it to run on WebAR for Android and IOS.. So will this exporter achieve that? Any compatibility issues?
@De-Panther
@De-Panther 3 года назад
@@hiranga WebXR - Web API that uses the native device VR/AR capabilities. On Android it uses ARCore, on iOS there's currently no support for it. Google Model Viewer - Use WebXR on Android, and uses Apple Quick Look on iOS. AR.js - A library that has it's own algorithm for AR in browser, it works on most of the browsers and devices, depends on the device memory and capabilities. There are other web AR libraries for the web that are not based on WebXR. Unity's AR Foundation doesn't support WebGL at the moment. So currently no WebXR or other web AR libraries support. If you need to run AR on both iOS and Android, and you need both SLAM and Image Marker tracking, there are several web AR libraries that might work, but better do some search for that.
@hiranga
@hiranga 3 года назад
@@De-Panther oh wow. Thanks so much for your summary >> Okay.
@De-Panther
@De-Panther 3 года назад
@@hiranga Those are engines / tools. What you are looking for is a web AR library. The comment section here isn't suitable for long discussions. There's the WebXR discord server, you can ask there discord.gg/Jt5tfaM
@vishwahsiva8738
@vishwahsiva8738 3 года назад
Dude how does AR work in this
@De-Panther
@De-Panther 3 года назад
The sample scene in this video supports AR. You can also look at the SceneHitTest GameObject to see how to place virtual objects in the real world
@hailelam4112
@hailelam4112 3 года назад
Help me. How to build run webXR xampp ??
@De-Panther
@De-Panther 3 года назад
WebXR xampp?
@hailelam4112
@hailelam4112 3 года назад
@@De-Panther thanks. Project run web vr
Далее
How to use WebXR with Unity - January 2024 Edition
28:11
Meta Connect 2022 | Build Great WebXR Experiences
19:33
НОВАЯ ПАСХАЛКА В ЯНДЕКСЕ
00:20
Просмотров 1,6 млн
WebXR APIs and Examples
30:59
Просмотров 18 тыс.
WebXR Export for Unity - Controllers update in v0.4.0
15:16
Get Started with AR in Unity in 6 minutes!
6:59
Просмотров 130 тыс.
Собираем комп за 500 000 рублей!
6:44:35