Commit Graph

13 Commits

Author SHA1 Message Date
af549fa0a9 Fix various UI messages. 2020-09-21 15:18:30 +02:00
1346083086 VR Scene Inspection: Better way to calculate landmark angle from viewer
When using the "Add VR Landmark from Session" operator, we want to
calculate an angle around the Z-axis for the landmark to use as
ground-aligned base rotation. The former way to calculate this was
rather primitive and broke easily (angle would point in the opposite
direction).
Now we project the camera direction onto the ground plane to get the
angle. This should be a very reliable way to do it.
2020-09-02 22:04:18 +02:00
9adfdc2300 Cleanup: Typos & co in UI messages. 2020-08-04 13:27:17 +02:00
25b00a0a52 VR Scene Inspection: Bump version number to 0.9
For the final 2.90 release this should go up to 1.0, but not doing that
yet as we may have to do some fixes still.
2020-07-22 14:11:56 +02:00
362200bfee VR Scene Inspection: Various fixes and cleanups for preview changes
Besides minor tweaks:
* Always use selected, not active landmark for editing operators
* Fix failure when trying to access non-existant scene camera or custom
  base pose camera
* More consistent naming and descriptions
2020-07-22 14:11:56 +02:00
fe21f93ae9 VR Scene-Inspection: Extend Landmarks feature set
* Enable custom poses for landmarks (so they don't require adding a new
  camera).
* New landmark operators, available in Sidebar menu:
** "Add VR Landmark from Selected Camera"
** "Update Custom Landmark" (updates landmark to match current VR viewer
   pose)
** "Cursor to VR Landmark"
** "Active Camera to Landmark"
** "New Camera from Landmark"
* "Show Landmarks" option, adding gizmos as landmark indicators to 3D
  Views.

This should make the landmarks more practical.

Patch by Sebastian Koenig, with some smaller edits.
Followup commits will do further edits.

Part of T71347.
2020-07-22 14:11:56 +02:00
099e4eeb7b VR Scene Inspection: Show note if built without WITH_XR_OPENXR
Otherwise the Add-on causes no visible changes, which can be confusing.
Especially since the flag is disabled by default on macOS.
2020-07-20 20:45:04 +02:00
5d33d1a1c2 Merge branch 'blender-v2.83-release' 2020-05-29 21:07:09 +02:00
f5edd05a3b Update add-ons for new version numbers
Ref T76058
2020-05-29 21:03:58 +02:00
82f1a7bd4c VR Scene Inspection: Force reset of pose offsets when changing landmark
See fee440bec8.
2020-04-29 13:53:33 +02:00
136030c956 VR Scene Inspection: Tweaks to panel layouts
* Use different, more clear icon for activating a landmark
* Update layout to work better with recent layout changes in master
* Add warning regarding performance impact of viewport feedback options
2020-04-22 13:36:04 +02:00
9a32e84135 VR Scene Inspection: Add manual link and increase version number 2020-03-31 17:21:46 +02:00
636b4ca23d VR: New "VR Scene Inspection" Add-on
This add-on adds a basic UI for managing the new VR features to the sidebar, in
a new "VR" tab.

Features:
* Buttons to control general VR session settings (e.g. toggle session,
  positional tracking)
* Options for viewport clipping and overlay toggles
* Landmarks - VR base pose management:
** Each landmark can either follow the scene camera or use a custom camera.
** Differentiates between active and selected landmarks. That way landmark
   settings can be changed without changing the current reference pose.
** Stored per scene
* Virtual camera gizmo (non-interactive) to show the current VR viewer position
  and rotation in regular 3D Views
* Per 3D View feedback options:
** Virtual camera gizmo
** VR mirror (3D View follows VR view position and rotation)

Differential Revision: https://developer.blender.org/D7100
2020-03-17 20:51:00 +01:00