arcore-depth-lab | ARCore Depth Lab is a set of Depth API samples | Augmented Reality library
kandi X-RAY | arcore-depth-lab Summary
kandi X-RAY | arcore-depth-lab Summary
Copyright 2020 Google LLC. Depth Lab is a set of ARCore Depth API samples that provides assets using depth for advanced geometry-aware features in AR interaction and rendering. Some of these features have been used in this Depth API overview video. ARCore Depth API is enabled on a subset of ARCore-certified Android devices. iOS devices (iPhone, iPad) are not supported. Find the list of devices with Depth API support (marked with Supports Depth API) here: See the ARCore developer documentation for more information. Download the pre-built ARCore Depth Lab app on Google Play Store today.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of arcore-depth-lab
arcore-depth-lab Key Features
arcore-depth-lab Examples and Code Snippets
Community Discussions
Trending Discussions on arcore-depth-lab
QUESTION
Is it possible to import a virtual lamp object into the AR scene, that projects a light cone, which illuminates the surrounding space in the room and the real objects in it, e.g. a table, floor, walls?
For ARKit, I found this SO post.
For ARCore, there is an example of relighting technique. And this source code.
I have also been suggested that post-processing can be used to brighten the whole scene.
However, these examples are from a while ago and perhaps threre is a newer or a more straight forward solution to this problem?
...ANSWER
Answered 2021-Dec-16 at 17:25At the low level, RealityKit is only responsible for rendering virtual objects and overlaying them on top of the camera frame. If you want to illuminate the real scene, you need to post-process the camera frame.
Here are some tutorials on how to do post-processing: Tutorial1⃣️ Tutorial2⃣️
If all you need is an effect like This , then all you need to do is add a CGImage-based post-processing effect for the virtual object (lights).
More specifically, add a bloom filter to the rendered image(You can also simulate bloom filters with Gaussian blur).
In this way, the code is all around UIImage and CGImage, so it's pretty simple😎
If you want to be more realistic, consider using the depth map provided by LiDAR to calculate which areas can be illuminated for a more detailed brightness.
Or If you're a true explorer, you can use Metal to create a real world Digital Twin point cloud in real time to simulate occlusion of light.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install arcore-depth-lab
Manually update dependencies before launching the project: Locate arcore-depth-lab/Packages/manifest.json. Add the dependency of ARCore Extensions SDK with the loca path: "com.google.ar.core.arfoundation.extensions": "file:{path/to}/arcore-unity-extensions-1.24.0.tgz", Launch the project with Unity Editor 2020.3.
Use Package Manager to import dependent package: Use Unity 2020.3 to open the project. It's expected that a window pops up and shows there are compile errors in this project due to missing Extensions SDK, select Continue. In Unity editor, navigate to Window -> Package Manager Click the plus button, and choose the Add package from tarball... option from the drop-down menu. Locate arcore-unity-extensions-1.24.0.tgz and click Open.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page