FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

hand-controls: rotates models to match WebXR definition (fix #4848) by DougReeder · Pull Request #5261 · aframevr/aframe · GitHub

hand-controls: rotates models to match WebXR definition (fix #4848) - #5261

Merged
dmarcos merged 2 commits into
aframevr:masterfrom
DougReeder:grip-space
Mar 20, 2023
Merged

hand-controls: rotates models to match WebXR definition (fix #4848)#5261
dmarcos merged 2 commits into
aframevr:masterfrom
DougReeder:grip-space

Conversation

Copy link
Copy Markdown
Contributor

Description:
Fixes #4848
The WebXR standard now defines the grip space such that a cylinder held in a closed hand points along the Z axis. The models currently have such a cylinder point along the X-Axis.

Changes proposed:
There are two approaches

  1. rotate the mesh in code, as done here
  2. edit the GLB files

I'm fine with either, but I lack knowledge of 3D tools (such as Blender) to implement the second approach.

Copy link
Copy Markdown
Contributor Author

dmarcos changed the title hand-controls: rotates models to match WebXR definition hand-controls: rotates models to match WebXR definition (fix #4848) Mar 20, 2023

dmarcos commented Mar 20, 2023

Copy link
Copy Markdown
Member

Thanks!. I think we have to check for sceneEl.hasWebXR before applying the offset so WebVR (Firefox) still works as before.

I would also add a comment in the offset:

// The WebXR standard defines the grip space such that a cylinder held in a closed hand points along the Z axis. ./
// The models currently have such a cylinder point along the X-Axis.
var modelOrientationXOffset = sceneEl.hasWebXR ? xxx : 0;
...

dmarcos commented Mar 20, 2023

Copy link
Copy Markdown
Member

Thank you!

dmarcos merged commit 5b29ac2 into aframevr:master Mar 20, 2023
DougReeder deleted the grip-space branch April 8, 2023 02:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Hand tracking controls model needs update

2 participants


Back | FazBrowse Home | New Git URL