augmented-reality

how can i get the heading of the device with CMDeviceMotion in iOS 5

孤街醉人 提交于 2019-11-30 04:06:52
I'm developing an AR app using the gyro. I have use an apple code example pARk. It use the rotation matrix to calculate the position of the coordinate and it do really well, but now I'm trying to implement a "radar" and I need to rotate this in function of the device heading. I'm using the CLLocationManager heading but it's not correct. The question is, how can I get the heading of the device using the CMAttitude to reflect exactly what I get in the screen?? I'm new with rotation matrix and that kind of things. This is part of the code used to calculate the AR coordinates. Update the

camera overlay change with bearing and elevation

时光毁灭记忆、已成空白 提交于 2019-11-30 03:35:44
问题 Folks, I am trying to get a utility as shown in the picture below. Basically the camera display window covers part of the device's screen and a list of points that are connected by a curve or straight line are presented over the camera view as an overlay. I understand this can be drawn using quartz but this is less than half of my problem. The real issue is that the overlay should present different points as the bearing and elevation changes. For example: if the bearing has to change +5

How to draw a Perspective-Correct Grid in 2D

99封情书 提交于 2019-11-30 02:27:55
I have an application that defines a real world rectangle on top of an image/photograph, of course in 2D it may not be a rectangle because you are looking at it from an angle. The problem is, say that the rectangle needs to have grid lines drawn on it, for example if it is 3x5 so I need to draw 2 lines from side 1 to side 3, and 4 lines from side 2 to side 4. As of right now I am breaking up each line into equidistant parts, to get the start and end point of all the grid lines. However the more of an angle the rectangle is on, the more "incorrect" these lines become, as horizontal lines

How to Detect Physical object in Android Augmented Reality?

回眸只為那壹抹淺笑 提交于 2019-11-29 22:14:47
I found many ways to detect different shapes. But hard luck when I am going for a physical object. From what I read we should have a black border around images to make a pattern file. If I follow this concept and generate a pattern then my application detects images on printout. But in the real world a physical object not necessarily has a black border square shape around it. Update Although I accept an answer, my question remains unsolved. As there is still no solution for detecting physical object. Any further research and links are welcome! The bad news is, you can't use AndAR to detect

How to develop Augmented Reality application for Android

醉酒当歌 提交于 2019-11-29 20:08:38
I would like to develop an augmented reality application on a HTC Nexus One mobile phone for android using Flash Professional CS5 and Adobe AIR 2.5. I found a couple of online sources showing how to develop AR application using webcam and Flash and i have found it very useful to follow and understand the basics of AR. For example: Augmented Reality using webcam and Flash http://www.adobe.com/devnet/flash/articles/augmented_reality.html Introduction to Augmented Reality http://www.gotoandlearn.com/play.php?id=105 I have also watched other videos regarding AIR for Android Applications from

How to begin with augmented reality? [closed]

孤街浪徒 提交于 2019-11-29 19:31:59
I'm currently an undergrad in computer science and I'll be entering my final year next year. Augmented reality is something I find to be a really interesting topic, but I have no idea where to start learning about it. Where do you start learning about this topic and what libraries are available? Being a quite popular buzz word, augmented reality can be build with some distinct algorithms which can be learnt separately. Usually it covers: planar object detection (can be a marker or previously trained object). SURF/SIFT/FAST descriptors, RANSAC for homography matrix calculation store trained

Scaling AR pictures based on the distance from the camera

杀马特。学长 韩版系。学妹 提交于 2019-11-29 18:11:28
I’m developing an augmented reality iPhone app. What it should basically do is display pictures assigned to geographical locations when you look at them by the camera. Each such picture may be understood as a billboard which has its geographical position and a heading (understood as an angle between its plane and the north direction axis). The goal is to make these billboards display more or less like they were physical objects. They should be larger if you are close to them and smaller when farther. They should as well appear in a proper perspective when you don’t stand directly in front of

ARKit –Drop a shadow of 3D object on the plane surface

别等时光非礼了梦想. 提交于 2019-11-29 16:42:59
This is the function that I use to display object on the plane surface. private func loadScene(path: String) -> SCNNode { let spotLight = SCNLight() spotLight.type = SCNLight.LightType.probe spotLight.spotInnerAngle = 30.0 spotLight.spotOuterAngle = 80.0 spotLight.castsShadow = true let result = SCNNode() result.light = spotLight result.position = SCNVector3(-10.0, 20.0, 10.5) result.addChildNode(result) let scene = SCNScene(named: path)! for node in scene.rootNode.childNodes { result.addChildNode(node) } return result } I want to display shadow on the plane surface like this image. When I set

finding orientation using getRotationMatrix() and getOrientation()

岁酱吖の 提交于 2019-11-29 14:37:32
问题 Im trying to get the direction of the vector pointing out of the camera, with respect to magnetic north. I'm under the impression that I need to use the values returned from getOrientation(), but I'm not sure what they represent. The values I get from getOrientation() don't change predictably when I change the orientation of the phone (rotating 90 degrees does not change values by 90 degrees). I need to know what the values returned by getOrientation() mean. What I have so far is written

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