1

I'm using ARToolKit to develop an iOS augmented reality application based on the detection of 2-D markers in the environment. I'd like to be able to overlay video on these markers, but I'm not sure how to do this.

How would I use ARToolKit to overlay video on specific markers within a live camera feed?

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
Aruna
  • 701
  • 10
  • 26
  • As a note, ARToolKit is a library licensed under the GPL, so you will not be able to make non-GPL iPhone application using it unless you pay for a commercial license from ARToolworks. – Brad Larson Jul 19 '11 at 19:47
  • 1
    We have the commercial license. Anyone have links/tutorials how I can play a video file on AR Camera view? – Aruna Jul 20 '11 at 02:31

2 Answers2

1

Benjamin Loulier has a sample VRToolKit application where he uses ARToolKitPlus (derived from ARToolKit) to use the iPhone camera to track markers, then place 3-D objects over them. He created a wrapper around ARToolKit's marker recognition code that provides a callback with the model view matrix that encodes information about position and orientation of this marker in the scene.

You could do something similar, only instead of overlaying a CAEAGLLayer like he does, you could place your video within a standard CALayer and transform that layer to match the rotation and placement of the object within the scene. Learning from his code (which is under GPL, so you probably can't use it directly), you should be able to overlay your video on the scene without requiring a lot of code of your own.

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
  • 1
    Thanks you very much for the information. But in this VRToolKit it's hard to add our own markers.. Do you have any idea regarding markers? – Aruna Jul 23 '11 at 05:08
  • 1
    @Aruna - Contact the people at ARToolworks: http://www.artoolworks.com/ . I've seen them do some very impressive work with finding custom markers, and they'd probably be willing to help you out with this if you're licensing their framework. – Brad Larson Jul 23 '11 at 21:07
  • @ArunaLakmal Have you found a way to add our own marker in VRTolkit? – Nagendra Tripathi Nov 16 '13 at 15:20
  • @ArunaFromLK i am facing same problem,i cant add own marker files.did you complete it?help me,if u completed this – karthikeyan Aug 18 '14 at 07:14
  • I'm sorry. I didn't try this yet. There should be an easy way to add markers now. I was trying long ago. – Aruna Aug 18 '14 at 07:50
1

ARToolKit for iOS (from ARToolworks) includes an example of movie overlay since release 4 (released August 2011). The example is called ARAppMovie.

bleater
  • 5,098
  • 50
  • 48