チェンジセット 979: as3/FLARToolKit
- コミット日時:
- 2008/08/17 14:50:48 (3 ヶ月前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/SimpleFLARToolKitView.as
r977 r979 136 136 this._capture.bitmapData.draw(this._video); 137 137 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 } 138 143 this._detector.getTranslationMatrix(this._resultMat); 139 144 var a:Array = this._resultMat.getArray(); … … 142 147 mtx.n21 = -a[1][1]; mtx.n22 = -a[1][0]; mtx.n23 = -a[1][2]; mtx.n24 = -a[1][3]; 143 148 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; 144 150 this._renderer.render(); 151 } else { 152 this._viewport.visible = false; 145 153 } 146 154 } as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/URLSample.mxml
r839 r979 54 54 var mqo:Metasequoia = new Metasequoia(); 55 55 mqo.load(url, 0.3); 56 mqo.rotationX = -90;56 mqo.rotationX = 90; 57 57 mqo.rotationZ = -90; 58 58 mqo.z += 40;
