チェンジセット 979: as3/FLARToolKit

差分発生行の前後
無視リスト:
コミット日時:
2008/08/17 14:50:48 (3 ヶ月前)
コミッタ:
tarotarorg
ログメッセージ:

最新版FLARToolKitにあわせてモデルの向きなどを編集
マーカに対する判定を強化し、誤検知を減らした

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/SimpleFLARToolKitView.as

    r977 r979  
    136136                        this._capture.bitmapData.draw(this._video); 
    137137                        if (this._detector.detectMarkerLite(this._raster, 80)) { 
     138                                if (this._detector.getConfidence() < .5) { 
     139                                        trace("confidence:", this._detector.getConfidence()); 
     140                                        this._viewport.visible = false; 
     141                                        return; 
     142                                } 
    138143                                this._detector.getTranslationMatrix(this._resultMat); 
    139144                                var a:Array = this._resultMat.getArray(); 
     
    142147                                mtx.n21 = -a[1][1];     mtx.n22 = -a[1][0];     mtx.n23 = -a[1][2];     mtx.n24 = -a[1][3]; 
    143148                                mtx.n31 =  a[2][1];     mtx.n32 =  a[2][0];     mtx.n33 =  a[2][2];     mtx.n34 =  a[2][3]; 
     149                                this._viewport.visible = true; 
    144150                                this._renderer.render(); 
     151                        } else { 
     152                                this._viewport.visible = false; 
    145153                        } 
    146154                } 
  • as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/URLSample.mxml

    r839 r979  
    5454                                var mqo:Metasequoia = new Metasequoia(); 
    5555                                mqo.load(url, 0.3); 
    56                                 mqo.rotationX = -90; 
     56                                mqo.rotationX = 90; 
    5757                                mqo.rotationZ = -90; 
    5858                                mqo.z += 40;