1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-04 13:33:34 +00:00
lovr/etc
bjorn 6e018b8c96 Replace HeadsetOrigin with 'seated' flag;
Origin type used to be a query-able property of the VR system that
indicated whether the tracking was roomscale or seated-scale.

The t.headset.offset config value could be used to design an
origin-agnostic experience, which by default shifted content up 1.7
meters when tracking was seated-scale.  That way, stuff rendered at
y=1.7m was always at "eye level".  It worked pretty well.

It's getting replaced with a t.headset.seated flag.

- If seated is false (the default), the origin of the coordinate space
  will be on the floor, enabling the y=1.7m eye level paradigm.  If
  tracking is not roomscale, a floor offset of 1.7m will be emulated.
- If seated is true, the origin of the coordinate space will be y=0
  at eye level (where the headset was when the app started).  This is
  the case on both roomscale and seated-scale tracking.

So basically 'seated' is an opt-in preference for where the app wants
its vertical origin to be.

One advantage of this is that it's possible to consistently get a y=0
eye level coordinate space, which was not possible before.  This makes
it easier to design simpler experiences that only need to render a
floating UI and don't want to render a full environment or deal with
offsetting everything relative to a 'floor'.  This also makes it easier
to implement hybrid VR+flatscreen experiences, because the camera is at
y=0 when the headset module is disabled.

The opt-in nature of the flag, coupled with the fact that it is
consistent across all types of tracking and hardware, is hopefully a
more useful design.
2023-06-28 16:38:36 -07:00
..
shaders Add GL_EXT_samplerless_texture_functions; 2023-06-24 14:00:22 -07:00
Activity.java rm oculus openxr loader; 2023-05-10 18:14:09 +01:00
AndroidManifest.xml Cleanup; 2023-01-30 19:44:23 -08:00
AppRun mv resources etc; 2022-03-30 12:34:34 -07:00
boot.lua Update error screen; 2023-05-12 17:16:22 +01:00
Info.plist v0.16.0; 2022-10-15 21:49:25 -07:00
logo.svg mv resources etc; 2022-03-30 12:34:34 -07:00
lovr.desktop mv resources etc; 2022-03-30 12:34:34 -07:00
lovr.html mv resources etc; 2022-03-30 12:34:34 -07:00
lovr.icns mv resources etc; 2022-03-30 12:34:34 -07:00
lovr.ico mv resources etc; 2022-03-30 12:34:34 -07:00
lovr.rc mv resources etc; 2022-03-30 12:34:34 -07:00
lovrc.bat CMake: Windows includes lovrc.bat in builds; 2022-12-30 21:20:27 -08:00
monkey.glb Compress monkey more; 2022-12-29 20:33:49 -08:00
monkey.h Compress monkey more; 2022-12-29 20:33:49 -08:00
monkeycrush.lua Fix monkeycrush index; 2022-12-29 20:33:49 -08:00
nogame.lua nogame: quit on escape; 2023-05-12 14:30:47 +01:00
shaders.h Pass rework; 2023-05-02 00:06:01 -07:00
VarelaRound.ttf mv resources etc; 2022-03-30 12:34:34 -07:00
webxr.js Replace HeadsetOrigin with 'seated' flag; 2023-06-28 16:38:36 -07:00