Posted by Amnon on December 22, 2011 · 13 Comments
Just a quick heads up. I wrote an augmented reality tutorial for CreativeApplications.net.
You can check out the full blogpost including three code example HERE.
Filed under Experiments · Tagged with ar, augmented reality, code example, example, processing.org, source code
Hey! I saw this on Creative Applications, I was wondering if this would work with my own 3D model that I would Import – maybe with OBJ Loader….Or if I wanted to make this with an Animated 3D OBJ sequence??
Yes, it would. As pointed out with the last example, the only thing that is changed is the viewpoint. Anything 3D that you can get into Processing, is still displayed. The only difference being that it’s aligned to the real-world marker.
Have you tried to import this to Android from Processing? I was trying to import the code, but I realized it didnt work because you have to import the libraries and also try to locate the folders in a moblie device. Any suggestions?
I have never tried any code in Processing for Android, because I don’t have an Android phone. I’m hoping to get one at some point, so I can run some code on it and experiment with Android apps. In that sense I can’t comment on the (im)possibility. My first thought would be to circumvent path-problems as much as possible by placing all the files in the code and data subdirectories of the sketch.
The reason I asked is because I made a small device that uses your augmented code. You can see here:
and here: http://mikeprogress.files.wordpress.com/2012/03/anne_sean_1.png
All right, cool. Well the ar library should work cause it’s image based. I suspect on an android there are other ways to get the image from your phone’s camera, so the GSVideo library wouldn’t be needed. Other than that, all I can say is good luck! 😀
hi, i’m a young french artist. I’m impressive by your works and possibilities of Processing. I found your app is very interesting. I would like to use this for to do a project… it’s possible to change the 3D model by my model??___ How i can do this? Sorry, i’m a beginner with Processing (it’s possible to better explain me the tutorial, because i don’t arrive to do run correctly your code; i think i’ve some errors). May be if you are interested i can say more. Thanx.
Hi Vivien. Is is possible to use a 3D model or any other 3D code with augmented reality, but this is beyond the scope of the tutorial. I cannot explain the tutorial any better than I did on my guestpost. It has a full walkthrough, three code examples that are fully commented and many replies below the article. If you are a beginner I suggest first learning the basics of Processing before you move on to intermediate or advanced projects. Also check out the processing forum for information and asking questions.
thanx. i work hard for understanding. I’ll get there. 😀 ++
Hi! Great tutorial! I’m trying to do it now. And so far, step 2 (using the webcam) has worked. But it’s REALLY slow. Is this a problem with rendering? I copy pasted the code and all I changed were the paths as I’m on a Mac. How can make it faster?
It may just be the limitations of the webcam. I have the same problem with my builtin laptop camera. Even though it’s a pretty good laptop, those webcam aren’t comparable in quality to the canon eos I used to record the footage here. You can test by just running a basic sketch that displays the camera image, nothing more. If you still feel, it’s extraordinarily slow, you could seek help on the processing forum. There are more people there that may help (for example people who have the same webcam, have had the same problems or the author of the video library).
Hi, I found your tutorial really helpful w/ a project I’m currently working on. I’m trying to attach mp3 files to individual AR tags (a total of 8) so that when they appear on screen they play the mp3 file. My processing knowledge is pretty basic, any help would be greatly appreciated.
This shouldn’t be to hard. You can use the Minim library to play the sounds. You’ll probably need some boolean/timers to prevent the sounds from continuously playing or playing at the same time etc. but that’s incremental development. This post was written two years ago, so I haven’t been doing AR for a while. My advice is to just start with some separate sketches, for example one about triggering different audio files and integrate them later. You can use the Processing forum for help. Be mindful that there are different sections.
Amnon P5 – Experiments with Processing by Amnon Owed · CODE · DESIGN · CREATE
Blog at WordPress.com.