22 Commits
Author SHA1 Message Date
daveyandCraig 0e3ced6f65 vr: follow the headset through GET_VIDEO_VIEWS_STATUS
A core learns about a headset only from the HMD status bit;
SET_VIDEO_VIEWS returning true means the map was accepted. The scene
walker now enters VR on the first frame with HMD, sends a TRACKED map
at the frontend's recommended eye size and goes flat with an empty map.

A video reinit restarts the headset session, and entering or leaving VR
changes the geometry, which reinits video. A lost headset is waited for
five seconds, repeating the last frame, before the core goes flat.
Input is still polled on those frames.

While VR is tracking, the map is sent every retro_run(), as libretro.h
asks: it covers state loads and run-ahead. The frontend writes the
recommended eye size back on each call, so a new size there is taken as
a resize, and the AV info is sent once for it. A frontend that reports
a headset but refuses the tracked map is not asked again until the
headset drops or the VR option is turned off.

Co-authored-by: Craig <[email protected]>
2026-10-12 05:25:22 -07:00
Craig Carnell b3aee0fe6e Add vulkan renderer 2026-10-06 09:12:16 +01:00
Craig Carnell 4ff056478c Add VR support to Android 2026-10-06 09:08:15 +01:00
twinaphex 096898054e Cleanups 2016-06-27 04:48:10 +02:00
twinaphex 8d86107d7e Cleanups 2016-06-27 04:44:11 +02:00
twinaphex 6918c9e36c Start using libretro-common/glsym 2016-06-27 04:08:42 +02:00
twinaphex 062cffac4b Cleanups 2016-06-27 03:33:25 +02:00
twinaphex 56f54eb5e9 (QNX) Fix build 2014-07-31 06:08:57 +02:00
twinaphex 4b9c742adf Replace instances of InstancingViewer with libretro 3Dengine in
copyright headers
2014-01-20 11:28:08 +01:00
twinaphex a140f237f0 Update copyright header 2014-01-20 11:22:43 +01:00
twinaphex f39feb90a7 Add location camera control to modelviewer as well 2014-01-13 16:33:41 +01:00
twinaphex 110c6b5b34 Split up collision detection code into separate file 2014-01-13 11:30:54 +01:00
twinaphex ad5dfe5b9e Turn Twiddle factor into macro 2014-01-13 11:06:51 +01:00
twinaphex b670028eb4 (NDK) Build fix 2014-01-13 02:09:18 +01:00
twinaphex b70d070098 (Modelviewer) Implement discard hack (for fixing Lightning model - maybe
others as well)
2014-01-13 02:03:46 +01:00
twinaphex f3ea976dba By press and holding Start and R2/L2/R3, can now add to lighting
position. Press and holding Start+Select and R2/L2/R3 will decrease
2014-01-12 22:51:22 +01:00
twinaphex 2ca3bf1e3a Add way to manipulate ambient lighting with Modelviewer - by
pressing L2/R2 and/or R3. Press and hold Select together with
these buttons to subtract instead of addition
2014-01-12 22:16:04 +01:00
twinaphex f7f7095cbc Set default lighting fix for Scenewalker 2014-01-12 21:30:57 +01:00
twinaphex 8ffee69600 - Loading a '.mtl' file will now load the SceneWalker (embedded
in program/modelviewer.cpp)
- Lighting fixed in ModelViewer - changed LightDir to LightPos
2014-01-12 20:40:27 +01:00
twinaphex ee2b2eb8ef context reset is now implemented by program engine too 2014-01-12 18:42:38 +01:00
twinaphex 08ec51243e engine programs now go through function pointer so we can switch
between programs on the fly
2014-01-12 18:17:50 +01:00
twinaphex 0148f13aef Turned modelviewer into separate program too - missing lighting
right now though - not sure why
2014-01-12 17:52:39 +01:00