Blair MacIntyre
dedf3da67a
only update _videoFrameCanvas if accessing video
2019-05-21 12:49:57 -04:00
Blair MacIntyre
d46fddd9c2
small fix
2018-11-28 22:29:32 -05:00
Blair MacIntyre
ca18c3cc6a
added a little error checking to setWorldMap
2018-11-16 12:22:39 -05:00
Blair MacIntyre
1f8e7b2447
expose "worldMappingStatus"
...
as a string, on XRSession
fixed persistence to display it
2018-10-26 07:09:07 -04:00
Blair MacIntyre
2a606521ba
typos fixed
2018-10-18 11:10:56 +02:00
Blair MacIntyre
3d3b3ab153
don't pass the internal "cameraAnchors" to the app via new anchor events
2018-10-17 13:13:41 +02:00
Blair MacIntyre
c24a677e26
Merge branch 'develop' of https://github.com/mozilla/webxr-polyfill into develop
2018-10-17 00:29:56 +02:00
Blair MacIntyre
caf98fa643
add ability to set the uid of a new anchor
...
added an optional parameter to frame.addAnchor so you can set the uid. Otherwise, the XRAnchor constructor continues to create one.
2018-10-17 00:26:59 +02:00
Blair MacIntyre
c04ba69131
Merge branch 'arkit-worldmap' of https://github.com/mozilla/webxr-polyfill into arkit-worldmap
2018-10-16 12:42:07 +02:00
Blair MacIntyre
c06b456282
small typo
2018-10-16 12:41:55 +02:00
Blair MacIntyre
b693b8516c
expose trackingChanged event
...
up through session
2018-10-05 13:28:08 -04:00
Blair MacIntyre
945356c674
fixed persistence and demo
2018-10-03 12:08:02 -07:00
Blair MacIntyre
875c1e5007
forgot to check in XRSession.js
2018-10-02 17:05:47 -07:00
Blair MacIntyre
3f9620f8ca
initial version of get/setWorldMap
2018-10-01 17:58:39 -04:00
Blair MacIntyre
c92b1c66e3
clear out any existing webxr polyfill with the same names
...
The WebXR Viewer is going to preload it's own WebXR polyfill, so if some page loads this, it needs to not use any of the other polyfill's classes.
2018-08-08 19:40:59 -04:00
Blair MacIntyre
c3a348cc01
small fix. Need to update reticle with _hitAnchorOffset every frame
2018-05-22 17:12:31 -04:00
Blair MacIntyre
fd36c2086d
added session.hitTest()
...
session.hitTest is exactly the same as frame.findAnchor
converted reticle and light examples to use this
no longer using hitTestNoAnchor, since WebXR will use an asynchronous session.hitTest
2018-05-22 11:37:53 -04:00
Blair MacIntyre
31575d7a35
added option to findAnchor for more than just planes
...
updated CameraReality to deal with non-plane hit results
2018-05-21 17:18:21 -04:00
Blair MacIntyre
a002d881fa
fixes to add remove-anchor events
2018-05-17 15:29:01 -05:00
Blair MacIntyre
f6b85d6562
fixed a bunch of things related to face/plane tracking and anchors
...
Added a new sensing example
made face tracking demo more interesting
2018-05-12 10:04:26 -04:00
Blair MacIntyre
0ffc7ecd3d
update blendshapes
2018-05-11 11:55:50 -04:00
Roberto Garrido
b1e1222bcb
Receive blend shapes as an array in a "well known" order.
2018-05-11 17:27:15 +02:00
Blair MacIntyre
52045ceb5e
updated face geometry in anchor
2018-05-11 07:07:51 -04:00
Blair MacIntyre
323b49a561
Merge branch 'develop' into face-fix
2018-05-11 07:03:18 -04:00
Roberto Garrido
82b5de0902
Pass the update anchor event up in the event hierarchy. Also fixed a bug creating a XRPlaneAnchor.
...
Modified the sample so it can now respond the XRFaceAnchor updates.
2018-05-11 12:01:10 +02:00
Blair MacIntyre
84e06aec32
fixes to face
2018-05-11 05:12:42 -04:00
Roberto Garrido
8a0c832adb
Added ARKit face tracking support and a simple example to demo it.
2018-05-10 17:06:24 +02:00
Roberto Garrido
df7173c8ff
Merge branch 'develop' into arkit1.5
2018-05-08 18:07:33 +02:00
Roberto Garrido
2b6b0a7260
Merge branch 'arkit1.5' of https://github.com/mozilla/webxr-polyfill into arkit1.5
2018-05-08 18:06:57 +02:00
Roberto Garrido
acb1d31ed7
Now we can activate previously created detection images and get a transform when they're detected by ARKit.
2018-05-08 18:06:31 +02:00
Blair MacIntyre
9f38a93537
Merge pull request #100 from mozilla/timestamps
...
put current timestamps in the presentation frame
2018-05-01 09:04:18 -04:00
Blair MacIntyre
02f7255698
put current timestamps in the presentation frame
...
Use the timestamp provided by rAF unless we're on ARKit, in which case use the timestamp of the ARKit data.
2018-05-01 09:03:10 -04:00
Roberto Garrido
e541fa4b79
Moved the createImageAnchor session over to the XRSession class.
2018-04-25 16:35:01 +02:00
Roberto Garrido
4891a73b79
register a callback for when the user allows/denies accessing world sensing data.
2018-04-25 16:14:47 +02:00
Roberto Garrido
7b4c67c2ee
Added a simple example with 2 buttons that registers 2 test images into the ARKit session. A promise is resolved with the ARKit provided data when they're detected.
2018-04-23 16:30:35 +02:00
Blair MacIntyre
c3f69d75a7
bug in internal anchor removal
2018-04-20 11:47:55 -04:00
Roberto Garrido
02239f2087
Work in progress on a sample using ARKit 1.5 image detection.
2018-04-20 17:01:06 +02:00
Blair MacIntyre
6700182c5a
added a base64 encoding and an empty method for creating image anchors
2018-04-19 16:00:19 -04:00
Blair MacIntyre
85a851c998
Merge branch 'arkit1.5' of https://github.com/mozilla/webxr-polyfill into arkit1.5
2018-04-19 12:54:32 -04:00
Blair MacIntyre
a923664585
moved quaternion extraction before invert
...
and added alignment to the plane in the second creation place
2018-04-19 12:54:30 -04:00
Roberto Garrido
d572070917
Added hit test types supported by ARKit 1.5
2018-04-19 18:23:17 +02:00
Roberto Garrido
e1c8596416
Working progress with the planes and the reticle sample
2018-04-19 17:42:47 +02:00
Roberto Garrido
25a4390e51
Property names refactoring. We don't have h_plane_center, we have just plane_center, and a plane_alignment property indicating the alignment of the plane.
2018-04-18 12:29:53 +02:00
Blair MacIntyre
ff450c985f
worker message adds "type" property
...
so that developers can send different messages in
2018-04-17 14:47:07 -04:00
Blair MacIntyre
4e3e43031b
fix timeoffset computation to use new app event
2018-04-17 14:46:32 -04:00
Blair MacIntyre
cacbea032a
_createSession should wait for ARKit to initialize on iOS Viewer
...
So, it should return the waitForInit() promise
2018-04-17 14:45:45 -04:00
Roberto Garrido
c4b4c391bb
Merge branch 'develop' of https://github.com/mozilla/webxr-polyfill into develop
2018-04-16 16:56:52 +02:00
Roberto Garrido
52ca0ab424
Added a setNativeTime method to the ARkitWrapper that receives the current ARFrame timestamp. It is meant to be called 10 times from the iOS side.
2018-04-16 16:56:36 +02:00
Blair MacIntyre
6753144b36
small fixes
2018-04-16 10:44:52 -04:00
Blair MacIntyre
0bd9727e0b
VideoFrames now offset from anchors
...
XRSession creates and destroys a ongoing series of Anchors, which VideoFrames are expresses relative to. New anchors are currently created each minute. These anchors are not exposed.
Rather, session.getVideoFramePose will set in the provided matrix to the current tracker coordinates, by using these anchors to adjust to current time (since the videoframe was captured at some point in the past).
2018-04-14 09:34:26 -04:00