GithubHelp home page GithubHelp logo

toby018 / ar-doodling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gjgjh/ar-doodling

0.0 0.0 0.0 19.02 MB

AR Doodling is an AR application to draw colorful lines in 3d space using ARCore. AR涂鸦是一款可以绘画3维彩色线条的基于ARCore的开源AR应用

License: Apache License 2.0

Java 93.88% GLSL 6.12%

ar-doodling's Introduction

AR Doodling

AR Doodling is an AR application inspired by Google. You can draw different colorful lines in 3d space by pressing your screen and moving the phone around the space.

The code is base on AR Drawing. The original codes can only draw white line in 3d space. So I changed some codes to make the lines can have different colors, where I used colorpicker for this part. I also added some comments in Chinese to help understanding the codes.

AR涂鸦是受Google开源项目启发的AR应用程序。您可以通过按屏幕并在空间周围移动手机,在3d空间中绘制彩色线条。

该代码基于AR Drawing。原始代码只能在3d空间中绘制白色线条。所以我更改了一些代码,使线条可以有不同的颜色,这块使用了开源项目colorpicker来挑选不同颜色。我还在代码关键位置添加了一些中文注释,以帮助理解代码。

Get started

To build the project, download it and open it in Android Studio 3.0. All dependencies should automatically be fetched by Android Studio.

Before launching the app on your phone you have to install ARCore on it.

You can check if your device is supported on this list

Demo

TODO

At present, although AR Doodling can change the color of lines, it can only change the color of all lines at the same time, and cannot change the color of a certain line segment separately. This is because in the original code, the line rendering class are encapsulated. It needs OpenGL stuff to change this part, but still the rendering efficiency may be lower than the original code.

Feel free to contribute to improve this repo.

目前AR Doodling虽然可以改变线条的颜色,但是只能同时改变所有线条的颜色,而不能单独改变某一线段的颜色。这是因为原始代码中,将线渲染类封装在了一起。因此改动起来需要涉及OpenGL的内容,而且渲染的效率可能会比原始代码要低。

欢迎提pull request将这部分继续改进。

ar-doodling's People

Contributors

gjgjh avatar

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.