Skip to content

DON'T MERGE!! Label nodes for oculus-touch-v3 - #281

Open
AdaRoseCannon wants to merge 1 commit into
mainfrom
labels/oculus-touch-v3
Open

DON'T MERGE!! Label nodes for oculus-touch-v3#281
AdaRoseCannon wants to merge 1 commit into
mainfrom
labels/oculus-touch-v3

Conversation

@AdaRoseCannon

Copy link
Copy Markdown
Member

Response to immersive-web/webxr#1428

I took a stab at seeing what it would look like for a single controller.

This is just a POC to see if this is the kind of thing that we had in mind.

Adds<rootNodeName>_label nodes to left/right GLBs at positions chosen to face outward from the controller surface, so experiences can anchor tooltips/text to each button, trigger, squeeze, thumbstick, and thumbrest.

  • GLBs: embed _label empty nodes (local +Y outward) under each component's root subtree.
  • profile.json: declare matching labelTransform overrides (position
    • quaternion in gltf.scene-local / grip space) so consumers who can't parse the GLB still get the placement.
  • layout.schema.json: allow labelTransform on a component.

/facetoface

Adds per-component `<rootNodeName>_label` nodes to left/right GLBs at
positions chosen to face outward from the controller surface, so
experiences can anchor tooltips/text to each button, trigger, squeeze,
thumbstick, and thumbrest.

- GLBs: embed `_label` empty nodes (local +Y outward) under each
  component's root subtree.
- profile.json: declare matching `labelTransform` overrides (position
  + quaternion in gltf.scene-local / grip space) so consumers who can't
  parse the GLB still get the placement.
- layout.schema.json: allow `labelTransform` on a component.
@AdaRoseCannon

Copy link
Copy Markdown
Member Author

A visual:
image

@AdaRoseCannon

Copy link
Copy Markdown
Member Author

@toji I've made a little tool so I can easily annotate every model and JSON, can you review this to make sure it is what you had in mind and if it is then I will do every single one.

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.

1 participant