September 2010
S M T W T F S
« Apr    
 1234
567891011
12131415161718
19202122232425
2627282930  

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.

Another demo with the Augmented Reality Library

This one plays back four rectangular planes of digital videos. There are two separate videos loaded and played back.

Sample Code for the New Augmented Reality Library

Here is the source code for the last post using the new augmented reality library. In this case, I use the JMyron as the capture mechanism. It displays a short quicktime video “mv02.mov” on top of the marker.

import JMyron.*;
import processing.video.*;
import processing.opengl.*;
import pARToolKit.SimpleARToolKit;

SimpleARToolKit ar;
int capWidth, capHeight;
JMyron m;
Movie mov;
PImage img;

void setup() {
size(400, 300, OPENGL);
[...]

New Augmented Reality Library for Processing

I modify the previous ARToolKit library for Processing. It has a better programming interface and tracking performance. You can choose either to use the Capture object or the JMyron object for the live video. And the canvas size can now be different from the capture size. Have a look of the demonstration video. I’ll send [...]

Face Detection Library updated

The face detection library is updated according to the new Processing library requirements. Enjoy coding in the new year.

Arduino and Parallax RFID reader

Here is an updated version of a former experiment using an Arduino board and the Parallax 125KHz RFID reader. The tag information is sent through serial port to a Processing sketch. Each RFID tag is a 10 bytes data with x0A and x0D as start and end of message.

Arduino program

int ENABLE = 2;
int RX = [...]

Doing PING in Processing

It is a very simple code to try reaching an Internet location and returns if it can be done within a time limit specified in the timeOut variable in ms. It uses the isReachable() method for the InetAddress object instance.

InetAddress ip;
String ipAddr;
int timeOut;
boolean ok;
PFont font;

void setup() {
size(400,400);
smooth();
ipAddr = “www.bryanchung.net”;
[...]

Consolidate all Processing libraries

I started using the Google Code to consolidate all my Processing libraries into a single location at http://code.google.com/u/chungbwc/. No documentation has been done yet.

Another Processing Book – Algorithms for Visual Design

I found this book on Processing from Daniel Shiffman’s list in Amazon. The author Kostas Terzidis writes books on architecture. I look forward to more details about this Processing book.

Image from http://www.amazon.com

SMS in Processing

Using the SMSLib, I manage to use a mobile phone as a gateway to receive SMS message from others with Processing. I have tried both Nokia 6288 and Sony Ericsson T610. The Nokia one fails and Sony Ericsson works. I use Bluetooth to connect the mobile phone to my computer as a modem. By changing [...]