Skip to content

Conversation

@riccardogiorato
Copy link

Update aframe-teleport to work with WebXR

@riccardogiorato
Copy link
Author

Tested without problems on Firefox Windows with Oculus Link running as an Oculus Quest.
Running perfectly also inside Oculus Browser on the Quest without the link.

Copy link
Author

@riccardogiorato riccardogiorato left a comment

Choose a reason for hiding this comment

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

Switch urls from dbradleyfl to the originals fernandojsg

el.addEventListener(data.button + 'down', this.onButtonDown);
el.addEventListener(data.button + 'up', this.onButtonUp);
}

Choose a reason for hiding this comment

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

The fact that I did away with these lines mean the "startEvents" and "endEvents" properties don't do anything anymore. They might be un-necessary now with the new WebXR api, but I wasn't sure. Thought it was worth noting, and is part of the reason I didn't originally create this pull request.

Copy link
Owner

Choose a reason for hiding this comment

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

I don't think is a good idea to remove these events and replace them just with axismove as you are forcing the users to use the axis for teleporting without any chance to change that configuration.

Choose a reason for hiding this comment

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

I added this back, but switched the default behavior to axismove as I believe that is the most common desired behavior (due to quest).

@riccardogiorato riccardogiorato requested review from dmarcos and feiss and removed request for feiss January 29, 2020 11:50
el.addEventListener(data.button + 'down', this.onButtonDown);
el.addEventListener(data.button + 'up', this.onButtonUp);
}

Copy link
Owner

Choose a reason for hiding this comment

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

I don't think is a good idea to remove these events and replace them just with axismove as you are forcing the users to use the axis for teleporting without any chance to change that configuration.

index.js Outdated
el.addEventListener(data.button + 'up', this.onButtonUp);
}

el.addEventListener('axismove', this.handleAxis.bind(this))
Copy link
Owner

Choose a reason for hiding this comment

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

same as before

package.json Outdated
"unpkg": "dist/aframe-teleport-controls.min.js",
"scripts": {
"dev": "budo index.js:dist/aframe-teleport-controls.min.js --port 7000 --live --open",
"dev": "budo index.js:dist/aframe-teleport-controls.min.js --port 7000 --live --open --ssl --cors --cert cert.crt --key key.key",
Copy link
Owner

Choose a reason for hiding this comment

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

it will probably make sense to switch to webpack with the --https parameter so it doesn't need a certificate, as currently this will break on people as they won't have the installed certificate locally

.gitignore Outdated
gh-pages
node_modules/
npm-debug.log
cert.crt
Copy link
Owner

Choose a reason for hiding this comment

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

nit: I don't think you should be using local cert and adding them to ignore, but instead using a server that could run the https by itself as webpack or so. Not sure if budo has that option though

Copy link
Collaborator

@dmarcos dmarcos Feb 11, 2020

Choose a reason for hiding this comment

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

FYI, budo generates a self-signed certificate if no -cert / --key are passed

Copy link
Owner

Choose a reason for hiding this comment

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

that's great to know thanks!

Choose a reason for hiding this comment

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

Yep. Just discovered the project was running an old version of budo that required a cert and key. Updated that dep.

@dbradleyfl dbradleyfl force-pushed the master branch 2 times, most recently from d64886a to b54de8d Compare February 11, 2020 22:31
@dbradleyfl
Copy link

Just rebased so this is ready to merge if you're ok with it @fernandojsg. Happy to make more changes if necessary.

@dmarcos
Copy link
Collaborator

dmarcos commented Feb 20, 2020

@dbradleyfl Thanks for sticking with it. Great effort 🏅

@fernandojsg
Copy link
Owner

@dbradleyfl Hi! sorry for the delay. I was checking an old branch I had trying to migrate to WebXR and I found some other issues and bugs that the original version already had, (eg computing the normal of the plane where you will land is incorrect right now). So I'm working on fixing them all and update the code, hopefully in the next few weeks. I'll be back here if there is something missing ^_^
thanks

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants