Giter Site home page Giter Site logo

googlecreativelab / ar-drawing-java Goto Github PK

View Code? Open in Web Editor NEW
414.0 414.0 93.0 461 KB

A simple AR drawing experiment build in Java using ARCore.

Home Page: https://experiments.withgoogle.com/ar/arcore-drawing

License: Apache License 2.0

Java 93.47% GLSL 6.53%
ar ar-experiments arcore

ar-drawing-java's People

Contributors

brijeshshah13 avatar halfdanj avatar vanaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ar-drawing-java's Issues

BiquadFilter: what does it do ? How does it work ?

Hi,

Thanks for this great project.

I wonder what BiquadFilter do. And how it works.

May you explain in more details what is the purpose of this filter ? And may you give some insights on the maths and theory behind ?

Thanks !

Understanding Updating World Coordinate

Hi,

I'm fairly new to ARCore and OpenGL.
This app is great and similar to what i'm trying to do.

I don't understand how the coordinates are updated for each stroke in this app after you move around. I know LineUtils.GetWorldCoords gets you world coordinate from screen touch, but how do we keep track of that and keep updating them?

Any help would be very appreciated.

Thanks,

incompatible with OnePlus 3T?

This app is incompatible with all of your devices.

Very popular phone, relatively new running Android 8.0.0, how the hell is it incompatible?

drawing over the objects rather than in the air

I was trying to draw over the object rather than in the air, currently whenever i draw a line over some object it draws in the air at some specific distance from the camera, and while moving the camera towards that object the camera passes through that line and line doesn't stay on the object anymore.
Currently I've tried changing the strokeDrawDistance value inside the AppSettings.java but that doesn't seem working.

Draw using an external api

I want to draw the images using my webapi, so basically the android app receives the data and based on that draws the images. Basically I want to remotly draw images on the device, would this be possible in the current state and what kind of data do I need .obj files?

first vertex problem

Would you please explain the effect of the BiquadFilter.java. When i disuse this class, I got the first vertex coordinate wrong as if it suddenly occurs out of screen, please!

Error : "LineShaderRenderer: program params: glError 1282"

I have got the following error when running this project:

12-13 16:35:06.444 1843-1843/? E/Zygote: v2
12-13 16:35:06.445 1843-1843/? E/Zygote: accessInfo : 0
12-13 16:35:06.551 1843-1843/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 851980
12-13 16:35:06.551 1843-1843/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1310721
12-13 16:35:06.551 1843-1843/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1638401
12-13 16:35:06.552 1843-1843/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 851980
12-13 16:35:06.552 1843-1843/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1310721
12-13 16:35:06.552 1843-1843/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1638401
12-13 16:35:06.552 1843-1843/? E/tango_camera_native: 2 is not a valid camera index.
12-13 16:35:06.552 1843-1843/? E/tango_camera_native: 3 is not a valid camera index.
12-13 16:35:06.638 1843-1885/? E/LineShaderRenderer: Error compiling shader: 0:24: L0002: Undeclared variable 'f'
                                                     0:27: L0002: Undeclared variable 'f'
                                                     0:30: L0002: Undeclared variable 'f'
12-13 16:35:06.638 1843-1885/? E/LineShaderRenderer: program: glError 1281
12-13 16:35:06.639 1843-1885/? E/LineShaderRenderer: program  params: glError 1282
12-13 16:35:06.819 1843-1890/? E/Camera2-Metadata: Update metadata entry: Unknown tag -1073741824
12-13 16:35:07.025 1843-1876/? E/ACameraDevice: onDeviceIdle sending state cb
12-13 16:35:07.122 1843-1932/? E/ndk_camera: onCaptureSessionClosed called, signalling on CV.
12-13 16:35:07.427 1843-1885/? E/tango_camera_native: Couldn't get image exposure/skew for timestamp offset!
12-13 16:35:07.427 1843-1885/? E/ndk_camera: metadata has: 202550.210061
12-13 16:35:07.427 1843-1885/? E/ndk_camera: metadata has: 202550.598346
12-13 16:35:16.761 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282
12-13 16:35:16.802 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282
12-13 16:35:16.830 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282
12-13 16:35:16.863 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282
12-13 16:35:16.895 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282
12-13 16:35:16.930 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282
12-13 16:35:16.962 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282
12-13 16:35:17.002 1843-1885/com.googlecreativelab.drawar E/LineShaderRenderer: Draw: glError 1282

I have no crash but nothing appears on the surfaceView (I just have the status bar at the bottom).

Thanks a lot for your help.

app crash at launch

Hi,

App crash when we try to launch it on samsung S7 edge

03-22 14:17:35.813 28240-28240/? E/Zygote: v2
03-22 14:17:35.814 28240-28240/? E/Zygote: accessInfo : 0
03-22 14:17:36.236 28240-28240/com.googlecreativelab.drawar E/NdkImageReader: AImageReader_getWindow
03-22 14:17:36.382 28240-28261/com.googlecreativelab.drawar E/LineShaderRenderer: Error compiling shader: 0:24: L0002: Undeclared variable 'f'
0:27: L0002: Undeclared variable 'f'
0:30: L0002: Undeclared variable 'f'
03-22 14:17:36.384 28240-28261/com.googlecreativelab.drawar E/AndroidRuntime: FATAL EXCEPTION: GLThread 11128
Process: com.googlecreativelab.drawar, PID: 28240
java.lang.RuntimeException: Error creating shader.
at com.googlecreativelab.drawar.rendering.ShaderUtil.loadGLShader(ShaderUtil.java:55)
at com.googlecreativelab.drawar.rendering.LineShaderRenderer.createOnGlThread(LineShaderRenderer.java:170)
at com.googlecreativelab.drawar.DrawAR.onSurfaceCreated(DrawAR.java:396)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1530)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1262)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.