augmented-reality

How to make Unity3D as an activity in Android Studio?

本秂侑毒 提交于 2019-12-11 06:47:59
问题 I recently developed an AR program using Unity3D and built it as a mobile application program. Right now, I am planning to import the Unity program into Android Studio so that I can make it as an activity class. For example, I create a button called 'Start' and when the user taps the 'Start' button, the app opens the Unity program where the camera is activated. Is this possible? If so, what should I do to make this possible? Thanks in advance. 回答1: There is no direct way to do this, when you

ARKit – Render objects further away than 1000 meters

℡╲_俬逩灬. 提交于 2019-12-11 04:08:19
问题 I'm trying to render objects further away than 1000. let box = SCNBox(width: 500, height: 500, length: 500, chamferRadius: 0) let boxNode = SCNNode(geometry: box) boxNode.position = SCNVector3(0, 0, -2000) sceneView.scene.rootNode.addChildNode(boxNode) From this this answer I know that ARKit directly sets SCNCamera's projectionTransform. So is there anyway I change this projectionTransform in order to render objects further away? 回答1: In ARKit_2.0 / SceneKit_2018 , if a distance from ARCamera

Find the points beyond a line using Python

情到浓时终转凉″ 提交于 2019-12-11 03:34:17
问题 With reference to the question asked here Drawing a line given the angle and a point on the line, I have written a python function "find_normal" which returns the slope and y-intercept of the normal vector to a given point at given angle. Now I have a list of points and I want to verify if these points are beyond that normal vector in the direction of given angle of not. e.g. Angle = 180: True if point is to the left of the line, false otherwise Angle = 0: True if point is to the right of the

taking screenshot camera view+layout view android augmented reality

你说的曾经没有我的故事 提交于 2019-12-11 02:39:26
问题 I tried taking screencapture from frame buffer and it works well for my layout views I used the following code from here: String mPath = Environment.getExternalStorageDirectory().toString() + "/" + ACCUWX.IMAGE_APPEND; // create bitmap screen capture Bitmap bitmap; View v1 = mCurrentUrlMask.getRootView(); v1.setDrawingCacheEnabled(true); bitmap = Bitmap.createBitmap(v1.getDrawingCache()); v1.setDrawingCacheEnabled(false); OutputStream fout = null; imageFile = new File(mPath); try { fout = new

How to get phone heading for augmented reality?

三世轮回 提交于 2019-12-11 02:22:42
问题 Possible duplicate : Android getOrientation Azimuth gets polluted when phone is tilted I am new to android development and I try to get the user facing. After searching on the web I am pretty sure I need to use remapCoordinateSystem , android documentation say it is good to use for an augmented reality app. I try to use some existing code to be sure that is a good way. (Finally I want to create an augmented reality application) The following code should return the user facing in degree : Code

How to pass data from Phonegap view to architect view from wikitude

自作多情 提交于 2019-12-11 01:54:58
问题 I am making a augmented reality / voice recognition app using Phonegap, wikitude and voicerecognizer (phonegap plugin). Almost everything works: The app launches the native speech api, saves the result in an input field, and then starts de wikitude ARchitect view. I have to put the value from the input field trough to the ARchitect view (this had to infect the models that show). The Problem is: I've no idea how to do this. I tried a lot of things but nothing worked. I was realy close to the

Drawing text in Android Augmented Reality apps using Vuforia SDK

社会主义新天地 提交于 2019-12-11 01:45:43
问题 I'm trying to get my Android AR app working using the Vuforia SDK. What I would like to do is to draw some text on screen, instead of usual 3D models. But I cannot find, from the sample apps, where the app actually load such models, and how I could change it. Anyone can help? 回答1: in renderframe in ImageTarget.cpp of Imagetargets vuforia sample,you can comment all gl rendering code to prevent any model rendering then you can draw text on gl surface or simple textview.i have not tried for text

Where can I find an open source augmented reality framework for Android? [closed]

不想你离开。 提交于 2019-12-11 01:27:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Does anyone know if there is any existing open source framework for augmented reality which could be used for Android applications? 回答1: Try AndAR with a GNU license 回答2: This is another option: https://github.com/mixare/mixare "mixare (mix Augmented Reality Engine) is a free open source augmented reality

Virtual button in ARToolkit

安稳与你 提交于 2019-12-11 01:18:59
问题 I want to develop an Android application to detect some target and show play icon over it. When user click the play icon, augmented reality played on another activity. I use ARToolkit as a SDK. The Interaction example is the best match my requirements. But the problem is i cant make the play icon clickable and in that example, the whole view is clickable. In brief, how can i get marker coordinates on Android view? 回答1: The play button you want to place is a 3D object inside a GLSurfaceView,

QAugmentedReality on BB10

本小妞迷上赌 提交于 2019-12-11 01:09:48
问题 I want to create augmented reality application on BB10. But there is no 3rd party library is available for BB10. So i am thinking to implement Augmented Reality using QAugmentedReality of Nokia because blackberry said that Qt application will run on BB10. Is there any sample AR application in QT so i can run that on BB10 and check if it work or not then i start developing my application. 回答1: In the official tutorial for QAugmentedReality there is a link to a sample application towards the