Skip to content

Instantly share code, notes, and snippets.

@StrikerUnit
Last active September 13, 2017 21:16
Show Gist options
  • Select an option

  • Save StrikerUnit/41c7cef78f5659dcbde27e087c3c1852 to your computer and use it in GitHub Desktop.

Select an option

Save StrikerUnit/41c7cef78f5659dcbde27e087c3c1852 to your computer and use it in GitHub Desktop.
Integrating IR-based AR in Cordova
#Integrating IR-based AR in Cordova
## Build Pipeline (iOS)
### Requirements
1. npm install -g ios-deploy
### Commands
To deploy the app on a connected iOS device
```
quasar build
cd cordova
cordova prepare
cordova run ios --device
```
## Build Pipeline (AR.js)
To do if needed
## Run Example (Three.js)
navigate to project root then run http server
```
cd AR.js
http-server .
```
open browser http://localhost:8080/three.js/examples
## Research Log
### 14 September 2017
- ลอง run example ทั้งใน three.js example และ implement ar.js ใน p-tu app ในเว็บใช้ได้ปกติ แต่ใน ios app ไม่มีการตอบสนองใดๆ ต่อให้ import ภาพ marker เปล่าๆ ไป artoolkit (THREEx.ArToolkitxxx: ที่ใช้สำหรับ analyse ภาพเพื่อติดตามตำแหน่ง) ใน ios app ก็ไม่มีการเรนเดอร์เช่นกัน (สรุปสั้นๆ : ทำไม artoolkit ใช้ใน ios ไม่ได้ไม่รู้เหมือนกัน Help Please~!)
- ลอง require resource data สำหรับ ar ด้วย webpack โดยตรง ผลคือ: เว็บใช้ได้ เหมือนเดิม ios app นิ่งเหมือนเดิม
- สรุป เพื่อให้มีข้อมูลมากขึ้นน่าจะต้องลอง Debug ว่าสาเหตุที่ใช้ artoolkit ใน ios ไม่ได้เป็นเพราอะไร
### Resource
- https://github.com/google-ar/three.ar.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment