Ep. 015 // Improving AR User Experience Using SwiftUI Views and Controls
Вставка
- Опубліковано 30 кві 2021
- ** Access Source Code on Patreon: / 60611407 **
Welcome to our RealityKit + SwiftUI Course! In this course, you’ll learn how to build an AR furniture app for iPhone and iPad.
In this video, we’ll go over how to create a model placement history view to improve our app’s user experience.
When completed, our app will display a horizontal grid with thumbnails for recently placed models in the scene.
We will also have a mostRecentlyPlacedButton that provides the user with a shortcut to quickly place multiple instances of the same model in the scene.
This video is part of the RealityKit + SwiftUI Course playlist: • RealityKit + SwiftUI C...
***
Links
Dynamically Hide/Unhide SwiftUI View (StackOverflow): stackoverflow.com/questions/5...
Swift Collection Types (Swift Docs): docs.swift.org/swift-book/Lan...
--LEGAL DISCLAIMER--
This course and all corresponding materials (e.g. source code) are provided on an “AS IS” basis, without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, and non-infringement.
#RealityKit, #ARKit, #SwiftUI
Who's excited for Season 2 of the RealityKit and SwiftUI Course?? 🥳
Loving these videos!
Happy to hear that Myke! 🙌🏼
Very excited
nice : ) but i prefer your voice!! 😅 how did you make the voice btw?
Haha in order to streamline production, I’m experimenting with some new things, including new voices/personas. For this particular video, it’s a digital human voice created using a deep neural net. 🤖
Brilliant! in the meantime the post on SO has been slightly updated, instead of a switch there is an if/else statement but still the same!
In the MostRecentlyPlacedButton struct though, we have an image for the case the recentlyPlaced array is empty. The clock SF icon. I quite like it better, so I reinstated it. If there are no previous models then it shows the clock :) Of course it can be made persistent but this is beyond the scope of the course...
Love your content !!! Really help me build my food AR app where u can preview food items !
Thank you, Chang! Happy to hear that the content was helpful. Working on more videos with advanced topics 🥳
Best,
Ryan
Another brilliant video tutorial
Thank you! Happy you enjoyed it 🥳
Wonderful
thank you!
You’re welcome! 👍🏼
This app is coming along nicely! Very useful and robust so far. What was the use of scaleCompensation by the way? Once I deleted this my models came in at the correct scale. Would you please do a video for this app to show how to stack 3d objects such as a vase on a 3d table? I know that you have done this video before in a "playground" but that was useless for me since there are no tutorials that I can find on how to translate "playground" code into an Xcode project. Thanks!
Thanks for following along David! ScaleCompensation should be used for models that aren’t properly scaled according to real-world size. So if for example a 3D asset was authored in inches, but RealityKit uses meters, sometimes funky things happen to the scale. So that’s when you would use it. Not every object needs it to so passing in 1 should respect the original scale.
Regarding stacking of virtual objects, it’s already on the schedule to be produced! Video 16 should be live within a week, then we have multiuser for 17 and stacking for 18. Feel free to enable notifications so you get notified as soon as the video is up. Thanks again for taking the course 🙌🏼
Best,
Ryan 👨🏻💻
@@realityschool Makes sense for the scale. Thanks for the clarification! I'm looking forward to more of this "oh so needed" course!