Upload
oriolpla7
View
170
Download
2
Embed Size (px)
Citation preview
Oriol Pla Álvarez
B1E
You have to download and install Processing 1.5.1.
Then you have to install some things:
Quicktime 7 (Apple video software).
WinVDIG1.0.5.exe, it’s Video digitalizer for
Quicktime.
GSVideo-1.00windows.zip, this is a library.
NyAR4psg, this is a library.
This is an introduction of the code. The markers are patt.hiro and patt.kanji.
These are where necessary libraries are imported.
This several lines declare some specialized variables.
The two lines following the colormode() function call
create the fonts that will be used for text.
Print a line in the console with the version of
multimaker.
Next, a new GSCapture object is created and
assigned to the variable that has already been
declared for that purpose.
Now that these values have been set, these variables
are used as arguments for the NyARMultiBoard
constructor to create the new NyARMultiBoard object
nya.
The next chunk of code is for drawing the little
labeled dots that indicate the corner positions.
To define this function, first the font, stroke color,
and the stroke weight.
Here we can see the coordinates of the line and the
text font.
Now begins the draw() function. As usual, this
contains the main repeating functionality of the
sketch.
The read() method is called for the cam object. This
tells cam to read the camera data into an image.
The next few lines draw down objects. Fill is the
color of the box. Translate is the movement. And we
can see that the box is of 40x40x40 pixels.
It is the same that the other box because it is the
green box, only change the color.