arcore

How I can set repeated texture on an object in Android ArCore Sceneform API?

一笑奈何 提交于 2019-12-01 11:01:46
I have successfully made a line between two vectors in the AR Scene. My code: private void addLineBetweenPoints(Scene scene, Vector3 from, Vector3 to) { // prepare an anchor position Quaternion camQ = scene.getCamera().getWorldRotation(); float[] f1 = new float[]{to.x, to.y, to.z}; float[] f2 = new float[]{camQ.x, camQ.y, camQ.z, camQ.w}; Pose anchorPose = new Pose(f1, f2); // make an ARCore Anchor Anchor anchor = mCallback.getSession().createAnchor(anchorPose); // Node that is automatically positioned in world space based on the ARCore Anchor. AnchorNode anchorNode = new AnchorNode(anchor);

ARCore – Session, Frame, Camera and Pose

佐手、 提交于 2019-12-01 09:21:26
I'm studying the ARCore References , Develop , make the course from Coursera , and read, understood and learn from the Samples . But I still missing some definition with some real use examples. What is a session? Every time that I need a ARCore use I need a session? Session always has a camera connect so I can see and draw/renderer my 3D models in the screen? Can I do this without a Session? Camera has a getPose and Frame has a GetPose, what are the diferences between they? I thought about make this questions split but somehow I know that they are all connected. Sessions, CameraAr, Frame and

How I can set repeated texture on an object in Android ArCore Sceneform API?

半腔热情 提交于 2019-12-01 08:00:19
问题 I have successfully made a line between two vectors in the AR Scene. My code: private void addLineBetweenPoints(Scene scene, Vector3 from, Vector3 to) { // prepare an anchor position Quaternion camQ = scene.getCamera().getWorldRotation(); float[] f1 = new float[]{to.x, to.y, to.z}; float[] f2 = new float[]{camQ.x, camQ.y, camQ.z, camQ.w}; Pose anchorPose = new Pose(f1, f2); // make an ARCore Anchor Anchor anchor = mCallback.getSession().createAnchor(anchorPose); // Node that is automatically

ARCore – Session, Frame, Camera and Pose

*爱你&永不变心* 提交于 2019-12-01 05:01:21
问题 I'm studying the ARCore References, Develop, make the course from Coursera, and read, understood and learn from the Samples. But I still missing some definition with some real use examples. What is a session? Every time that I need a ARCore use I need a session? Session always has a camera connect so I can see and draw/renderer my 3D models in the screen? Can I do this without a Session? Camera has a getPose and Frame has a GetPose, what are the diferences between they? I thought about make

Disable/Toggle visualization of tracked planes in ARCore unity

狂风中的少年 提交于 2019-12-01 00:01:39
I have been looking on the code for ARCore Unity for a while and I want to do one simple task that is, to have a toggle button so user can place an object in the scene while knowing where to place it while the tracked planes are visible and once the user places the object, he is given the option of just visually disabling the tracked planes so it looks more realistic. I was able to do this in Android Studio by doing something like this in the main HelloArActivity.java: if (planeToggle) { mPlaneRenderer.drawPlanes(mSession.getAllPlanes(), frame.getPose(), projmtx); } this was really simple. I

Disable/Toggle visualization of tracked planes in ARCore unity

≡放荡痞女 提交于 2019-11-30 18:19:11
问题 I have been looking on the code for ARCore Unity for a while and I want to do one simple task that is, to have a toggle button so user can place an object in the scene while knowing where to place it while the tracked planes are visible and once the user places the object, he is given the option of just visually disabling the tracked planes so it looks more realistic. I was able to do this in Android Studio by doing something like this in the main HelloArActivity.java: if (planeToggle) {

Google ARCore Domain Model by Example

拈花ヽ惹草 提交于 2019-11-30 17:34:02
问题 I'm trying to read and make sense of Google ARCore's domain model, particularly the Android SDK packages. Currently this SDK is in " preview " mode and so there are no tutorials, blogs, articles, etc. available on understanding how to use this API. Even Google itself suggests just reading the source code, source code comments and Javadocs to understand how to use the API. Problem is: if you're not already a computer vision expert, the domain model will feel a little alien & unfamiliar to you.

how to check ray intersection with object in ARCore

℡╲_俬逩灬. 提交于 2019-11-29 15:38:26
Is there a way to check if I touched the object on the screen ? As I understand the HitResult class allows me to check if I touched the recognized and maped surface. But I want to check this I touched the object that is set on that surface. ARCore doesn't really have a concept of an object, so we can't directly provide that. I suggest looking at ray-sphere tests for a starting point. However, I can help with getting the ray itself (to be added to HelloArActivity ): /** * Returns a world coordinate frame ray for a screen point. The ray is * defined using a 6-element float array containing the

Can't Install ARCore on emulator for Android Studio

ⅰ亾dé卋堺 提交于 2019-11-29 10:45:58
I don't know if I'm allowed to ask this question but I really can't figure out how to use ARCore on Android Emulated Device. According to the official guide I'm supposed to use API 8.1 on pixel/pixel 2 device in order to run any app which uses ARCore. Sadly those emulator don't come with the support for Play Store, and without Play Store I can't Instal ARCore on the device. The device images that come with built in Play Store can't run ARCore instead. I'm really confused about how am I supposed to test anything for ARCore in this way. I need it to develop an app for a University program and I

ARCore collider on generated planes

▼魔方 西西 提交于 2019-11-29 07:35:37
I'm just playing around with AR core and want to have an object flying around the room and able to land. I'm unsure about how to add colliders to the planes that ARcore is generating based on the visuals on the room. Would this involve instantiating box colliders on the planes somehow? The ARCore SDK's trackable planes are essentially identified flat surfaces such as the ground or a tabletop. You can ask the SDK for a list of points for each trackable plane's boundary polygon (retrieved in clockwise order) and create a mesh from those points via triangulation. With the mesh ready, create a