VR input integration and mapping #68995

Open
opened 2019-08-21 16:21:11 +02:00 by Dalai Felinto · 7 comments

The following lists a number of higher level related questions that have to be figured out.

How to implement support for operators, tools and gizmos for VR interaction?
Currently, operators, tools and gizmos assume a 2D based interaction. Adding a third dimension is not trivial and we need to think about how to do this best. Possible solutions:

  • Add an invoke_3d() and/or modal_3d() callback to operators. Downside is that C-defined operators need this callback to be implemented in C too, it can’t just be implemented in Python.
  • Add wrapper operators (possibly in Python) which only call the wrapped operators to apply the operation. May not work well with modal operators and Python wrappers are limited by the Python API capabilities.

How will picking with controllers work?
When users point into the VR-space with a controller, we need to figure out what it is pointed at.
Note: We can probably fake some picking feedback while no operations are invoked, i.e. we can draw a little dot on surfaces the controller points at with help of the depth buffer of the current frame.

How should the abstract VR actions (like “Teleport”) be implemented in our event system?
There’s a good chance we’ll offload VR rendering onto a separate thread with its own main-loop. Should we query and handle actions there, separate from the usual event system?
Also, some information we’d want to update for every frame, e.g. the controller position and rotation. So this is not event driven like the rest of Blender. How can this information be dispatched to modal operators (e.g. so that the transform tool keeps updating the object position as the controller moves).

How to implement 2D elements for 3D?
For VR GUIs, we’d want to display quite a few 2D elements in the VR space. For example pie menus, popups and all kinds of regular widgets (checkboxes, number buttons, etc.). Of course, they’d have to be interactive, too.
It may also be useful to allow displaying any editor of Blender as floating plane in the 3D environment and allowing interaction with controllers.
Note that this should never be the prominanting way to interact with the Blender UI in VR. It’s just something that can be implemented without too much trouble while being useful to workaround limitations of the VR UI, without having to take off the HMD. The exception, not the rule.

The following lists a number of higher level related questions that have to be figured out. **How to implement support for operators, tools and gizmos for VR interaction?** Currently, operators, tools and gizmos assume a 2D based interaction. Adding a third dimension is not trivial and we need to think about how to do this best. Possible solutions: * Add an `invoke_3d()` and/or `modal_3d()` callback to operators. Downside is that C-defined operators need this callback to be implemented in C too, it can’t just be implemented in Python. * Add wrapper operators (possibly in Python) which only call the wrapped operators to apply the operation. May not work well with modal operators and Python wrappers are limited by the Python API capabilities. **How will picking with controllers work?** When users point into the VR-space with a controller, we need to figure out what it is pointed at. Note: We can probably fake some picking feedback while no operations are invoked, i.e. we can draw a little dot on surfaces the controller points at with help of the depth buffer of the current frame. **How should the abstract VR actions (like “Teleport”) be implemented in our event system?** There’s a good chance we’ll offload VR rendering onto a separate thread with its own main-loop. Should we query and handle actions there, separate from the usual event system? Also, some information we’d want to update for every frame, e.g. the controller position and rotation. So this is not event driven like the rest of Blender. How can this information be dispatched to modal operators (e.g. so that the transform tool keeps updating the object position as the controller moves). **How to implement 2D elements for 3D?** For VR GUIs, we’d want to display quite a few 2D elements in the VR space. For example pie menus, popups and all kinds of regular widgets (checkboxes, number buttons, etc.). Of course, they’d have to be interactive, too. It may also be useful to allow displaying any editor of Blender as floating plane in the 3D environment and allowing interaction with controllers. Note that this should never be the prominanting way to interact with the Blender UI in VR. It’s just something that can be implemented without too much trouble while being useful to workaround limitations of the VR UI, without having to take off the HMD. The exception, not the rule.
Author
Owner

Added subscribers: @dfelinto, @JulianEisel

Added subscribers: @dfelinto, @JulianEisel

Added subscriber: @SimeonConzendorf

Added subscriber: @SimeonConzendorf
Member

Added subscriber: @oenvoyage

Added subscriber: @oenvoyage

Added subscriber: @RainerTrummer

Added subscriber: @RainerTrummer

Added subscriber: @wakin

Added subscriber: @wakin

Added subscriber: @Somnolent

Added subscriber: @Somnolent

Added subscriber: @Sj

Added subscriber: @Sj
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:15:21 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#68995
No description provided.