Skip to content

WebXR Controls Improvements v2#1139

Merged
eundersander merged 4 commits intofacebookresearch:masterfrom
eundersander:eundersander/webxr2
Mar 15, 2021
Merged

WebXR Controls Improvements v2#1139
eundersander merged 4 commits intofacebookresearch:masterfrom
eundersander:eundersander/webxr2

Conversation

@eundersander
Copy link
Copy Markdown
Contributor

Motivation and Context

This is work from @BlaiseRitchie plus some cleanup. 6-DOF headset-tracking plus gamepad buttons for turning and moving forward. See original PR: #1076

How Has This Been Tested

Tested with Ubuntu Chrome WebXR emulator, Android Chrome WebXR, and Quest 2 Oculus Browser WebXR.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 13, 2021
node.setRotation(Magnum::Quaternion(quatf(rot)).normalized());
}

vec3f quaternionToEuler(const quatf& q) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't see anything using these so I'm removing them.

@eundersander eundersander mentioned this pull request Mar 13, 2021
11 tasks
.function("normalized", &Magnum::Quaternion::normalized)
.function("inverted", &Magnum::Quaternion::inverted)
.function("transformVector", &Magnum::Quaternion::transformVector)
.class_function("mul", &Quaternion_mul)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mul class method instead of of operator*


if (initializeTopDown) {
let topdownElement = document.getElementById("topdown");
if (initializeTopDown && topdownElement) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

make WebDemo robust to a missing topdown canvas

Comment thread build_js.sh
echo "http://0.0.0.0:8000/build_js/utils/viewer/viewer.html?scene=skokloster-castle.glb"
echo "Or:"
echo "http://0.0.0.0:8000/build_js/esp/bindings_js/bindings.html?scene=skokloster-castle.glb"
echo "http://0.0.0.0:8000/build_js/esp/bindings_js/webvr.html?scene=skokloster-castle.glb"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There should be a note here that this one requires a VR device.

Comment thread build_js.sh
echo "Or:"
echo "python3 -m http.server"
echo "Then open in browser:"
echo "http://0.0.0.0:8000/build_js/utils/viewer/viewer.html?scene=skokloster-castle.glb"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed this reference to viewer.html. I consider it deprecated and it's not a good starting point for JS anymore.

@eundersander eundersander merged commit d8d9082 into facebookresearch:master Mar 15, 2021
@eundersander eundersander deleted the eundersander/webxr2 branch March 15, 2021 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants