Skip to content

Releases: react-native-ar/react-native-arkit

0.9 - Features, Features, Features

21 Feb 11:33
Compare
Choose a tag to compare

New Features:

  • we have a new github organisation! https://github.com/react-native-ar
  • NEW ARKIT 1.5 features (needs IOS 11.3 (currently beta)):
    • ios beta add support for image detection, see #155, solves #153
      -ios beta add support for vertical plane detection, solves #139
  • new billboard constraints, e.g. so that objects always face the camera, thx @bnjm , see #158
  • 3d objects can now be nested, in usually useful with <ARKit.Group />. See updated readme for more information
  • add support for AnimatedValues on:
    • position
    • eulerAngles
    • scale
    • opacity
  • new API to check whether ARKit has been initialized. See #152
  • new Material-properties, see the updated readme. (thx @bnjm )

Improvements & Bugfixes

  • <ARKit.Sprite /> has been improved and is now super smooth. It additionaly receives a transition property to make it smoother or faster depending on your needs.
  • When running in simulator, you have now orbit-controls! This also allows you to use storybook to design your 3d components! thx @bnjm see #159
  • No longer asks for camera permission on startup if ARKit is not mounted. (see #152)
  • fix light color property (thx @bnjm #157)

Breaking

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

0.8.0 - Bugfix release

07 Feb 15:35
Compare
Choose a tag to compare

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 #147
  • ARKit.hitTestPlanes no longer throws error when using type ARKit.ARHitTestResultType.FeaturePoint

Version 0.7

21 Dec 12:52
Compare
Choose a tag to compare

New Features

  • Textures! Normal Maps! And more! (experimental) See this PR and the readme section: #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

16 Nov 15:49
Compare
Choose a tag to compare

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

Let there be light! Version 0.5.0

14 Nov 13:49
Compare
Choose a tag to compare

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.

bugfix release 0.4.5

13 Nov 00:35
Compare
Choose a tag to compare
  • 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)

bugfix release 0.4.4

05 Nov 23:55
Compare
Choose a tag to compare

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 #100 in my tests, but also clears the scene after an app reload.

Version 0.4.3

05 Nov 22:22
Compare
Choose a tag to compare

New features:

Bugfix:

  • fixes #100 Please open an issue if you still have this issue!
  • Some typos in the readme are fixed. Thx @bnjm

bugfix release 0.4.2

25 Oct 20:39
Compare
Choose a tag to compare

fixes an occasional crash when using hittest on sceneobjects

Version 0.4.0

24 Oct 12:16
Compare
Choose a tag to compare

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 #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.