You are very much on time! Vision Pro ships in 6-7 months. The Reality School channel was created to prepare folks like yourself for this exciting new future. Can’t wait to see what you build!! Best, Ryan
Best video I came across! Thanks. One question though, how can I try this in simulator? I don't want to install iOS 14 now and wanna wait till public release but so eager to try this out. AnchorEntity(plane: .vertical) will not work when I do it in simulator. Any suggestions?
Hello, Thank you for this amazing tutorial! Works perfectly. Question as I'm not a big coder yet... How would I attach this to an image trigger? For instance, video appears after an image is found. I can do that function in Reality Composer but how do I bring in the video functionality to this behaviour?
Such an incredible video Ryan! Thank you for explaining this in detail so it was easy to follow along! After building this on my computer, I'm having issues with the TV showing up on the wall. When I point at a wall nothing happens. Any ideas on what might be happening?
@@realityschool thank so much for such a fast response! That did work to try a different wall! Haha I'm just starting to learn coding so this might be an amateur question, but the video is rotated the wrong way and looks squished. I used a portrait oriented video and I know you had a horizontal one, so I switched the TV screen dimensions to be tall instead of wide, but the video is showing up wrong still. What else could I try to fix that?
@@realityschool is there any possibility of adding an image to the "TV" or to make an image tracker but with the Video Material instead of the AR Resource Group? I've been trying to find out how to do this but it doesn't seem like very many people are using the Video Material method and I don't see anything about making an image tracker with the Video Material.
James I used HEVC with alpha but realitykit did not display video with transparent background straightaway . Not sure if supported yet or could be additional coding to achieve this .
Yes, that would also be a good parameter to test as well. Also just a suggestion, if you could do something like collaboration on github with Xcode, it would be a good one, because merge conflicts are not at all easy to solve there.
I’ve used a 1080p, 50 mb mp4 video as the material to an entity created in Reality Composer and it plays smooth along with the sound and animations in the scene . Thanks Ryan ! A lot of us have been waiting for vid support. I wonder is it possible or supported even to use an alpha transparency HEVC vid ?
Ryan Kopinsky simply adding a HEVC video (apple puppets sample vid)with alpha transparent won’t produce transparent background in realitykit. The background is black . Maybe not supported yet or could be a work around not sure .
Thank you for sharing, very helpful. But I'm having a little difficulty with line 50 of the code [let anchor = AnchorEntity(plane: .vertical)], it keeps showing an error and the suggestion that Extraneous argument label 'plane:' in call Remove 'plane: 'Type ' AnchoringComponent.Target' has no member 'vertical' I am very confused, if you know the answer, can you tell me?
How would you know which code to use to your project, do you have remember the codes or just search it up. I am asking because I am interested in doing this in the future.
My experience: Video with mp4 format cause app crashed: Fatal error: Unexpectedly found nil while unwrapping an Optional value. Video with mov format has video but no audio.
Ryan Kopinsky I wish apple do something like this so that we can have an additional external monitor by next to our laptop sitting in the class room or cafe
Ryan Kopinsky I more likely wish this to come on lightweight AR glasses coz according to rumors the glass will be functioning with the help of our iPhone , so basically your phone can project the sidecar feature on the glasses without additional power require Btw I am also an developer
Great tutorial! I'm a couple years late, but I'm working on a VisionPro app and this is a great start.
You are very much on time! Vision Pro ships in 6-7 months. The Reality School channel was created to prepare folks like yourself for this exciting new future. Can’t wait to see what you build!!
Best,
Ryan
Best video I came across! Thanks. One question though, how can I try this in simulator? I don't want to install iOS 14 now and wanna wait till public release but so eager to try this out. AnchorEntity(plane: .vertical) will not work when I do it in simulator. Any suggestions?
Neat! Been using SceneKit for this kind of purpose but its nice they added it for realitykit
Oh I didn't know that, makes sense! They really are planning something (hope to be a pair of AR glasses)
Awesome video, it worked perfectly.
Thanks Ryan!
Happy to hear that, Jamie!
Best,
Ryan
Ryan , can this be exported (as coded)as a reality file to share as quick look? Thanks!
Hello, Thank you for this amazing tutorial! Works perfectly. Question as I'm not a big coder yet... How would I attach this to an image trigger? For instance, video appears after an image is found. I can do that function in Reality Composer but how do I bring in the video functionality to this behaviour?
Hi great video!! Love it! But i have a question will this code run only on a IOS 14 device?
Such an incredible video Ryan! Thank you for explaining this in detail so it was easy to follow along! After building this on my computer, I'm having issues with the TV showing up on the wall. When I point at a wall nothing happens. Any ideas on what might be happening?
@@realityschool thank so much for such a fast response! That did work to try a different wall! Haha I'm just starting to learn coding so this might be an amateur question, but the video is rotated the wrong way and looks squished. I used a portrait oriented video and I know you had a horizontal one, so I switched the TV screen dimensions to be tall instead of wide, but the video is showing up wrong still. What else could I try to fix that?
@@realityschool thanks so much for looking into and letting me know. I'll definitely try to dive deeper into that.
@@realityschool is there any possibility of adding an image to the "TV" or to make an image tracker but with the Video Material instead of the AR Resource Group? I've been trying to find out how to do this but it doesn't seem like very many people are using the Video Material method and I don't see anything about making an image tracker with the Video Material.
It’s fantastic !
where did u get that link or video I tried looking in apple coumentationa nd could not find I am stuck on the 17:04 part
Does this work with videos over a network or just local to the app bundle?
Hi Ryan, can this code also works in Swift Playground? Using UIKit or SwiftUI?
Can you apply an alpha channel to the video in order to have parts of the video transparent?
James I used HEVC with alpha but realitykit did not display video with transparent background straightaway . Not sure if supported yet or could be additional coding to achieve this .
Hey Ryan, great video! So is there a limit to the video file size that can be rendered in this format ?
Yes, that would also be a good parameter to test as well. Also just a suggestion, if you could do something like collaboration on github with Xcode, it would be a good one, because merge conflicts are not at all easy to solve there.
I’ve used a 1080p, 50 mb mp4 video as the material to an entity created in Reality Composer and it plays smooth along with the sound and animations in the scene . Thanks Ryan ! A lot of us have been waiting for vid support. I wonder is it possible or supported even to use an alpha transparency HEVC vid ?
Ryan Kopinsky simply adding a HEVC video (apple puppets sample vid)with alpha transparent won’t produce transparent background in realitykit. The background is black . Maybe not supported yet or could be a work around not sure .
Thank you for sharing, very helpful. But I'm having a little difficulty with line 50 of the code [let anchor = AnchorEntity(plane: .vertical)], it keeps showing an error and the suggestion that Extraneous argument label 'plane:' in call Remove 'plane: 'Type ' AnchoringComponent.Target' has no member 'vertical'
I am very confused, if you know the answer, can you tell me?
you have to make sure the device simulator is on :Any IOS DEVICE
i dont know where u are geting your video file
How would you know which code to use to your project, do you have remember the codes or just search it up. I am asking because I am interested in doing this in the future.
Ryan Kopinsky yes, another question, would be best to write down the code just in case you need them and is iOS development hard?
Yes, I always wanted to study iOS development. I like to talk about it a lot
Ryan Kopinsky anytime soon, I use code academy to learn, i wonder if that’s the right app to use to learn iOS development
Ryan Kopinsky I have to pay, I don’t want to pay
My experience:
Video with mp4 format cause app crashed: Fatal error: Unexpectedly found nil while unwrapping an Optional value.
Video with mov format has video but no audio.
No Audio bug fixed: Please turn silent mode off!!!!!! lol I'm just so stupid sometime.
They must be adding video for apple glasses do that we could have an virtual side car running on it
That’s my theory
Ryan Kopinsky I wish apple do something like this so that we can have an additional external monitor by next to our laptop sitting in the class room or cafe
Ryan Kopinsky I more likely wish this to come on lightweight AR glasses coz according to rumors the glass will be functioning with the help of our iPhone , so basically your phone can project the sidecar feature on the glasses without additional power require
Btw I am also an developer