arcore

ARCORE: remove a specific renderable by clicking on this renderable

纵饮孤独 提交于 2020-01-24 17:28:07
问题 I'm working on a project using Sceneform from ARCore. I develop it base on HelloSceneform example provided by ARCore. What I wanna do is adding a renderable object by a hit and then delete it when I click on the specific renderable on the screen. I've tried method AnchorNode.setOnTapListener as following, but it didn't work(no response): anchorNode.setOnTapListener(new Node.OnTapListener() { @Override public void onTap(HitTestResult hitTestResult, MotionEvent motionEvent) { if(anchorNode

Problem using stencil mask on 3d object in arcore

旧街凉风 提交于 2020-01-24 17:18:21
问题 I am using a stencil mask on a 3d object using the hello ar java demo however i am running into some unexpected behaviour. My stencil mask correctly occludes the plane renderer but the 3d object (andy) does not seem to react expectedly. Instead he seems to get flipped as shown in the picture. I am not sure how to approach fixing this issue. Attached is the code snippet doing the stencil masking Image of stencil correctly working on plane buffer but failing on 3d model GLES20.glClear ( GLES20

ARCore: How to play video in the photo frame when an image detected

时光毁灭记忆、已成空白 提交于 2020-01-16 09:41:59
问题 I want to play video in in photo frame when image is detected, anybody who have done this using ARCore? would be great help Thanks 回答1: I think you mean you want to add a video as a renderable in ARCore, in your case when an image is detected. There is actually (at the time of writing) an example included with Sceneform showing how to add a video as a renderable - it is available here: https://github.com/google-ar/sceneform-android-sdk/tree/master/samples/chromakeyvideo This particular

ARCore: How to play video in the photo frame when an image detected

自作多情 提交于 2020-01-16 09:41:51
问题 I want to play video in in photo frame when image is detected, anybody who have done this using ARCore? would be great help Thanks 回答1: I think you mean you want to add a video as a renderable in ARCore, in your case when an image is detected. There is actually (at the time of writing) an example included with Sceneform showing how to add a video as a renderable - it is available here: https://github.com/google-ar/sceneform-android-sdk/tree/master/samples/chromakeyvideo This particular

How can I use a binary image to mask augmented reality with OpenGL and ARcore?

蓝咒 提交于 2020-01-16 08:35:51
问题 I need to render only some part of virtual object like in this image where part of Android Robot is hidden For doing this I use "Stencil Testing" and i draw with OpenGL a simple rectangle. The problem is that now I need the part "hidden" to be not static but dynamic and I have to choose the part to hidden from a binary image like this one where the black part needs to "hide" (like in the example before) the virtual object and virtual plane. The "mask" will be changed for every frame. 来源:

ARCore – Object does not show in correct depth in Face Augmentation

ぐ巨炮叔叔 提交于 2020-01-15 06:27:26
问题 I tried to place an object on face. But does not understand how to set depth in object. Like when I add 3d object like spects frames on face. It does not show in correct depth. 回答1: When you use Augmented Faces feature, it's worth to note that if any face is detected, ARCore at first puts a Face Anchor (which must be located behind a nose or, more precise to say, inside a skull), and secondly ARCore puts a canonical mask – its pivot point resides on the same place as anchor does. Hence, if

Problematically rotate 3D model using Sceneform ecosystem

自古美人都是妖i 提交于 2020-01-14 07:41:31
问题 I'm using the Sceneform SDK in Android Project. I have sfb and the sfa objects in my project, and I want the initial rotation of my object to be rotated 90 degrees. How can I achieve it? I found the next code in these files and I changed the scale. But I didn't find a way for the rotation. model: { attributes: [ "Position", "TexCoord", "Orientation", ], collision: {}, file: "sampledata/models/redmixer.obj", name: "redmixer", scale: 0.010015, }, 回答1: I have used setLocalRotation to

Gray lines instead of camera feed in ARCore app builds

点点圈 提交于 2020-01-06 06:33:03
问题 When I build and run the "Hello Sceneform" and "Solar System" projects that I downloaded while following the Android Quickstart https://developers.google.com/ar/develop/java/quickstart, all I see on my phone (a Galaxy S9) are these shifting gray/black lines, with the moving ARCore hand/phone on top. I can download and run ARCore apps from the store without a hitch. The S9 is the only ARCore-compatible phone I can test with. I'm using Android Studio 3.2 preview, Windows 10, ARCore 1.2, and

ArCore: How to restrict PlaneFindingMode to only vertical surfaces?

北战南征 提交于 2020-01-06 05:24:06
问题 I am new to ARCORE and Kotlin and trying a simple android-kotlin app that need to detect walls. I know Google's made it possible with PlaneFindingMode.VERTICAL tag, but I am not sure how to use it. any help would be appreciated. 回答1: Possible duplicate here but I'll answer it anyway. This implementation is probably applicable to ARCore as well. But I tested this with SceneForm SDK Setup the AR Session first and use an extension function to modify plane finding. override fun onResume() { super

Black and white video stream background in ARCore app

元气小坏坏 提交于 2020-01-06 03:36:24
问题 I'm working on AR Android app and when I get close to a renderable I want to make the colors of the AR video stream black-and-white, except the renderables of course. I searched the docs but it seams I cannot access the video stream to do it as shown in Exploring AR interaction (Google I/O '18). Does anyone know how to accomplish this? 回答1: To get a video stream from ARCore requires drawing the texture into a OpenGL 3.1 Context what is being captured. You can find here how to do it. After you