July 2010
S M T W T F S
« Apr    
 123
45678910
11121314151617
18192021222324
25262728293031

New SimpleARToolKit Library Available Now

Finally, I put up the documentation and files for the new version of SimpleARToolKit library for Processing. The official page is at http://www.bryanchung.net/?page_id=415.

Enjoy and happy coding.

16 comments to New SimpleARToolKit Library Available Now

  • kensaky

    Hello Mr Chung,
    I am a Spanish student. I would like you send me the library pArToolkit modify for use a JMyron video capture mechanism, because the simpleArtoolkit code, use a Capture object for processing and this method do not run in my PC. My email is javitra@yahoo.es
    I am sorry for my english.
    Thanks.

  • kensaky

    Hello, I am download your example code, and when I run the example 1 show a black windows, and the example 2 and 3 show the webcam image but when I show the patter show notthing, the function “ar.findMatch(img,100)” return always “false”.
    Thanks.

  • It may be due to the change in the new Processing version. You can remove the noFill() in the setup() function in order for demo01 to show the webcam image. I am going to update the example 1 to cater for this. For the rest, you can try to change the number 100 in ar.findMatch(img,100). Usually, increasing the number can have a better recognition. Thanks.

    Bryan

  • Matthew Ko

    Hi Bryan,
    I try to run it in Processing 1.0.1.
    It seems ok at the beginning, however few second later, its stop and show OutOfMemoryError.
    I increase memory setting as much as i can but problem still happen.
    No matter what, thank you for your library !!!

  • Hi Matthew,
    Can you show me your error log at the Processing installation folder?

    Bryan

  • Matthew Ko

    I only get warming but no error log in folder.

    java.lang.OutOfMemoryError
    An OutOfMemoryError means that your code is either using up too much memory
    because of a bug (e.g. creating an array that’s too large, or unintentionally
    loading thousands of images), or that your sketch may need more memory to run.
    If your sketch uses a lot of memory (for instance if it loads a lot of data files)
    you can increase the memory available to your sketch using the Preferences window.
    Exception in thread “Animation Thread” java.lang.OutOfMemoryError
    at sun.misc.Unsafe.allocateMemory(Native Method)
    at java.nio.DirectByteBuffer.(Unknown Source)
    at java.nio.ByteBuffer.allocateDirect(Unknown Source)
    at com.sun.opengl.util.BufferUtil.newByteBuffer(BufferUtil.java:65)
    at com.sun.opengl.util.BufferUtil.copyIntBufferAsByteBuffer(BufferUtil.java:229)
    at javax.media.opengl.glu.GLU.copyToByteBuffer(GLU.java:1450)
    at javax.media.opengl.glu.GLU.gluBuild2DMipmapsJava(GLU.java:1524)
    at javax.media.opengl.glu.GLU.gluBuild2DMipmaps(GLU.java:1581)
    at processing.opengl.PGraphicsOpenGL$ImageCache.rebind(PGraphicsOpenGL.java:959)
    at processing.opengl.PGraphicsOpenGL.bindTexture(PGraphicsOpenGL.java:767)
    at processing.opengl.PGraphicsOpenGL.renderTriangles(PGraphicsOpenGL.java:689)
    at processing.core.PGraphics3D.endShape(PGraphics3D.java:626)
    at processing.core.PGraphics.endShape(PGraphics.java:1133)
    at processing.core.PGraphics.imageImpl(PGraphics.java:2261)
    at processing.core.PGraphics.image(PGraphics.java:2189)
    at processing.core.PGraphics.image(PGraphics.java:2165)
    at processing.core.PApplet.image(PApplet.java:7106)
    at demo01.draw(demo01.java:53)
    at processing.core.PApplet.handleDraw(PApplet.java:1406)
    at processing.core.PApplet.run(PApplet.java:1311)
    at java.lang.Thread.run(Unknown Source)

  • kensaky

    Hi bryan,
    thanks you for your library, it is very interesting for my work of my university. When I run the example 3 and press my mouse, it start to record in a mov file, but when I play this file with QuickTime Player I have a error and I can´t play it.

  • Hi Kensaky,
    Yes, the MovieMaker seems to have problem in the latest Processing version. You may have to report it to the Processing team or the author Daniel Shiffman. Thanks for your interest.

  • Hi Matthew,
    Are you running my demo examples? I do not run into this problem in the testing even with the default setting in the memory preference. Can you tell me the configuration of the machine you are using:

    Windows XP SP? or Vista?
    JVM version?
    Processing version?
    Processing sketch if you are using yours

    I would like to see if I can recreate your problem. Thanks.

  • kensaky

    Hi Bryan,
    I need your help, I need run this example in Eclipse as applet for transformate in a desktop aplication, but I don´t know.
    In processing,export and it generate a applet.java, and this applet in eclipse generate many exception and not run!!! :(
    It is possible that you send me this example for run in Eclipse as applet or desktop application? (I would like in this last, desktop application whit JPanel,…)
    My email is javitra@yahoo.es
    Sorry for my english.
    Thanks you very much.

    Kensaky.

  • kensaky

    Hi bryan, please help me!
    Thanks.

  • sundaylau

    bryan, your site is getting cooler!!!

  • martincg

    hello Bryan, i tried simpleARTtoolkit and have same problem like Mathew with memory – processing 1.0.3 – 1500 MB in preferences + 64bit Windows XP, 8GB ram + 32bit java dev for processing /64bit java is not working for me now with processing/

    - examples /demo1,2,3/ starts, i can see the video screen but looks like if opengl layer want start, it hangs with memory problem

    are you working with 64 bit JAVA for processing?

    thanks for any help

  • hello again – i tryied library with vista 64 and everything works good /also with 32 bit XP/ + processing 1.0.3

    - maybe there is some kind of catch with 64bit XP

  • daehong

    Hello, Bryan.

    First of all, thank you very much for your great work.

    Can your library recognize multiple patterns?
    I tried to modify your code to detect multiple ARTool kit patters, but I could not make it.

    Thank you.

You must be logged in to post a comment.