RealityKit Video Material with Local File

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

Комментарии • 38

  • @LAVolAndy
    @LAVolAndy Год назад

    Great tutorial! I'm a couple years late, but I'm working on a VisionPro app and this is a great start.

    • @realityschool
      @realityschool  Год назад

      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

  • @gigglesandgrins2743
    @gigglesandgrins2743 4 года назад +2

    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?

  • @MrAlexozo
    @MrAlexozo 4 года назад

    Neat! Been using SceneKit for this kind of purpose but its nice they added it for realitykit

    • @MrAlexozo
      @MrAlexozo 4 года назад

      Oh I didn't know that, makes sense! They really are planning something (hope to be a pair of AR glasses)

  • @jamieb8532
    @jamieb8532 2 года назад

    Awesome video, it worked perfectly.
    Thanks Ryan!

  • @WOWCOAST
    @WOWCOAST 4 года назад +1

    Ryan , can this be exported (as coded)as a reality file to share as quick look? Thanks!

  • @jonathanbarnes2887
    @jonathanbarnes2887 2 года назад

    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?

  • @mark2233ibk
    @mark2233ibk 4 года назад

    Hi great video!! Love it! But i have a question will this code run only on a IOS 14 device?

  • @abenjaminperkins
    @abenjaminperkins 4 года назад +1

    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?

    • @abenjaminperkins
      @abenjaminperkins 4 года назад

      @@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?

    • @abenjaminperkins
      @abenjaminperkins 4 года назад

      @@realityschool thanks so much for looking into and letting me know. I'll definitely try to dive deeper into that.

    • @abenjaminperkins
      @abenjaminperkins 3 года назад

      @@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.

  • @QDWorld
    @QDWorld 3 года назад +1

    It’s fantastic !

  • @latinacoder3699
    @latinacoder3699 3 года назад

    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

  • @sbf
    @sbf 4 года назад

    Does this work with videos over a network or just local to the app bundle?

  • @JimmyGunawan
    @JimmyGunawan 4 года назад

    Hi Ryan, can this code also works in Swift Playground? Using UIKit or SwiftUI?

  • @dingosmoov
    @dingosmoov 4 года назад +1

    Can you apply an alpha channel to the video in order to have parts of the video transparent?

    • @WOWCOAST
      @WOWCOAST 4 года назад +1

      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 .

  • @yashjain5635
    @yashjain5635 4 года назад

    Hey Ryan, great video! So is there a limit to the video file size that can be rendered in this format ?

    • @yashjain5635
      @yashjain5635 4 года назад

      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.

    • @WOWCOAST
      @WOWCOAST 4 года назад +1

      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 ?

    • @WOWCOAST
      @WOWCOAST 4 года назад

      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 .

  • @maruko4721
    @maruko4721 3 года назад

    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?

    • @latinacoder3699
      @latinacoder3699 3 года назад +1

      you have to make sure the device simulator is on :Any IOS DEVICE

  • @latinacoder3699
    @latinacoder3699 3 года назад

    i dont know where u are geting your video file

  • @josebecerra7002
    @josebecerra7002 4 года назад

    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.

    • @josebecerra7002
      @josebecerra7002 4 года назад

      Ryan Kopinsky yes, another question, would be best to write down the code just in case you need them and is iOS development hard?

    • @josebecerra7002
      @josebecerra7002 4 года назад

      Yes, I always wanted to study iOS development. I like to talk about it a lot

    • @josebecerra7002
      @josebecerra7002 4 года назад

      Ryan Kopinsky anytime soon, I use code academy to learn, i wonder if that’s the right app to use to learn iOS development

    • @josebecerra7002
      @josebecerra7002 4 года назад

      Ryan Kopinsky I have to pay, I don’t want to pay

  • @CinematicAdventureOne
    @CinematicAdventureOne 3 года назад

    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.

    • @CinematicAdventureOne
      @CinematicAdventureOne 3 года назад

      No Audio bug fixed: Please turn silent mode off!!!!!! lol I'm just so stupid sometime.

  • @namanmurarka9252
    @namanmurarka9252 4 года назад +1

    They must be adding video for apple glasses do that we could have an virtual side car running on it
    That’s my theory

    • @namanmurarka9252
      @namanmurarka9252 4 года назад

      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

    • @namanmurarka9252
      @namanmurarka9252 4 года назад

      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