Comments (8)
I added HitPose API too :
void DrawApp::touchDown(int x, int y, int id) {
ofHitPose *hitPose = arcore->getHitPose(x, y);
if (pose != NULL) {
ofMatrix4x4 pose = hitPose->pose;
float distance = hitPose->distance;
}
}
from ofxarcore.
I added PlaneDetection API :
void ofApp::draw() {
vector<ofARPlane*> planes = arcore->getPlanes();
// for each plane
for (int i = 0; i < planes.size(); i++) {
// translate to it's center
ofARPlane *plane= planes[i];
ofPushMatrix();
ofMultMatrix(plane->center);
// draw a red box on it's center
ofSetColor(255,0,0,100);
ofDrawBox(0,0.025,0, 0.2, 0.05, 0.1);
// draw the plane
ofSetColor(0,255,0,100);
plane->mesh.draw();
// draw the path (contours)
ofSetColor(0,0,255,100);
plane->path.draw();
ofPopMatrix();
}
from ofxarcore.
thank you @boehm-e !
from ofxarcore.
Nice one, yeah I've unfortunately not had any projects that gave me an opportunity to update the library. Would you be interesting creating a PR with these changes to this repo?
from ofxarcore.
Yes of course :)
from ofxarcore.
so good to see this revitalizing
from ofxarcore.
I created a new repo on my GitHub (because fork has no visibility).
Happy you enjoy it.
If you want more functionalities tell me, I think there should be more projects that use arcore...
Here is a video of to the plane API test : https://youtu.be/t8fvPyDhPHA
from ofxarcore.
@boehm-e A great feature would be the integration of the camera api since i need to synchronize the cam with devices like video projectors. The wrong shutter speed kills the tracking and target recognition. This seems to be possible by now: https://developers.google.com/ar/develop/java/camera-sharing
from ofxarcore.
Related Issues (16)
- ofxAndroidCheckPermission(CAMERA) and ofxAndroidRequestPermission(CAMERA) HOT 4
- crashing on launch HOT 1
- Update to ARCore 1.0 HOT 8
- This device does not support AR Galaxy S7
- question pull request HOT 1
- Failed to resolve: com.google.ar:core:1+ HOT 3
- Could not read Script HOT 1
- error: unreported exception UnavailableArcoreNotInstalledException HOT 4
- Where is latest openFrameworks (0.10.0)? HOT 2
- weird bug on close / reopen HOT 13
- Help with building examples HOT 8
- i can not build apk using this source code HOT 6
- which version openframework should i use HOT 1
- I cannot build the app using the code HOT 1
- update ndk / gradle in the "android-camera-permissions" OF branch?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxarcore.