Demo
Sample code demo |
目標
- 修改為顯示多個立方體
JavaSimpleLite.java
將NyARSingleDetectMarker改為使用NyARDetectMarker類別
將_is_marker_exist變數改為int型態
// NyARToolkit関係
// private NyARSingleDetectMarker _nya;
private NyARDetectMarker _nya;
JavaSimpleLite建構子裡,生成NyARDetectMarker物件// NyARToolkitの準備
// this._nya = new NyARSingleDetectMarker(this._ar_param, i_ar_code, 80.0,this._cap_image.getBufferType());
NyARCode[] mutiARCode = new NyARCode[]{i_ar_code}; double[] mutiWidth = new double[]{80.0}; this._nya = new NyARDetectMarker(this._ar_param, mutiARCode, mutiWidth, mutiARCode.length, this._cap_image.getBufferType());
// private boolean _is_marker_exist=false;
private int _is_marker_exist = 0;
// if (this._is_marker_exist){
for(int iMarker = 0;iMarker < this._is_marker_exist;iMarker++){
沒有留言:
張貼留言