Android平台基于Google ARCore的AR框架示例

网友投稿 778 2022-10-26

Android平台基于Google ARCore的AR框架示例

Android平台基于Google ARCore的AR框架示例

ofxARCore

Experimental addon for openFrameworks to use ARCore on Android devices.

About

This openFrameworks addon implements some of the basic features from the ARCore API to be used in openFrameworks. This addon is not feature complete yet. Currently it only supports the basic camera tracking, rendering the camera image, besides basic anchor support. Even though its not feature complete, it should give a good starting point to work with AR in openFrameworks.

This is not an official Google product.

Developer guide

To use the addon, you need the development branch of openFrameworks from github. Follow the Android Studio guide to learn how to get started with openFrameworks and Android.

To add the addon, add ofxARCore to addons.make in your project, or through the project generator. Additionally you will need to add the following two lines to the end of settings.gradle of your project:

To see basic usage of the addon, see the example code

Examples

Basic example

Shows how to use the addon in the most basic way, just rendering a grid centered around origin.

Drawing example

A simple demo that lets you draw in the air.

The app calculates the world coordinates from touch events on the screen, and draws a continuous white line through the air. Read more on AR Experiments site.

There is also a never version ported to Java available here: github.com/googlecreativelab/ar-drawing-java

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:ToyRoom:饿了么开源的 Android 业务流框架
下一篇:Aptx 是一套基于 Express 的控制层框架
相关文章

 发表评论

暂时没有评论,来抢沙发吧~