Advanced ARKit-Detect the measurement of 3D Object or Body | Calculate Start-End point distance Ep-6
HTML-код
- Опубликовано: 4 сен 2024
- This Video tutorial is about Advanced AR in iOS | Measure the distance or height of object using SceneKit, Detecting the start and end point of measurement, calculate the distance between two 3D points and create 3D text in AR Scene.
This project is latest version in 2021. If this video helped you, recommend to subscribe this channel for more tutorials.
👨💻 NOTE:- This video is meant for beginners to learn basic concept on Augmented Reality in iOS . If I went wrong somewhere, please comment it over to make it clear.
🚀Apple Developer AR link :- developer.appl...
👉 AR Full course, Episode 1 :- • Augmented Reality in i...
👉 AR Full course, Episode: 2 :- • Augmented Reality in i...
👉 AR Full course, Episode: 3 :- • Create your First Augm...
👉 AR Full course, Episode: 4 :- • Track body motion in 3...
👉 AR Full course, Episode: 5 :- • Track Body Skeleton mo...
Tools: Xcode 12.1
Apple Products.
Language:- Swift 5
👉 Let's connect via LinkedIn - / mohammed-azeem-azeez-5...
👉 Let's connect via Twitter - / azeemohd786
☕ If you are satisfied with the video, "SAVE THE POOR - Donation*" via Paypal- www.paypal.me/...
* The fund received as donation will be 100% (after transfer charge + GST) used to HELP PEOPLE IN NEED ! including provide education - Respective receipts will sent to you via email.
Thank you for the video. I went through it from the beginning to the end rewriting the code to Xcode. Very educational. Deprecated functions and classes for hit test work better. Hard to say why.
Hi! there. Your video is helpful to me a lot. I wanna get distance between camera and specific point in view (x,y coordinates). Can you give me advice for me?
Thank you for watching!...By using node can calculate using, let distance = simd_distance(YOUR_NODE.simdTransform.columns.3, (sceneView.session.currentFrame?.camera.transform.columns.3)!);
Some other methods using cordinates and SceneKit anchor/camera positions, refer : stackoverflow.com/questions/50937214/arkit-getting-distance-from-camera-to-anchor
Can there be multiple points from starting to ending point. I mean if it object is not straight. Should it be able to place more dots to cover all required area to measure it?
This video is only to measure the distance between two nodes ( points)
If you want to add more nodes need to rewrite and do logic in codes accordingly.
don't works for me, 4 critical error on Double var
Please rewrite the following code to append SCNNode, // override touchBegan
dotNodes.count >= 2 {
dot dotNodes {
dot.removeFromParentNode()
}
dotNodes = [SCNNode]()
}
How to integrate this into swiftui?
Nice tutorial. Source code please
Thank you for watching this video.
Actually i wish the viewers to go through the code and understand by video pause and follow.
Please rewrite the following code to append SCNNode, // override touchBegan
dotNodes.count >= 2 {
dot dotNodes {
dot.removeFromParentNode()
}
dotNodes = [SCNNode]()
}
How to do that with SwiftUI ?
Same question?
Please share Code
Please pause the video and manually follow the code with your project