原文 Developing your First Application, Part 1 筆記 這篇文件主要的重點是在說明所謂的"ARToolKit Step Functions" ,也就是運行ARToolkit的過程中會經歷的6大步驟,這些步驟在原文件中已經被整理成一個清楚的表格。 ARToolKit Step Functions 1. Initialize the application init 2. Grab a video input frame arVideoGetImage (called in mainLoop ) 3. Detect the markers arDetectMarker (called in mainLoop ) 4. Calculate camera transformation arGetTransMat (called in mainLoop ) 5. Draw the virtual objects draw (called in mainLoop ) 6. Close the video capture down cleanup 不過這六大步驟中沒有包含全部被實際使用到的ARToolkit函式,所以為了更進一步地了解建構一個AR應用究竟需要用到哪些ARToolkit函式,所以我再把每個步驟內所使用到的function抓出來加到表格中。 ARToolKit Step Functions 1. Initialize the application 由init() 作初使化工作,init內包括的function : arVideoOpen(vconf)[說明: 開啟video設置檔] vconfarVideoInqSize(&xsize, &ysize)[說明: 不懂用途] arParamLoad(cparaname, 1, &wparam)[說明: dat檔和ARParam] arParamChangeSize( &wparam, xsize, ysize, &cparam )[說明: 需要因應攝影機,計算一下參數的變化] arInitCparam( &cparam ) [說明: 設定為讀進來的參...