Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Tutorial 2
AR menggunakan dua library iaitu GLUT untuk rendering proses dan ARToolkit untuk projection virtual
object ke real world, computer vision teknik yang mengesan penanda untuk aligning object to be existed
in real world. So kena ada ARToolkit dan GLUT, the OpenGL Utility Toolkit.
Compile dan debug dengan menggunakan - Visual Studio 2003, Visual Studio 6.0, Visual Studio 2005
A webcam (install any drivers that is necessary to get the webcam running)
The VRML renderering library and example (libARvrml & simpleVRML)
AR - marker vS markerless
marker - important aspect of the marker is the black border
Tutorial 2
Example Marker
Kalau nak Custom Markers
In order to capture the marker, we must run an executable that is included in the software library. Make sure your
camera is plugged in! The file, mk_patt.exe, can be located in the ARToolKit\bin directory.
Tutorial 2
Tutorial 2
Tutorial 2
Tutorial 2
To test whether your pattern works, substitute one of the Data/patt files and replace it with your own. In the case
of our example, we will replace it with Data/patt.aku
Obj
WRL // untuk VRML
Convert your model kepada WRL atau OBJ jika model itu format .3ds, .stl, .max, .dxf and so on
Tutorial 2
Using your favourite 3D modelling program, export the model or animation into a .WRL file. If you are using any
textures for your model, have the path of the texture set to ./textures/nameOfTexture.gif. One thing to note is
that ARToolKit only supports .GIF formats. Make sure your texture file is in gif format before you export the model!
Once you have the 3D model exported, copy it into the ARToolKit\bin\Wrl directory. In our example, we have
copied a fire extinguisher model.
Once you have the file in this directory, you will need to create a .dat file that is required from the toolkit. In the
.dat file you will specify the model file and the translation, rotation, and scale parameters. To create the .dat file,
right click any empty space in the ARToolKit\bin\Wrl directory. Select New Text Document when the menu
appears. Rename this document file to nameOfModel.dat. In our example, we have named it extinguisher.dat.
Rename dengan ape saja nama untuk model kamu kemudian Enter. Contoh pasu.dat seperti di bawah.
Tutorial 2
Save this file and run the SimpleVRML executable. Your model should now display on your
custom marker!
VRML Demo