React Native Arkit Versions Save

React Native binding for iOS ARKit

0.9.0

6 years ago

New Features:

Improvements & Bugfixes

Breaking

planeDetection property on <ARKit /> is no longer a boolean, but any of the constants in ARKit.ARPlaneDetection.*

0.8.0

6 years ago

Breaking

  • PocketSVG dependency no longer uses npm. You have to update a path in your project settings!. You can do this in xcode but its easier to use a text-editor:

edit ios/yourproject.xcodeproj/project.pbxproj

and change ../node_modules/_PocketSVG/PocketSVG.xcodeproj to --> ../node_modules/react-native-arkit/ios/PocketSVG/PocketSVG.xcodeproj

Other smaller potentially breaking changes

  • ARKit.hitTestSceneObjects and ARKit.hitTestPlanes no longer return tapPoint which was just a copy of the param
  • ARKit.hitTestSceneObjects and ARKit.hitTestPlanes no longer return point in results[], use position or positionAbsolute instead

Fixes:

  • ARKit.snapshot() no longer needs an argument (thx @Nualiian )
  • ARKit.hitTestSceneObjects returns now all objects hit, not only the nearest one
  • Workaround for a problem where a node would not update because it has been removed in a race-condition (still investigating)
  • deprecated scale property on ARKit.model model now defaults to 1. See https://github.com/HippoAR/react-native-arkit/issues/147
  • ARKit.hitTestPlanes no longer throws error when using type ARKit.ARHitTestResultType.FeaturePoint

0.7.1

6 years ago

New Features

  • Textures! Normal Maps! And more! (experimental) See this PR and the readme section: https://github.com/HippoAR/react-native-arkit/pull/121 thx @bnjm
  • onARKitError on <ARKit /> component now reports when ArKit could not be initialized, e.g. because the camera access was denied.
  • onPlaneRemoved on <ARKit /> now is called when a detected plane has been removed (ArKit sometimes replaces detected planes entirely
  • new property origin={{position, transition}} on <ARKit />. Setting this property to a certain position shifts the whole coordinate system to that point. This is usefull if you always want to align everything to the floor, so any object with y-coordinate equals 0 will be exactly at the floor. E.g. use onPlaneUpdate to get detected planes and set origin to the plane with the lowest y coordinate. Use transition to animate that change
  • ARKit.hitTestSceneObjects and ARKit.hitTestPlanes respect the new origin property. Every reported position is relative to that origin. Use positionAbsolute to get the original, absolute position.
  • detected planes have now also new properties position (which was node before), positionAbsolute and eulerAngles

0.6.0

6 years ago

This release focuses on enabling more transitions between property changes. Most notably changes in shapes can now be animated with simple transitions. If you update shapes rapidly, this should also result in a better performance. (It does not work yet on material properties though, e.g. on diffuse colors, but this is now the next step.)

New features

  • transitions for shapes and light properties (now you can fade light!)
  • new material properties (see readme)
  • smaller bugfix

0.5.5

6 years ago

This version introduces ARLight and many other related features, like lightEstimation callbacks and new properties to control rendering behaviour.

The Readme has been updated to reflect most of the current features. Best you check the new section about common object props and the section about ARLight

Breaking

<ARKit lightEstimation /> has been renamed to <ARKit lightEstimationEnabled />

Altough this should not affect existing apps, as the lightEstimation could not be really used.

0.4.5

6 years ago
  • sceneobject hit test functions now also returns result for models and Text by traversing parent nodes.
  • fixes (again) empty scene bug

Also, the Sample app has been updated (currently here https://github.com/panter/ReactNativeARKit/tree/update-versions)

0.4.4

6 years ago

0.4.3 introduced a problem when you reload your app on develop mode. The scene gets not cleared anymore.

We now clear the scene on start of the app (but not on scene mount). This still fixes https://github.com/HippoAR/react-native-arkit/issues/100 in my tests, but also clears the scene after an app reload.

0.4.3

6 years ago

New features:

Bugfix:

0.4.2

6 years ago

fixes an occasional crash when using hittest on sceneobjects

0.4.0

6 years ago

Breaking:

  • Some additional installation is needed for an underlying SVG-Library (pocketSVG). Sorry for that! Please refer to the readme for instructions. File an Issue or join the slack channel if you need help! Feedback is also welcome for better ways how to define 3rd party dependencies in react-native-libraries. (upcoming react native 0.50.0 seems to has cocoapods support, which would be handy here).

New Features:

ARKit.Shape

A new 3D object that can take a SVG to define it's shape! It can be extruded and its corner can also be shaped with an svg. See https://github.com/HippoAR/react-native-arkit/pull/89 for details as well as the updated readme

HOC withProjectedPosition

a new Higher order Component allows to create 3D cursors! Checkout the readme for instructions

Bugfixes:

  • 3d scene is no longer empty sometimes after startup.