16: 360 Video - How To Unity AR Portal

  Рет қаралды 24,958

chantey

chantey

Күн бұрын

Пікірлер: 99
@CureC-no6ur
@CureC-no6ur 6 жыл бұрын
hi bro.I m using this 360Sphere video player, and it's great. But when U look down the bottom of the 360sphere , U will see dat is not prefect, same as the top. So how can we solve this problem. I m so sry , i m nooob. :X
@peterhayman
@peterhayman 6 жыл бұрын
hmm if the video is warped it could have to do with the recording, rather than how it looks in unity, does it look better on a plane rather than a sphere?
@CureC-no6ur
@CureC-no6ur 6 жыл бұрын
It looks better when playing on a plane. :D so ,should we do something with dat shader?
@CureC-no6ur
@CureC-no6ur 6 жыл бұрын
stackoverflow.com/questions/37088286/360-viewer-in-unity-texture-appears-warped-in-the-top-and-bottom I find the solution here :D
@LeeProbert72
@LeeProbert72 6 жыл бұрын
This is to do with the geometry of the sphere.
@LeeProbert72
@LeeProbert72 6 жыл бұрын
This has been an awesome series, and I wanted to thank you, and offer some suggestions for a follow-up video. It would be worth showing people how to use the GeneratePlanes prefab so they can select the floor plane to place their portal -just add the UnityARHitTestExample to the Portal and it will automagically appear on the floor when you tap. You could also position the portal so it always faces the camera when it is placed. Finally, adding a simple event or delegate to detect when the portal is placed, and then hide the planes (a button could reset this so the user can place again). Excellent work. Thank you so much.
@bryanmehr8236
@bryanmehr8236 6 жыл бұрын
Just finished these tutorials. So thankful that you made this series. This may be helpful to someone. I had to change the code in two spots because ARCore uses the first person camera and not the "Main" camera. I changed the code in the portal script to say Camera.current instead of Camera.main. (Lines 38 - 40) I also had to change it in the input controller script. (Lines 27 - 30).
@ProductionsByWill
@ProductionsByWill 6 жыл бұрын
This fixed it for me, still get a flicker though
@jessicaaguirre5485
@jessicaaguirre5485 6 жыл бұрын
I saw the whole list of videos, and just can say, THANK YOU!! you are the smartest person i have ever seen, and you teach awesome, thank you sincerely
@michaelcorleone4685
@michaelcorleone4685 6 жыл бұрын
It is a good tutorial, which has taught me a lot of knowledge about shaders. This is also the video I have been looking for, thank you very much. I look forward to your next video.
@Батя-к3в
@Батя-к3в 6 жыл бұрын
Thanks for the tutorial! This is great, man! You are awesome! Thanks a lot for the lesson, I was looking for it!
@XiangnanWu_Sam
@XiangnanWu_Sam 3 ай бұрын
En, I have a question, If I use layers to distinguish the rendering parts, how can I trigger the scene change? From a new hand
@nilmag2284
@nilmag2284 6 жыл бұрын
You're awesome man, thanks for your hard work.
@tinloywan4935
@tinloywan4935 6 жыл бұрын
Looking forward to your next video!
@WRENN
@WRENN 6 жыл бұрын
Hey so every time I walk through the portal I don’t end up in the other world. The video only seems to be rendering on the portal window. Any thoughts on how to fix this?
@alesandra1794
@alesandra1794 5 жыл бұрын
same problem here
@TheParthking
@TheParthking 5 жыл бұрын
Hi I've built the portal application from your tutorials. I deployed it with ARCore, and it seems to be working exactly same as yours in my laptop. But when I use the app in my android device, after entering the portal the other world disappears.
@roomi2222
@roomi2222 4 жыл бұрын
Hi Parth, did you find any solution about this problem.
@L3G3NDxd
@L3G3NDxd 6 жыл бұрын
You are so smart !! I admire you. From Colombia :)
@dhatchanamoorthys9729
@dhatchanamoorthys9729 6 жыл бұрын
Bro i have done same thing but in ar when i entered into the portal it just disappears ...
@WalrusesAreTheOne
@WalrusesAreTheOne 8 ай бұрын
Why is it so hard to find equirectangular video these days?
@ahmed-kh
@ahmed-kh 6 жыл бұрын
Awesome! just what am looking for.
@grumpytokki
@grumpytokki 5 жыл бұрын
Thank you for the tutorials. They really helped me a lot..
@vasugupta9824
@vasugupta9824 6 жыл бұрын
which actual device did you use to test it's working??
@ChrisNixART
@ChrisNixART 6 жыл бұрын
VIDEO REQUEST: A video showing how to make a totally new portal scene. New project. But using your existing portal assets. Something simple. But something that shows us how to make a new portal scene from your code, and what to drag where, etc. Maybe make a portal that you walk into a small room, with a chair and a window. THANKS FOR THE AMAZING VIDEOS!!!!
@LeeProbert72
@LeeProbert72 6 жыл бұрын
One more suggestion: the biggest issue with this whole technique is having to amend all the shaders; it makes it tricky when your scene content is complex. I would suggest an Editor tool for automatically trawling through the materials in the scene and updating their shaders. And then get the Portal script to pull the list of materials in the scene instead of relying on the user to set them manually.
@chrstyamber
@chrstyamber 8 ай бұрын
Can I apply this using vuforia?
@GC-Ken-Chess
@GC-Ken-Chess 6 жыл бұрын
Hi, thanks so much for these tutorials, they are great. I have one minor issue, obviously, I have missed something. Everything works up until I get inside the portal then I lose my video or blocks. They just disappear, any hints?
@23sslayer
@23sslayer 4 жыл бұрын
help! my video has no audio. the problem was not in my video since when i'm using a normal player the audio works just fine. the audio just disappears when i put it into unity. help/
@hilarytsai7415
@hilarytsai7415 8 ай бұрын
Where did the file portal.cs come in, because it just suddenly appears 12 minutes in, and does not get referenced earlier on.
@chantey
@chantey 8 ай бұрын
this video is a part of a series but its very old, you may be better off looking into some more current projects
@hilarytsai7415
@hilarytsai7415 8 ай бұрын
@@chantey Thank you. I did see later on that it was a 16 part series, and tried following but you are right it's outdated by this point. You've done a great tutorial though. Thanks for putting this stuff out there
@alesandra1794
@alesandra1794 5 жыл бұрын
Super well explained! Much appreciated :D
@roomi2222
@roomi2222 4 жыл бұрын
Has anyone tried it with success? I have tried the entire tutorial on multiple time. Everything comes as is shown in tutorial but as soon as I bring ARCOre and built for Android my app shows very disturbing behavior. Portal keep dancing on screen. I cannot go through it even running towards it because it keep going away from camera and getting smaller and smaller. I becomes size of my foot height even smaller hence making it look like as if i am watching the portal from above in a bird eye view. Any help where I am going wrong I am really pissed off now.
@neilchan1
@neilchan1 4 жыл бұрын
I have a huge issue when I built to iOS! For some reason the Video Player Component crashes my app instantly, even if it’s not playing a video. As soon as an object with a video player component is placed onto a scene, the applications just crashes and I can’t fix it.. Tried the newest and older versions of Unity Engine but the problem still occurs Anyone can help me please?
@fabiotgarcia2
@fabiotgarcia2 4 жыл бұрын
Hi! Is it possible to add 360 streaming video live?
@rajsalagre5443
@rajsalagre5443 6 жыл бұрын
Hey as Unity 2017.3 just dropped in, so would make a portal video for vuforia so that it can deploy on other phones too.
@chantey
@chantey 6 жыл бұрын
Raj Salagre oh cool! It’s on the radar
@durrell246
@durrell246 6 жыл бұрын
The annoying thing is that for the same functionality, Vuforia just uses ARkit/Core to do it. You might be able to achieve the same effect using Vuforia's ground plane and the extended tracking feature (if ground planes allow that). Official documentation isn't great because it's coming with the next patch in January.
@peterhayman
@peterhayman 6 жыл бұрын
fingers crossed ARKit, ARCore and Vuforia will all be wrapped up in Unity's ARInterface blogs.unity3d.com/2017/11/01/experimenting-with-multiplayer-arcore-and-arkit-jump-in-with-sample-code/
@mortezaaghili2578
@mortezaaghili2578 6 жыл бұрын
Hey Peter, do i need add any permissions for playing video's sound in real device? I can hear video's music in Unity but when i run my app there is no music at all. Thanks
@chantey
@chantey 6 жыл бұрын
Morteza Aghili I was getting sound going on my device cant remember having any problems, unity 2018 is around the corner, new ar system maybe will iron out some bugs
@joeymiller5671
@joeymiller5671 6 жыл бұрын
An awesome tutorial from start to finish! Very informative and makes adding materials and videos seamless. What is the language used for writing shaders and how did you learn this content? Also since ARcore is only compatible with a few devices, could you show how to incorporate the Vuforia AR camera and place the portal to a say a user target or marker? Thank you again, great stuff!
@chantey
@chantey 6 жыл бұрын
Hi Joey, the shaders are written in partly in unitys own 'language' called shaderlab, and partly in a c-like language called hlsl, learnt just about all i know from KZbin, Unity Forums and Stack Exchange. For the time being I am using ARInterface for tutorials which supports ARCore and ARKit, but not (yet?) Vuforia. Plenty of material out there for Vuforia though, reccomend combining this portal series with one of those Vuforia tutorials.
@joeymiller5671
@joeymiller5671 6 жыл бұрын
Thanks for the reply! I was able to get the work pretty well using the Vuforia ARCamera and predefined targets. However it is difficult to walk through the portal and view the other world since the device loses view of the image target while trying to walk around, even with extended tracking enabled. Do you have any suggestions? Thank you again, I hope you continue posting these informative tutorials.
@property007
@property007 6 жыл бұрын
Hi, cool stuffs. When you click play, how do you set such that there are 2 windows side by side (scene and game windows) ?
@peterhayman
@peterhayman 6 жыл бұрын
Sam the panels can be dragged around by their tabs
@ashishuniyal9806
@ashishuniyal9806 6 жыл бұрын
Is there anything if we can interact through virtual objects which are inside the portal ? Like when we pass through the door and we can trigger some events on particular gaze on an object ?
@peterhayman
@peterhayman 6 жыл бұрын
Ashish Uniyal absolutely, check out raycasting
@ashishuniyal9806
@ashishuniyal9806 6 жыл бұрын
Thank you Peter. Do you have any example.? I have used raycasting when using with Oculus VR apps but haven't used for the iPad applications.
@jmunozenpartes
@jmunozenpartes 6 жыл бұрын
Hi man... this video is great. But I'm still getting the "flickering" when moves through the portal. And yes, I made all this line of tutorials including the 15th. It seems that the more Materials you use, the more you notice the flicker. Do you have an extra solution? It's very important for me to solve this problem for ARKit using Shaders.
@peterhayman
@peterhayman 6 жыл бұрын
Juan Antonio Muñoz Its possible that switching between multiple cameras rendering seperate layers would also work. It seems that each technique has its pros and cons
@salmanriaz5335
@salmanriaz5335 5 жыл бұрын
Can you plzzz tell me about 360° images??
@helenell33
@helenell33 6 жыл бұрын
Hello, do you know what camera was used to make the 360 video?
@marshuntcarsten
@marshuntcarsten 6 жыл бұрын
Helen Tran probably a Go Pro or something
@LeeProbert72
@LeeProbert72 6 жыл бұрын
Best solution for the video sphere is to match its position to the camera as it passes through the portal; so the camera is always at the centre, and you'll never walk through it.
@marshuntcarsten
@marshuntcarsten 6 жыл бұрын
Okay so I am done with all the tutorials, but now, testing the portal on my phone as an app, I realised that the background is black instead of real life environment around me and my second problem, is that when I move forward or so by walking, the camera doesn't follow my movement, and last problem.. The portal takes over almost my whole screen? So I take it that this is not for android?
@marshuntcarsten
@marshuntcarsten 6 жыл бұрын
Any idea on how to fix this and make it work well on Android?
@chantey
@chantey 6 жыл бұрын
Sounds like there’s a problem with your cameras. Try testing out the device camera from the arcore demo scene then using that as your camera in the portal scene. To have the portal take up less of the screen try making it smaller
@marshuntcarsten
@marshuntcarsten 6 жыл бұрын
Okay thanks, will try it and let you know how it goes
@marshuntcarsten
@marshuntcarsten 6 жыл бұрын
So I replaced the standard camera with a camera from Vuforia, but I still have the same problem when I convert the app for android. The Portal stays stuck on the screen, no idea why and when I move, I don't move away from the portal, so it is as if the portal is stuck to the screen.
@chantey
@chantey 6 жыл бұрын
i havent much experience in vuforia
@therealjamesmccrary
@therealjamesmccrary 5 жыл бұрын
Love it! But I have a question. Is it possible to create some sort of call to a end users local library of 360 photos or videos to use in an app like this? Any guidance is appreciated!
@GertBrouwer
@GertBrouwer 5 жыл бұрын
Would love to know if you found an answer to this!
@therealjamesmccrary
@therealjamesmccrary 5 жыл бұрын
Gert Brouwer Nope. React looks like the way to go, but I’m still hopeful someone will finally post a vid on how to make this happen directly in Xcode without using react
@GertBrouwer
@GertBrouwer 5 жыл бұрын
@@therealjamesmccrary Thanx for pointing in a direction. Had no idea where to start with this. I'll try to look into that. Get back when I found something usable.
@GertBrouwer
@GertBrouwer 5 жыл бұрын
Maybe here is an other approach: forum.unity.com/threads/open-external-files.25561/
@yumeng-fu4eb
@yumeng-fu4eb 6 жыл бұрын
thank you , one issue i met is when i run 360 video in Arkit using my ipad pro , the video sphere is totally white , and no audio . but in unity editor the 360 video (still no audio) can show through the portal. any idea ? ( i'm using Unity version 2017.2.0f3 , same as your video version , and the 360 video i using is in link : kzbin.info/www/bejne/oXPUc5iIrtuhj5Y , and the video format i download is mp4 , and resolution is 2560*1440) , can you give me some idea? thanks.
@brittanycallan117
@brittanycallan117 6 жыл бұрын
Hey, for some reason when I do the portal with 360 video, I'm able to built it to ARCore but every time I try to walk through the portal the doorway just disappears and then reappears in front of me. I'm not able to walk through into the "other world." Do you know why this is happening?
@peterhayman
@peterhayman 6 жыл бұрын
Hi Brittany, first suspect would be the colliders, make sure the portal collider is set to “is trigger”, and that there is a collider on the device/camera also. If you can see if its working by doing a Debug.Log() in the editor before building
@brittanycallan117
@brittanycallan117 6 жыл бұрын
I have a collider and Is Trigger selected both on the portal and the camera
@peterhayman
@peterhayman 6 жыл бұрын
and a rigidbody with iskinematic set to false is attached to the camera?
@brittanycallan117
@brittanycallan117 6 жыл бұрын
Peter Hayman yup!
@peterhayman
@peterhayman 6 жыл бұрын
and does it work if you test it in the editor with a Debug.Log message every time there is a collision?
@alexdoho
@alexdoho 6 жыл бұрын
Another great tutorial! Hey, how could I get in touch with you ?
@chantey
@chantey 6 жыл бұрын
my email address is in the about section of the channel
@dhirenpathak
@dhirenpathak 6 жыл бұрын
Great and thanks
@dhirenpathak
@dhirenpathak 6 жыл бұрын
I had Problem when i passed camera in sphere(Portal) it's not shown in 360 it's just shown as a wall , pl. help me where i was wrong ???
@bharanidharan3142
@bharanidharan3142 6 жыл бұрын
bro i want 360 portal in 360
@bharanidharan3142
@bharanidharan3142 6 жыл бұрын
sry!! i want 360 portal in arkit
@victoriosalamanca
@victoriosalamanca 6 жыл бұрын
great video, "flat earth" jjajajajaja
Coding INDOOR NAVIGATION with A* Pathfinding
10:24
MatthewHallberg
Рет қаралды 187 М.
Augmented Reality (AR) tutorial for beginners using Unity 2022
32:11
Playful Technology
Рет қаралды 297 М.
The FASTEST way to PASS SNACKS! #shorts #mingweirocks
00:36
mingweirocks
Рет қаралды 16 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 50 МЛН
Create Augmented Reality Portal with Unity and Vuforia in 1 hour | Full course
49:05
1: Overview - How To Unity AR Portal
4:45
chantey
Рет қаралды 24 М.
AR Portal Tutorial with Unity - 360 Video
12:21
Guidev
Рет қаралды 37 М.
360 VIDEO PLAYER (with VR mode) - Unity Tutorial
9:38
Valem
Рет қаралды 72 М.
How to create an Augmented Reality App
24:19
Playful Technology
Рет қаралды 1,4 МЛН
4D Games | 4D Graphics | What 4D games look like, 2D 3D 4D 5D
15:04
Cyberstars - Как создать игру
Рет қаралды 1,9 МЛН
Make your Characters Interactive! - Animation Rigging in Unity
16:19
7: Portal In Scene - How To Unity AR Portal
6:47
chantey
Рет қаралды 10 М.
Augmented Reality Tutorial: Vuforia 7 Ground Plane Detection SLAM
29:05
MatthewHallberg
Рет қаралды 112 М.