artoolkit

Render a 3D Object off the Center of the screen: ARTOOLKIT ANDROID

那年仲夏 提交于 2019-12-11 17:20:09
问题 Hi I am working on a AR android app. I am using ARToolkit6. In this app I want to view my 3D object( A Cube) on left half of the screen. With this eventually I want to display 3 cubes on the screen each on 1/3 of the screen area. I was able to scale the 3D object by tweaking ModelView Matrix. What I read so far, I think I need to tweak projection matrix to achieve my goal. I tried looking solutions online. But Couldn't get it to work. Can anyone direct me to right path? for (int trackableUID

Import FBX to ARToolKit

老子叫甜甜 提交于 2019-12-11 14:32:20
问题 I have problem about importing the FBX model. I have done it with Unity so I know the model exported well but I should do with the native code as well. I am getting error: 2015-06-02 15:20:21.721 ARAppNFTOSG[746:481003] Error: unsupported model file type (fbx). Ignoring. I am trying it on the AR example named ARAppNFTOSG. I changed the model.dat as: 1 OSG/Geralt/watcher.FBX 0.0 0.0 0.0 0.0 1.0 0.0 0.0 10.0 10.0 10.0 MARKER 1 I looked at the OSG forums and found that I should install FBX SDK

Apple Mach-O Linker (Id) Error on ar6unity iOS

两盒软妹~` 提交于 2019-12-11 09:24:47
问题 I can run the example just fine in the Mac using https://github.com/artoolkit/ar6unity-wiki/wiki/Setting-Up-Your-First-ARToolKit-for-Unity-Scene But when I follow this instruction, I got linker error: https://github.com/artoolkit/ar6unity-wiki/wiki/ARToolKit-for-Unity-on-iOS Here is the error: Showing Recent Issues Ld /Users/myusername/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvlzbaxfkypoavdlufphmggovkrp/Build/Products/Debug-iphoneos/ARToolkittest1.app/ARToolkittest1 normal arm64 cd

Following and replacing a marker in a real time video stream

﹥>﹥吖頭↗ 提交于 2019-12-11 07:56:35
问题 I want to create a program that can detect a marker in a real-time video stream an replace the marker with part of a picture i took before. I am using ARtoolKit to recognize the marker. First i will grab the video frame and save it as a jpg file then i will put the marker and let the video recognize the marker. After the program recognize the marker but pressing a keyboard key i will call a function hode marker() who receive the jpg and the coordenates of the marker. Maybe by using

Find distance between ArMarker and camera in ArToolkit's android java SDK

扶醉桌前 提交于 2019-12-11 06:28:36
问题 how to calculate distance betweeen smartphone camera and artoolkit marker. i tried to get it from transformation matrix of marker but the vector value are all zero. float [] pMatrix = ARToolKit.getInstance().getProjectionMatrix(); float x = pMatrix[3]; float y = pMatrix[7]; float z = pMatrix[11]; x, y , z are all zero. 回答1: I think you are looking at the wrong positions in the matrix. The camera x,y,z is inside the last column of the transformation matrix: queryMarkerTransformation(int

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,

iOS ARToolKit Xcode Implementation

怎甘沉沦 提交于 2019-12-10 19:19:32
问题 I'm trying to implement ARToolKit into an Objective-c iOS app. I have downloaded the ARToolKit SDK and I see the following contents. The ARToolKit5 directory is for Mac OSX, so I have left this one closed. ARToolKit5iOS is the directory that I have tried to import into my Xcode project. What I have tried so far... Inside share > packaging, I ran the following command and this seemed to run correctly without any errors. bash ARToolKit5iOS-bin.sh Then I tried to import the lib and include

How to get MarkerId in Artoolkitplus in android

梦想的初衷 提交于 2019-12-07 11:19:44
问题 I am using ARToolkitPlusBenchmark to scan AR Tag Marker . I can easily detect all 4096 BCH marker .But my problem is i can't getting idea how to detect each BCH marker id ? I have found code from here ARToolkitPlusBenchmark I have tried to detect marker in Markerinfo.java class DetectMarkerWorker extends Thread { private byte[] curFrame; public DetectMarkerWorker() { setPriority(MAX_PRIORITY); start(); } @Override public synchronized void run() { try { wait(); } catch (InterruptedException e)

Adding ARToolkit Marker tracking into Tango

核能气质少年 提交于 2019-12-07 08:20:31
I have been trying to integrate ARToolkit Marker Object tracking into a Tango Application . So far I have created a build so that a tango app can access and use the ARToolkit Native Library or the ARToolkit Unity wrappers. However, they both seem to require exclusive access to the camera in their default configurations. How could you feed the same Android video feed to both libraries? Could you create a dummy camera device which doubles out the feed? Could you take the tango feed as normal, and then resend it into ARToolkit with a special VideoConf [edit] ARToolkit uses the older Camera1 API,

How to get MarkerId in Artoolkitplus in android

和自甴很熟 提交于 2019-12-05 17:34:53
I am using ARToolkitPlusBenchmark to scan AR Tag Marker . I can easily detect all 4096 BCH marker .But my problem is i can't getting idea how to detect each BCH marker id ? I have found code from here ARToolkitPlusBenchmark I have tried to detect marker in Markerinfo.java class DetectMarkerWorker extends Thread { private byte[] curFrame; public DetectMarkerWorker() { setPriority(MAX_PRIORITY); start(); } @Override public synchronized void run() { try { wait(); } catch (InterruptedException e) { } while (true) { if(!CurrentConfig.ONLY_CAMERA_PREVIEW){ long tick = System.currentTimeMillis(); if