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

137 Коммитов

Автор SHA1 Сообщение Дата
Unboring SL 64f0d0a27a Add and listen window resize from iOS app 2017-12-14 18:09:19 -06:00
M C 86608b71ca Support camera passthrough on WebARonARKit 2017-12-10 15:49:04 -05:00
Blair MacIntyre 982a061122 need to explicitly track the size of the framebuffer
since three.js will reset canvas height, and if pixelRation is not 1, it will scale it, which we will return here, and scale again, over and over
2017-12-08 16:08:14 -05:00
Blair MacIntyre 1577ca1ecd wait till navigator.getVRDisplays() finishes
xr.getDisplays() returns a promise that waits until navigator.getVRDisplays() finishes.
2017-12-08 11:44:27 -05:00
Blair MacIntyre 5cdafa48fe bug fixes
- Added _stop method to HeadMountedDisplay to stop exception on leaving VR
- set webgl canvas to 100% width height so it doesn't go out of flow
- added a resize event to flatDisplay and reset the canvas width to the DOM element width when resized
- changed frameBufferWidth and height in XRWebGLLayer to to just returning the actual canvas size
2017-12-08 10:00:30 -05:00
Blair MacIntyre 7e912cb012 fixed canvas size and resolution 2017-12-06 15:01:29 -05:00
Trevor F. Smith d1e3f271d8 Remove a vestigial console.log 2017-11-09 21:44:55 -06: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 f552018d63 Polish the coordinate system changes. 2017-11-02 13:21:16 -07:00
Trevor F. Smith 72ce0e7e9a Try the coordinates without the XRCoordinates. 2017-10-31 09:20:42 -07:00
Trevor F. Smith 4fb29242a3 Merge pull request #29 from mozilla/tfs-stage-and-floor
Move away from Stage coordinate system. Use floor anchors and a tracker coordinate system, instead.
2017-10-06 15:40:06 -07:00
Trevor F. Smith 51b16b23db Change the default UI parameters for ARKit so that we can show and hide the debug render of found planes and points. 2017-10-05 09:20:08 -07:00
Trevor F. Smith 0fd8e81c92 Add floor anchor API and update the examples to use it. 2017-10-04 17:49:32 -07: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 85a353758f Use the ARKit anchor and world transforms to set up the XRAnchor and XRAnchorOffset. 2017-09-27 16:31:04 -07:00
Trevor F. Smith 6c0052484e A fix for the ARCore based surface hit detection. 2017-09-27 15:13:28 -07:00
Trevor F. Smith b01fd57744 A temporary fix for ARKit based surface hit testing. 2017-09-27 15:09:49 -07:00
Trevor F. Smith b45a46dc8d Fix the parameter name in ARKit updates. 2017-09-27 13:14:04 -07:00
Trevor F. Smith d4697afe9d Start reading back the hit test data from ARKit. There is something wrong with the way it is using the hit result anchor transforms from both ARKit and ARCore. 2017-09-26 13:56:05 -07:00
Trevor F. Smith 0056d370b7 Update to new promise based ARKitWrapper API. Implement XRAnchorOffset. Update hit test example to expect XRAnchorOffset instead of XRAnchor.uid from frame.findAnchor. 2017-09-25 13:02:22 -07:00
Andrey Pashentsev c62e275401 remove empty methods 2017-09-22 21:34:56 +03:00
Andrey Pashentsev 9f3abe1505 rec is true by default 2017-09-21 19:40:01 +03:00
Andrey Pashentsev 0d300dadec add promises to arkitwrapper 2017-09-21 17:01:29 +03:00
Andrey Pashentsev aa75659a36 fix EventHandlerBase removeEventListener, normalize arkit global methods to avoid name conflicts, change watch and ui options 2017-09-21 12:05:39 +03:00
Trevor F. Smith 22a282e28f Start using the ARCore hit test to find anchors. Something is mysterious with the transform we are getting from from the hit test. 2017-09-17 17:11:54 -07:00
Trevor F. Smith c3059362fd Implement but comment out updating anchors from ARKit updates because the transforms handed up from iOS are incorrect. A bug is filed. 2017-09-17 12:13:42 -07:00
Trevor F. Smith 102d9c20a3 Whipped up a quick test to find and fix a transform bug. Now the anchors app works as expected. 2017-09-15 17:11:50 -07:00
Trevor F. Smith 5d97c75ccd Move toward using ARKit for anchor tracking. 2017-09-14 11:33:20 -07:00
Trevor F. Smith 3cc6e8791c Removed tweaks that are no longer needed for the ARKit app. 2017-09-08 15:10:50 -07:00
Trevor F. Smith 2a6b4e00c6 Switched around how the pose uses tracking info, so now the stage is at 0,0,0 the head pose is shifted up to about eye level. 2017-09-07 17:20:18 -07:00
Trevor F. Smith bddaef986c Move stage positioning relative to the head pose into the XRDisplays since they are the ones who can figure out out for each tracking type. 2017-09-06 18:00:53 -07:00
Trevor F. Smith 9e68315538 Implement enough math utils to remove the THREE.js dependency of the polyfill. 2017-09-06 14:24:44 -07:00
Trevor F. Smith 42abfdc431 Extend the getData method to be able to return the entire data structure, as per suggestion from andyps 2017-09-06 12:18:45 -07:00
Trevor F. Smith 748779297e Made changes from andyps 2017-09-06 12:15:26 -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