Releases: react-native-ar/react-native-arkit
0.9 - Features, Features, Features
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)):
- 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 atransition
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
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
andARKit.hitTestPlanes
no longer return tapPoint which was just a copy of the paramARKit.hitTestSceneObjects
andARKit.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 typeARKit.ARHitTestResultType.FeaturePoint
Version 0.7
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. useonPlaneUpdate
to get detected planes and set origin to the plane with the lowest y coordinate. Usetransition
to animate that change ARKit.hitTestSceneObjects
andARKit.hitTestPlanes
respect the neworigin
property. Every reportedposition
is relative to that origin. UsepositionAbsolute
to get the original, absolute position.- detected planes have now also new properties
position
(which wasnode
before),positionAbsolute
andeulerAngles
0.6.0
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
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
- 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
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
New features:
- allow to specify worldAlignment. See https://github.com/HippoAR/react-native-arkit#props for more information and https://developer.apple.com/documentation/arkit/arconfiguration.worldalignment. Thx @conorstrejcek
Bugfix:
bugfix release 0.4.2
fixes an occasional crash when using hittest on sceneobjects
Version 0.4.0
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.