Skip to content

Commit

Permalink
updating doc & remove unupdated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
boehm-e committed May 10, 2019
1 parent 0ce3fd2 commit 591fdd9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="https://play.google.com/store/apps/details?id=cc.openframeworks.ardrawing" target="_blank">
<a href="https://play.google.com/store/apps/details?id=cc.openframeworks.ardrawing">
<img src=".img/dl.png" width="200"/>
</a>

Expand Down Expand Up @@ -28,11 +28,15 @@ To add the addon, add `ofxARCore` to `addons.make` in your project, or through t
### Anchor

```h
# ofApp.h

ofxARCore arcore;
vector<ofMatrix4x4> anchors;
```

```cpp
# ofApp.cpp

void ofApp::setup() {
arcore.setup();
}
Expand Down Expand Up @@ -65,11 +69,15 @@ void RafalleApp::draw() {
### Point Cloud

```h
# ofApp.h

vector<float> point_cloud;
ofVbo vbo_pointcloud;
```

```cpp
# ofApp.cpp

void ofApp::setup() {
for(int i = 0; i < point_cloud.size(); i++) {
point_color.push_back(ofColor::red);
Expand Down Expand Up @@ -103,6 +111,8 @@ for (int i = 0; i < points.size(); i+=3) {

### Augmented Images
```cpp
# ofApp.cpp

void AugmentedImage::draw() {

vector<ofAugmentedImage*> augmented_images = arcore->getImageMatrices();
Expand Down Expand Up @@ -139,9 +149,13 @@ void AugmentedImage::draw() {
### Utils
```cpp
#### Camera FOV
# ofApp.cpp

arcore.getCameraFOV();
```
#### Screen DPI
```cpp
# ofApp.cpp

arcore.getDpi();
```

0 comments on commit 591fdd9

Please sign in to comment.