All Projects → vbaicu → react-native-arcore

vbaicu / react-native-arcore

Licence: MIT license
React native bindings for Android ArCore as UI Component with support for model rendering and manipulation

Programming Languages

java
68154 projects - #9 most used programming language
C++
36643 projects - #6 most used programming language
GLSL
2045 projects
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to react-native-arcore

sceneform-android
Sceneform Maintained is an ARCore Android SDK with Google Filament as 3D engine. This is the continuation of the archived Sceneform
Stars: ✭ 303 (+765.71%)
Mutual labels:  augmented-reality, arcore, arcore-android
Arcore Location
Allows items to be placed within the AR world with real-world GPS coordinates using ARCore.
Stars: ✭ 399 (+1040%)
Mutual labels:  augmented-reality, arcore
Jeelizar
JavaScript object detection lightweight library for augmented reality (WebXR demos included). It uses convolutional neural networks running on the GPU with WebGL.
Stars: ✭ 296 (+745.71%)
Mutual labels:  augmented-reality, arcore
Nativescript Ar
Augmented Reality NativeScript plugin
Stars: ✭ 107 (+205.71%)
Mutual labels:  augmented-reality, arcore
stardust-SDK
Stardust SDK and sample app for Unity
Stars: ✭ 23 (-34.29%)
Mutual labels:  augmented-reality, arcore
Virocore
ViroCore cross-platform AR/VR renderer
Stars: ✭ 270 (+671.43%)
Mutual labels:  augmented-reality, arcore
Awesome Arcore
A curated list of awesome ARCore projects and resources. Feel free to contribute!
Stars: ✭ 106 (+202.86%)
Mutual labels:  augmented-reality, arcore
augmentedreality
Augmented Reality examples for Android.
Stars: ✭ 14 (-60%)
Mutual labels:  augmented-reality, arcore
Viro
ViroReact: AR and VR using React Native
Stars: ✭ 1,735 (+4857.14%)
Mutual labels:  augmented-reality, arcore
Ar Toolbox
🧰 ARCore & Sceneform Playground
Stars: ✭ 179 (+411.43%)
Mutual labels:  augmented-reality, arcore
glimpse-android
An android app to show your products in Augmented Reality (AR). Built using ARCore and Firebase
Stars: ✭ 20 (-42.86%)
Mutual labels:  augmented-reality, arcore
Sceneform-Augmented-Images
Demo of Augmented Images in ArCore using Sceneform
Stars: ✭ 35 (+0%)
Mutual labels:  augmented-reality, arcore-android
sceneview-android
SceneView is a 3D/AR Android View with ARCore and Google Filament. This is the newest way to make your Android 3D/AR app.
Stars: ✭ 100 (+185.71%)
Mutual labels:  augmented-reality, arcore
awesome-arcore
⚡️ A curated list of awesome ARCore projects and resources. Feel free to contribute!
Stars: ✭ 16 (-54.29%)
Mutual labels:  augmented-reality, arcore
learn ar flutter
An Augmented Reality app made in Flutter.
Stars: ✭ 54 (+54.29%)
Mutual labels:  augmented-reality, arcore
Teapot shooter
Augmented Reality Teapot Shooter made using Unity and ARCore
Stars: ✭ 30 (-14.29%)
Mutual labels:  augmented-reality, arcore
Xr Unity
8th Wall XR Unity projects and resources. Feel free to contribute!
Stars: ✭ 108 (+208.57%)
Mutual labels:  augmented-reality, arcore
ARFaceDetection
AR-based library for Android which is capable of detecting faces and overlaying images above the user’s head
Stars: ✭ 46 (+31.43%)
Mutual labels:  arcore, arcore-android
ArCoreMeasurement
Its measurement app made using kotlin with sceneform sdk by google
Stars: ✭ 38 (+8.57%)
Mutual labels:  arcore, arcore-android
PanoDR
Code and models for "PanoDR: Spherical Panorama Diminished Reality for Indoor Scenes" presented at the OmniCV workshop of CVPR21.
Stars: ✭ 22 (-37.14%)
Mutual labels:  augmented-reality

react-native-arcore

This project showcases simple bindings of Android ARCore into react-native. It's not a full arcore wrapper in rect-native, just reveals the path for integration in bigger awesome projects.

I'll update it as I improve the interface and controls in my project.

My project is based on Google's Java ARCore starter example.

Features

  • GLSurfaceView with ARSession as a react UI Component, easy to integrate

  • Callbacks from native code to JS

  • Load modules and textures as base64

  • Object scaling

  • Object rotation

  • Object selection

  • Object moving

Usage

I'll skip the "integrate into your project" part cause it's pretty boring and you probably know that already. You can also run this project out of the box(droid only). Note: You need an ARCore compatible device and the preview sdk installed on your phone(https://developers.google.com/ar/develop/java/quickstart)

Add the view

const Dimensions = require('Dimensions');
...
return  <ARSurfaceViewDroid style={{width:Dimensions.get('window').width, height:Dimensions.get('window').height}} />

Yes, you need to make it full screen, otherwise the touch listener will go crazy and no longer recognize your input. Feel free to make a pull request with a fix :)

Add the listeners

 DeviceEventEmitter.addListener('onObjectPlaced',(data) => {})
    DeviceEventEmitter.addListener('onObjectSelectd',(data) => console.log(data))
    DeviceEventEmitter.addListener('onPlaneStateUpdate',(data) => console.log(data))
    DeviceEventEmitter.addListener('onError',(error) => console.log(error))

Load the models(base64 strings) and start the ARSession

  componentDidMount() {
    setTimeout(() => {
    NativeModules.ArView.setUp(models.raptor,models.cat,0.01)
    NativeModules.ArView.start()
    },1000)
}

Note that I did the loading in componentDidMount with 1 second delay, so my native object will be instantiated by the time this code is executed.

Now you should be able to load Raptors with shadows, move, rotate and scale them.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].