augmented-reality

Occlusion in AR

倾然丶 夕夏残阳落幕 提交于 2020-01-02 08:33:02
问题 I'm trying make virtual objects be hidden when a real world object is positioned in front of it, but not having any luck with it, i've been playing with the occlusion settings in unity but the virtual objects do not become hidden? 回答1: You could fix this problem by building your augmented reality scene with the experimental meshing enabled. Here is an example of the concept https://www.youtube.com/watch?v=sn3bhnPlfcw You then could ray cast from camera to the virtual object and turn off the

How do you create an off-center PerspectiveCamera in WPF?

99封情书 提交于 2020-01-02 06:00:30
问题 I'm trying to more or less recreate Johnny Lee's Wii head tracking app, but using an augmented reality toolkit for the tracking, and WPF for graphics. To do this, I need to create a perspective camera using the top, bottom, right, and left parameters to create my viewing frustum, instead of field of view and aspect ratio (to those familiar with OpenGL, I want to use the WPF equivalent of glFrustum instead of gluPerspective) The problem is, those options don't seem to be available on WPF's

How do you create an off-center PerspectiveCamera in WPF?

早过忘川 提交于 2020-01-02 06:00:22
问题 I'm trying to more or less recreate Johnny Lee's Wii head tracking app, but using an augmented reality toolkit for the tracking, and WPF for graphics. To do this, I need to create a perspective camera using the top, bottom, right, and left parameters to create my viewing frustum, instead of field of view and aspect ratio (to those familiar with OpenGL, I want to use the WPF equivalent of glFrustum instead of gluPerspective) The problem is, those options don't seem to be available on WPF's

How to change camera type to Orthographic in Sceneform Android SDK?

故事扮演 提交于 2020-01-02 05:26:20
问题 I'd like to use an Orthographic camera when presenting a model in SceneView (without AR). Couldn't find a way to do so in API. Am I missing something or the feature is missing? 回答1: As far as I know, there's no ORTHO method ( cube frustum ) for camera projection in ARCore / Sceneform at the moment. But you can make it yourself via 4x4 Matrix. So, all you need to do is to calculate left , right , top , bottom , near and far properties using the following principles. Here is how your projection

ARCore Compatible devices

泪湿孤枕 提交于 2020-01-01 04:34:05
问题 What are the next Android smartphones to be compatible with ARCore? Is there a known list of future compatible devices yet? Maybe a general project schedule? We are about to purchase some units for AR development assessments, at first we thought about trying one of the Tango devices out there (we already had a good experience with Tango), but our current bet is that the ARCore platform will beat it in terms of market share. Currently, the compatible devices are only: Google Pixel Samsung

How to draw camera video as background on IOS using Swift scenekit?

你离开我真会死。 提交于 2020-01-01 03:20:12
问题 I am trying to develop an augmented reality app using swift and scenekit on ios. Is there a way to draw the video captured by the device camera as a background of the scene? 回答1: This worked for me, I used AVFoundation to capture the video input of the device camera: let captureSession = AVCaptureSession() let previewLayer = AVCaptureVideoPreviewLayer(session: captureSession) previewLayer.videoGravity = AVLayerVideoGravityResizeAspectFill if let videoDevice = AVCaptureDevice

How to improve People Occlusion in ARKit 3.0

爷,独闯天下 提交于 2020-01-01 03:04:07
问题 We are working on a demo app using people occlusion in ARKit. Because we want to add videos in the final scene, we use SCNPlane s to render the video using a SCNBillboardConstraint to ensure they are facing the right way. These videos are also partially transparent, using a custom shader on the SCNMaterial we apply (thus playing 2 videos at once). Now we have some issues where the people occlusion is very iffy (see image). The video we are using to test is a woman with a dark pants and skirt

Treasure hunt in Augmented Reality

白昼怎懂夜的黑 提交于 2020-01-01 00:48:34
问题 I'm looking for an augmented reality browser/toolkit/api that supports the following: Adding fixed 3d models such as a treasure-chest. Possible image recognition of this treasure-chest so the iPhone knows when you're looking at it. Specify altitude on a 3d model so it can be positioned on the ground or the second floor in an apartment building for example. It must have support for "migrating" it to a standalone app that can be published on the app store. The ability to customize the camera

How to integrate the metaio + Open CV for android application?

拟墨画扇 提交于 2019-12-31 10:02:51
问题 Hi i'm trying to create a application related to the Augmented Reality (AR) and was able to configure my application with Metaio SDK and OpenCV library successfully in two separate application. but the thing is i want to use both the library of OpenCV and Metaio together into one application. so can any one help me with its integration. In my single application I want to use OpenCV for markerless detection and MetaIO for 3D Model rendering. Metaio:http://www.metaio.com/ OpenCV:http://opencv

Convert latitude and longitude to ECEF coordinates system

让人想犯罪 __ 提交于 2019-12-30 18:07:50
问题 I am studying pArk Apple sample code, and how it is works. anyone knows how convert the latitude and longitude to ECEF coordinates, and Covert ECEF to ENU coordinates centered at given lat, lon functions are work? I just want to understand what is going on in this function! thanks. void latLonToEcef(double lat, double lon, double alt, double *x, double *y, double *z) { double clat = cos(lat * DEGREES_TO_RADIANS); double slat = sin(lat * DEGREES_TO_RADIANS); double clon = cos(lon * DEGREES_TO