arcore

How to rotate animate the rotation of a Node in ARCore Sceneform

别来无恙 提交于 2019-12-06 22:53:41
I understand that 3D animations such as walking are not yet supported in ARCore, but how can I animate the rotation of a Node? I know I can set LocalRotation or WorldRotation but how do I make this animated continuously in a smooth fashion? The easiest way is to use the Android Property Animation . An example of doing this is in the Sceneform sample "Solar System". Take a look at RotatingNode . This rotates the node around its axis. First, it creates an ObjectAnimator that uses LinearInterpolation to set the rotation between 4 points around a circle. private static ObjectAnimator

Can I save ar data for reuse?

谁说我不能喝 提交于 2019-12-06 13:57:25
问题 My goal is to place a object on a arcore plane in a room, then I save the plane and object's data in file. After app exit and start again, the object had been saved can be loaded from file, then it can be displayed at the same position just like last time. 回答1: To persist virtual objects, we probably can use VPS (visual positioning service, not released yet) to localize the device with an room. However there's no API to achieve this in the developer preview version of ARCore. 回答2: You can

Sceneform Collisions With Camera

风流意气都作罢 提交于 2019-12-06 09:31:06
I'm stretching my very limited ARCore knowledge. My question is similar (but different) to this question I want to work out if my device camera node intersects/overlaps with my other nodes, but I've not been having any luck so far I'm trying something like this (the camera is another node): scene.setOnUpdateListener(frameTime -> { Node x = scene.overlapTest(scene.getCamera()); if (x != null) { Log.i(TAG, "setUpArComponents: CAMERA HIT DETECTED at: " + x.getName()); logNodeStatus(x); } }); Firstly, does this make sense? I can detect all node collisions in my scene using: for (Node node : nodes)

Need to play Video in ARCORE

£可爱£侵袭症+ 提交于 2019-12-06 05:06:06
问题 As we know in ARCore, we can detect 3d object while click on the horizontal plane surfaces. Instead of 3d object, I need to show Video when User is going to click the PLane Surfaces . The Look and feel should be same like 3d object is displaying. Instead of 3d object, the video should be displayed in preview mode. In ARcore they are currently using one Relativelayout with Surfaceview. So for displaying Video, I am using the Surfaceview and attaching with mediaplayer. public void

Using Google Vision API with ARCore in Android

自作多情 提交于 2019-12-05 23:41:37
I'm looking to build an app that detects certain objects and then overlays something using ARCore. Is it possible to use Google's Vision API for real-time detection of objects? If not, is there another library that I could use that has object detection, landmark detection, and/or OCR? 来源: https://stackoverflow.com/questions/56031856/using-google-vision-api-with-arcore-in-android

Placing an object with a given compass bearing in ARCore

巧了我就是萌 提交于 2019-12-05 20:35:36
I'd like to place a north facing arrow into an ARCore world using sceneform. I am trying to understand the correct system of transformations to go from the phone's compass to sceneform's quaternions. This was the code I used to solve the problem: //Get the phone's pose in ARCore Pose deviceOrientedPose = frame.getCamera().getDisplayOrientedPose().compose( Pose.makeInterpolated( Pose.IDENTITY, Pose.makeRotation(0, 0, (float)Math.sqrt(0.5f), (float)Math.sqrt(0.5f)), dhelper.getRotation())); float[] devquat = deviceOrientedPose.getRotationQuaternion(); //Get the phone's heading in relation to the

Augmented Faces API – How facial landmarks generated?

大憨熊 提交于 2019-12-05 04:28:12
I'm an IT student, and would like to know (understand) more about the Augmented Faces API in ARCore. I just saw the ARCore V1.7 release , and the new Augmented Faces API . I get the enormous potential of this API. But I didn't see any questions or articles on this subject. So I'm questioning myself, and here are some assumptions / questions which come to my mind about this release. Assumption ARCore team are using (Like Instagram and Snapchat) machine learning, to generate landmarks all over the face. Probably HOG Face Detection .. Questions How does ARCore generate 468 points all over the

Can I save ar data for reuse?

佐手、 提交于 2019-12-04 19:31:50
My goal is to place a object on a arcore plane in a room, then I save the plane and object's data in file. After app exit and start again, the object had been saved can be loaded from file, then it can be displayed at the same position just like last time. To persist virtual objects, we probably can use VPS ( visual positioning service , not released yet) to localize the device with an room. However there's no API to achieve this in the developer preview version of ARCore. You can save anchor positions in ARCore using Augmented Images. All you have to do is place your objects wherever you want

Detecting if an tap event with ARCore hits an already added 3d object

廉价感情. 提交于 2019-12-04 07:22:18
I am following the ARCore sample ( https://github.com/google-ar/arcore-android-sdk ) and I am trying to remove object 3d (andy) already added. How can I detect if an tap event with ARCore hits an already added 3d object? Using a listener is quite common approach in such situation: private Node getModel() { Node node = new Node(); node.setRenderable(modelRenderable); Context cont = this; node.setOnTapListener((v, event) -> { Toast.makeText( cont, "Model was touched", Toast.LENGTH_LONG) // Toast Notification .show(); }); return node; } I had the same question these days, I tried 2 solutions, 1.

ARCore Compatible devices

微笑、不失礼 提交于 2019-12-03 12:16:29
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 Galaxy S8 (the non-plus version) But obviously, we would prefer to choose from a wider variety (e.g. S8+,