Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
Blair MacIntyre d46fddd9c2 small fix 2018-11-28 22:29:32 -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 b693b8516c expose trackingChanged event
up through session
2018-10-05 13:28:08 -04:00
Blair MacIntyre 875c1e5007 forgot to check in XRSession.js 2018-10-02 17:05:47 -07: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 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
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
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
Blair MacIntyre c3f69d75a7 bug in internal anchor removal 2018-04-20 11:47:55 -04: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 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
Blair MacIntyre 788861b1eb added start/stop video, fixed arkit timestamp offset 2018-04-11 10:00:13 -04:00
Blair MacIntyre 2dd8c1a736 first working checkin of new CV version
with opencv sample
2018-04-05 12:20:16 -04:00
Blair MacIntyre a8c735c040 added XRVideoFrame
Encapsulated all the functionality of video frames (receiving, managing cached ArrayBuffers, lazilly converting from base60 to binary, etc) in an object.

Included methods to clean up workers (postMessageToWorker and postReplyMessage).  updated simplecv
2018-04-03 07:13:47 -04:00
Blair MacIntyre 9729e4afe0 fix for app update, buffer reuse
Needed to pass ArrayBuffers into Workers and back out, and then back down to polyfill, in order to reuse them and not constantly reallocate
2018-03-20 21:50:42 -04:00
Blair MacIntyre 19d5ddfe8c disable internal worker; resync requests for next vid frame. 2018-03-19 16:05:06 -04:00
Blair MacIntyre ba689405a4 another attempt at workers. still not working. 2018-03-19 09:00:16 -04:00
Blair MacIntyre 958cf07b06 fixes for computer vision callbacks
- needed to pass session parameters all the way down
- removed extra calls to "watch" from flatDisplay (probably there because of the bug in event dispatch, which caused some to be missed)
- created vision events up through Display and Session.  In Session can now pass "computer_vision_data" as a session parameter, will cause iOS app to generate vision frames.
- can call session.requestVideoFrames() to start sending frames to the callback supplied
2018-03-18 14:57:53 -04:00
Trevor F. Smith 9dff0bafc3 Start switching the engine mode by starting and stopping XRSessions. 2017-11-09 21:41:34 -06:00
Trevor F. Smith 34e88a32ef Use a tracker coordinate system instead of stage. Update examples so they function but next they need to use the (not yet implemented) floor anchors. 2017-10-04 16:08:47 -07:00
Trevor F. Smith 6c9e4d5b3b Add a coding doc and tweak a few aspects of the polyfill. 2017-09-28 17:20:57 -07:00
Trevor F. Smith 566901b1c5 Added a HMD display that wraps WebVR 1.1 VRDisplays and an empty VirtualReality 2017-09-06 11:50:13 -07:00
Trevor F. Smith 112905af7a Pull the example code from the webxr-api repository. 2017-09-04 18:59:34 -07:00