React Native binding for iOS ARKit
ios beta
add support for image detection, see https://github.com/HippoAR/react-native-arkit/pull/155, solves https://github.com/HippoAR/react-native-arkit/issues/153
-ios beta
add support for vertical plane detection, solves https://github.com/HippoAR/react-native-arkit/issues/139
<ARKit.Group />
. See updated readme for more information<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.planeDetection
property on <ARKit />
is no longer a boolean, but any of the constants in ARKit.ARPlaneDetection.*
edit ios/yourproject.xcodeproj/project.pbxproj
and change ../node_modules/_PocketSVG/PocketSVG.xcodeproj
to --> ../node_modules/react-native-arkit/ios/PocketSVG/PocketSVG.xcodeproj
ARKit.hitTestSceneObjects
and ARKit.hitTestPlanes
no longer return tapPoint which was just a copy of the paramARKit.hitTestSceneObjects
and ARKit.hitTestPlanes
no longer return point in results[], use position or positionAbsolute insteadARKit.snapshot()
no longer needs an argument (thx @Nualiian )ARKit.hitTestSceneObjects
returns now all objects hit, not only the nearest oneARKit.hitTestPlanes
no longer throws error when using type ARKit.ARHitTestResultType.FeaturePoint
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 entirelyorigin={{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 changeARKit.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.position
(which was node
before), positionAbsolute
and eulerAngles
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.)
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.
Also, the Sample app has been updated (currently here https://github.com/panter/ReactNativeARKit/tree/update-versions)
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.
New features:
Bugfix:
fixes an occasional crash when using hittest on sceneobjects
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
a new Higher order Component allows to create 3D cursors! Checkout the readme for instructions