hl3hl3 / arcoremeasure Goto Github PK
View Code? Open in Web Editor NEWsource code of ARCore Measure app.
source code of ARCore Measure app.
I seem to find no way to detect vertical planes. I would think its in the Renderer classes but can't seem to find that there.
Hi ,
Whenever I open the app the camera shows black screen , device in which I am checking is MOTO 5s
Hi there,
As per subject, i hit that error when trying to build the codes in Android Studio. What should i do?
Thanks.
Hey, thanks for making this open source. I'm trying to build an AR application as well, and learning from this is indispensable. It would have been a boon if commenting was added as well. Would you be able to take time out for it?
For example, I'm trying to make of this tiny method :
private boolean isMVPMatrixHitMotionEvent(float[] ModelViewProjectionMatrix, MotionEvent event){
if(event == null){
return false;
}
Matrix.multiplyMV(vertexResult, 0, ModelViewProjectionMatrix, 0, centerVertexOfCube, 0);
// circle hit test
float radius = (viewWidth / 2) * (cubeHitAreaRadius/vertexResult[3]);
float dx = event.getX() - (viewWidth / 2) * (1 + vertexResult[0]/vertexResult[3]);
float dy = event.getY() - (viewHeight / 2) * (1 - vertexResult[1]/vertexResult[3]);
double distance = Math.sqrt(dx * dx + dy * dy);
// // for debug
// overlayViewForTest.setPoint("cubeCenter", screenX, screenY);
// overlayViewForTest.postInvalidate();
return distance < radius;
}
I understand why is it being used. I don't understand the math calculations behind it - the how. Could you help please?
2018-11-05 20:47:00.819 19097-19097/com.hl3hl3.arcoremeasure E/AndroidRuntime: FATAL EXCEPTION: main Process: com.hl3hl3.arcoremeasure, PID: 19097 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.opengl.GLSurfaceView$GLThread.surfaceCreated()' on a null object reference at android.opengl.GLSurfaceView.surfaceCreated(GLSurfaceView.java:524) at android.view.SurfaceView.updateWindow(SurfaceView.java:624) at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:162) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2245) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1290) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6399) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:873) at android.view.Choreographer.doCallbacks(Choreographer.java:685) at android.view.Choreographer.doFrame(Choreographer.java:621) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:859) at android.os.Handler.handleCallback(Handler.java:754) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:165) at android.app.ActivityThread.main(ActivityThread.java:6375) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.