Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redo #2991: extend PR #2985 (moved canvas init) to also solve issue #2967 (vr2vr traversal in Oculus Browser) #2996

Closed
wants to merge 4 commits into from

Conversation

machenmusik
Copy link
Contributor

per @dmarcos:
I merged by mistake and reverted. Sorry for that. Can you please reopen? #2985 has landed so we need to rebase

(Rebase forthcoming.)

@dmarcos
Copy link
Member

dmarcos commented Aug 24, 2017

rebase needed to remove the commit that has already landed

@machenmusik
Copy link
Contributor Author

rebase done - are you in a position to sanity check?

@dmarcos
Copy link
Member

dmarcos commented Aug 25, 2017

I tried quickly but it does not seem to work for me. I did not have the controller though (I hacked the link traversal demo with a gaze based cursor). Tomorrow I'll try with the proper controller again

@machenmusik
Copy link
Contributor Author

Works for me with this test page as example

https://s.codepen.io/machenmusik/debug/XaVMWJ/mVAbGERyxabk

Once you enter VR, it reloads in 5 seconds. So if you end up out of VR, you know it is not working.

@dmarcos
Copy link
Member

dmarcos commented Aug 25, 2017

I'm trying the link traversal example with your branch and the controller and I get dropped of vr. Does examples/showcase/link-traversal work for you?

@machenmusik
Copy link
Contributor Author

for me, it is working for simpler scenes, but not for ones with big assets to download -- I suspect it runs into the timeout issue in those cases

@machenmusik
Copy link
Contributor Author

looks like the setTimeout from prior PR is still needed for the VREffect to be available in the heavier cases.

@machenmusik
Copy link
Contributor Author

@dmarcos can you confirm latest PR version works for you?

// This event may also fire in other circumstances (e.g. putting on the Rift headset).
window.addEventListener('vrdisplayactivate', function (evt) {
var s = window.AFRAME.scenes[0];
if (s.effect) { s.enterVR(); } else { setTimeout(s.enterVRBound); }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is guaranteed that in the next tick the effect is going to be defined. I'm trying to find a more robust way to do this.

Copy link
Member

@dmarcos dmarcos Aug 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also is not what I would expect the event to behave following the spec. The user action policy should not apply to the next tick logic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you find a more robust way, great. I tried several things and did not find another way for gesture permission to survive. See WICG/interventions#12

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(More specifically, WICG/interventions#12 (comment))

@machenmusik
Copy link
Contributor Author

@dmarcos any progress on a more robust solution? (Where this.effect will definitely exist while preserving user gesture?)

@cvan
Copy link
Contributor

cvan commented Oct 20, 2017

@machenmusik out of curiosity, which example(s) are you testing with this? just https://aframe.io/aframe/examples/showcase/link-traversal/, yeah?

@dmarcos
Copy link
Member

dmarcos commented Oct 20, 2017

This will be handled in un upcoming PR implementing a loading screen

@dmarcos dmarcos closed this Oct 20, 2017
@machenmusik
Copy link
Contributor Author

@cvan perhaps irrelevant now, but link-traversal example, this codepen (https://s.codepen.io/machenmusik/debug/XaVMWJ/mVAbGERyxabk) and a non-public app

@machenmusik
Copy link
Contributor Author

@dmarcos ok, as we discussed at OC4

@dmarcos
Copy link
Member

dmarcos commented Oct 20, 2017

@machenmusik thanks for the conversation at OC4

@cvan
Copy link
Contributor

cvan commented Oct 20, 2017

@machenmusik that CodePen URL gave me a 403. just posting this in case anyone else's reading: https://codepen.io/machenmusik/pen/XaVMWJ/

@machenmusik
Copy link
Contributor Author

Thanks and sorry @cvan!

@cvan
Copy link
Contributor

cvan commented Oct 20, 2017

no sweat! I was just testing WebVR flows in Oculus Browser. and I know you were working on this, so wanted to check.

thanks for working on this. before I do a deeper dive, are there any known issues you know of for A-Frame + Gear VR? I ask because the new Oculus headsets are coming soon, and I want to make sure A-Frame and three.js are prepared.

thanks again for all your PRs and keeping your finger on the pulse 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants