arcore

Getting “ArSession_update failed with status -7” error on logcat

我的未来我决定 提交于 2020-01-06 02:35:12
问题 Hi i am getting an error when i try to run my unity apk app which consits of ArCore on my android phone.(Android 9 and 10). Note (I have not tested it on less than 9) When i open my app it asks me for every permission that is necessary for a camera to open. But when the scene starts my camera does not open and gives a black screen. When i looked at log cat it gave me following :- ################ BUILD ID BUILD_USERNAME build-secure BUILD_HOSTNAME oxf6.prod.google.com BUILD_DIRECTORY /export

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

ARCore for Unity save camera image

蹲街弑〆低调 提交于 2019-12-31 07:17:13
问题 Using ARCore for Unity, trying to save Frame.CameraImage.AcquireCameraImageBytes() as image and scanning the image for QR code. But the converted image is not in actual scale and it is repeating, so not able to deduct the QR code correctly. Here is my code void Update() { using (var image = Frame.CameraImage.AcquireCameraImageBytes()) { if (image.IsAvailable) { byte[] m_EdgeImage = null; Color32[] pixels = null; IParser Parser = new ZXingParser(); if (_texture == null || m_EdgeImage == null |

Streaming CustomView ARcore with Twilio video

☆樱花仙子☆ 提交于 2019-12-31 01:51:10
问题 I've a problem when i want to streaming a custom view with twilio video api along with ARcore, basically it stream a black screen. I used ViewCapturer class from example to this link https://github.com/twilio/video-quickstart-android/tree/master/exampleCustomVideoCapturer from the official documentation, but doen't work with arcore, probably due to the presence of the surface view in the arFragment. Thank you for your support. activity_camera.xml <?xml version="1.0" encoding="utf-8"?>

Android Gradle Plugin (Warning) API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'

房东的猫 提交于 2019-12-30 18:05:09
问题 I am trying to build and run this repository augmented-images and I encounted this error. Caused by: java.lang.RuntimeException: Error creating sfa. Which drill down to this warning Warning ! API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()' . More from the build log analysis I see the following errors ERROR: Failed to import 'sampledata/airplane/Airplane.obj' I tried to find where this variant.getMergeResources() is used so I can

How to apply transformation using 3x3 rotation matrix and a translation vector?

无人久伴 提交于 2019-12-25 03:38:29
问题 I am working on an Augmented Reality project using ARCore. Coordinate system of ARCore changes every time you launch the application making the initial position as origin. I have 5 points in another coordinate system and i can find 4 of these positions in Unity world space using ARCore Augmented Image. These points have different values in my other coordinate system of course. I have to find position of a 5th point in Unity world space using its position in other coordinate system. I have

project tango / arcore area mapping

北战南征 提交于 2019-12-25 03:11:09
问题 As we know, ARCore has all but replaced project tango but I have some research projects in mind that involve area mapping, therefore I have few questions regarding tango and ARCore. For Area mapping, tango produces more precise and denser point-cloud information than ARCore, therefore if I want to "area-map", a Tango device would be better for me. Is this right? The SDK for ARCore and Tango are the same thing and therefore support for its methods, documentation etc. are still effectively

How to change Color of ModelRenderable?

邮差的信 提交于 2019-12-24 21:58:44
问题 i have a ModelRenderable attached to a Node and rendered in an ArFragment. I would like to highlight this element to the user for 0.5 sec in a prominent color. I tried to change the material, but it didn't work out. The rendering freezes without throwing an error. Here is what I tried: private void addHighlightToNode(Node node) { CompletableFuture<Material> materialCompletableFuture = MaterialFactory.makeOpaqueWithColor(this, new Color(0, 255, 244)); ModelRenderable highlightedRenderable =

How to prepare a 3D model to embed in an AR App

落花浮王杯 提交于 2019-12-24 20:39:52
问题 I have a newbie-questions regarding a 3D model I want to use in an AR App (with sceneform). The model itself is in .fbx format and I have 5 textures or maps (as .jpg files) for opacity, metal, roughness, base color and normal. Importing the .fbx model works, but I have no idea how to assign the textures to it. According to the documentation (https://developers.google.com/ar/develop/java/sceneform/custom-material), I need a .mat file. And that's my problem, how to create one. Manually or