How to draw a border to highlight a SCNNode and indicate to user that the node is selected? In my project user can place multiple virtual objects and user can select any object anytime. Upon selection i should show the user highlighted 3D object. Is there a way to directly achieve this or draw a border over SCNNode?
How to create a border for SCNNode to indicate its selection in iOS 11 ARKit-Scenekit?
3.9k Views Asked by Vidhya Sri At
1
There are 1 best solutions below
Related Questions in SCENEKIT
- Create and customize T-shirt using SceneKit
- Multiple SCNActions
- How to Make Xcode Recognize Morph Targets in a DAE File Imported from Blender?
- ARKit combining ARImageAnchor position with offset values
- Fetching the animations added to a SCNNode
- RealityKit: VideoMaterial causing odd outline around transparent video?
- Can't add a SCNNode to the rootNode
- How to screenshot a SCNScene or SceneView?
- Issues with Vertical Stretching and Horizontal Movement in Metal Shading Language Ray Tracing Shader
- Why does AVPlayer doesn't orient video correctly when using SceneKit?
- How to load 3D model to UIView with better quality in iOS Swift?
- Several instances of 3D model with skinner, and duplication of weights/indices information
- SceneKit physicBody angularVelocity as local "body fixed" angular rates
- How to draw 3D circles/ring in RealityKit?
- SCNSkinner.boneIndices access generates GBytes of memory allocation - why?
Related Questions in IOS11
- Transparent Black Shade over the Navigation Bar in iPhone-X Later Notch Screen Devices in iOS App
- How to use notification service extension in Cordova FCM
- Why is my responsive, hybrid email template breaking in iPhone 7 Native mail (only)?
- How to make .endswith work in OS 11 chrome and safari?
- Named Color in user defined property border color UIButton app crash
- pod install / update on iOS11 with Xcode12.2
- UISearchController searchBar background color of text field in iOS 11
- UISearchController does not show up in iOS 12
- Swift/Combine- Assign a filtered object to a property on a class
- Is it possible to use ARReferenceImage objects created programatically from the images on iOS 11.3.1
- Can iOS DeviceCheck token remains same across 2 apps if both app has different developer but has same SDK installed?
- OpenTok Session Volume Change Doesn't work with MPVolumeView
- Bottom ion-tabs overlapping on last portion of ion-content on iOS devices
- Disable drag interaction on specific section
- dyld: Library not loaded: @rpath/ ... Reason: no suitable image found. updated device to latest update 13.3.1
Related Questions in ARKIT
- UE4: CodeSign Failed, get-task-allow entitlement doesn't match
- Is it possible to use Apple's ARKit to measure the length and width of an individual's foot to estimate shoe size?
- How can I detect plane and add model entity on it in visionOS?
- AR Scene Black Screen Issue in Android with AR Core AR Foundation and Niantic ARDK 3
- RealityKit - Add a line from one Model entity to center of screen as it moves
- Getting Call to main actor-isolated static method 'loadMainScene()' in a synchronous nonisolated context error in ARKit swiftui application
- Why custom created entity does not rotate with BodyAnchor's rotation?
- How to I wrap a UIKit view in SwiftUI with a delegate callback requiring a return value?
- How to Make Xcode Recognize Morph Targets in a DAE File Imported from Blender?
- ARKit not perfectly locking in user heading
- ARKit combining ARImageAnchor position with offset values
- how to get the bouding box dimension when using the object capture api in iOS17 after detecting the object
- ARKit Body Tracking head-body rotation inaccuracy when model turn back
- Unable to present an Immersive Space for id: Error Domain=FBSWorkspaceErrorDomain Code=1 "scene invalidated before create completion"
- RealityKit: VideoMaterial causing odd outline around transparent video?
Related Questions in XCODE9BETA6
- How do I see bluetooth available devices in objective c?
- Update ios11.1 with Xcode 9 and iPhone 7
- UINavigationBar.appearance().shadowImage = UIImage() in swift 4
- Asset Catalog Compiler Error Xcode 9
- ImagePickerController on iOS 11 not showing rightBarButton But it works on tapping
- iOS 11 beta 9 empty keyboard keys
- UISearchController.hidesNavigationBarDuringPresentation ignored with scopeButtons in iOS 11 Beta
- CloudKit - "Invalid bundle ID for container"
- Brew upgrade not working on latest OSX High Sierra beta version
- Xcode 9 - Downloadable xip file is corrupt from apple site
- Xcode 9 beta 6 error "Reference to 'sqlite3_value' is ambiguous"
- navigationItem.titleView is taking space form the leftBarButtonItems in ios 11
- How to find if collision between two scene nodes ended in ARKit-Scenekie of ios 11?
- How to implement bounce off collision between two nodes in ARKIT-Scenekit of iOS 11?
- Swift generics: Non-nominal type does not support explicit initialization
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to add a tap gesture recognizer to the
sceneView.Then, handle the tap and highlight the node:
The snippet above highlights the whole node. You'd have to adjust it to highlight the borders only, if that's what you're looking for.
Disclaimer:
This code was taken directly from Xcode's template code created when opening a new game (
SceneKit) project.