1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-15 10:13:34 +00:00
Commit graph

334 commits

Author SHA1 Message Date
bjornbytes 5bf174b37d Use enum for lovrHeadsetGetType; 2017-08-12 21:35:37 -07:00
bjornbytes b843fc3dbe Return proper headset name for OpenVR backend; 2017-08-12 21:13:57 -07:00
bjornbytes 3c3076f8c4 Fix VR rendering; 2017-08-12 20:43:23 -07:00
bjorn 0311232ae1 Add lovrModel and lovrView matrices; 2017-08-10 22:23:19 -07:00
bjorn 74f585ca8d Use lovrAssert and lovrThrow for better errors; 2017-08-10 01:05:04 -07:00
bjorn b65673bc3f Color object; 2017-08-08 01:33:52 -07:00
bjorn fb10cf6f2a Fix WebVR; 2017-08-06 23:58:14 -07:00
bjorn 9650524e53 Fix origin type boolean check; 2017-08-06 23:58:14 -07:00
bjorn 42a3444fd8 HeadsetOrigin; conf.headset.offset; 2017-08-06 23:58:14 -07:00
bjorn b5a58e31f1 Declare secret OpenVR functions; 2017-08-03 00:57:52 -07:00
bjorn 0e470a9088 Pass correct arguments to webvr sittingToStanding; 2017-07-31 02:42:00 -07:00
bjorn 39ba6d3f12 Add trigger ControllerButton; 2017-07-24 23:17:00 -07:00
bjorn f1141664b6 Mipmap generation; 2017-07-23 16:24:43 -07:00
bjorn 2a05fb4033 Refactor TextureFormat; 2017-07-23 16:24:43 -07:00
bjorn ca95fa0df0 Handle texture formats better; 2017-06-18 17:28:15 -07:00
bjorn 9428f9628e Fix dirtied sittingToStanding matrix; 2017-06-10 23:18:32 -07:00
bjorn bf555d558d Use default shader when drawing mirror texture; 2017-06-10 14:05:20 -07:00
bjorn 7b22a8fac3 Remove guard against null sittingToStanding matrix; 2017-05-06 16:26:52 -07:00
bjorn f9e2b1441e Support polyfill; 2017-04-23 16:02:08 -07:00
bjorn 4399a2feb8 rm bounds visibility functions;
Minor WebVR fixes.
2017-04-22 22:53:03 -07:00
bjorn c1afd6ca33 WebVR Controllers; 2017-04-22 18:20:12 -07:00
bjorn 95fb96ec2c Controller experiments; 2017-04-22 16:59:54 -07:00
bjorn 37479be4b0 Fix rendering coordinate system; 2017-04-22 10:50:12 -07:00
bjorn 520227aa87 Fix meshes; 2017-04-22 10:34:44 -07:00
bjorn 255dc5a43c Fix coordinate system; 2017-04-21 23:06:10 -07:00
bjorn 068784ef73 Add more to headset API; 2017-04-20 20:46:35 -07:00
bjorn 872ceb365d WIP; 2017-04-19 21:44:35 -07:00
bjorn 0f1acae42a WIP; 2017-04-16 16:56:49 -07:00
bjorn 9eb4d7b393 Move all window code into graphics module; 2017-04-12 19:48:47 -07:00
bjorn 0d552a0f0c Draw headset mirror with white color; 2017-04-02 11:14:25 -07:00
bjorn ac7a97fe77 Minor OpenVR render model cleanup; 2017-03-12 15:10:07 -07:00
bjorn c6b635a2ec rm lovr.graphics.setProjection; 2017-03-11 21:19:26 -08:00
bjorn f3dfbe518a Fix switch scope; 2017-03-11 21:10:13 -08:00
bjorn 49a0ba4d1c lovr.headset.isMirrored; lovr.headset.setMirrored;
Also add conf.lua field to configure initial mirroring state.
2017-03-11 19:12:03 -08:00
bjorn 0c6da83332 lovr.focus;
This may not work in all cases involving e.g. overlays.
2017-03-11 19:01:01 -08:00
bjorn f9f0773b92 lovr.controllerpressed; lovr.controllerreleased; 2017-03-11 18:46:07 -08:00
bjorn ad1706f2ba Rename vive to openvr; 2017-03-11 03:31:04 -08:00
bjorn b84f72f17e Rename vendor to lib; 2017-03-11 02:19:33 -08:00
bjorn b3009955f3 Fix texture resets again; 2017-03-04 00:18:59 -08:00
bjorn a932c4fec5 Fix Controller model freeing; 2017-02-26 23:52:40 -08:00
bjorn 2368f725a1 Fix OpenVR controller models; 2017-02-26 18:49:40 -08:00
bjorn 97ba379bd3 More Controller fixes; 2017-02-26 18:37:07 -08:00
bjorn f58e58d172 Improve headset safety; 2017-02-26 16:54:55 -08:00
bjorn 94af335225 Fix OpenVR texture reset yet again; 2017-02-26 16:33:20 -08:00
bjorn 9f351774d2 Fix vive state; 2017-02-20 01:21:58 -08:00
bjorn 686be658bf Simplify headset abstractions; 2017-02-19 15:49:39 -08:00
bjorn 6692734151 Move all OpenVR code into vive; 2017-02-19 14:59:53 -08:00
bjorn ea9f378850 Small VR rendering optimization; 2017-02-18 15:32:36 -08:00
bjorn aa470d6fab Fix vive rendering; 2017-02-17 00:48:43 -08:00
bjorn f80e3e5a13 More font rendering; 2017-02-09 21:06:07 -08:00
bjorn 6d55c51a3e Fix crash when SteamVR is missing; 2017-02-03 16:08:58 -08:00
bjorn 1714804651 Fix headset types; 2017-01-26 02:26:15 -08:00
bjorn e80f390151 Try #pragma once; 2017-01-26 02:21:56 -08:00
bjorn 3dee0b4782 lovr.headset.getEyePosition; HeadsetEye; 2017-01-22 21:20:34 -08:00
bjorn 492a75acba Properly destroy modules on exit; 2017-01-21 18:18:12 -08:00
bjorn 4303846eac Clean up includes; 2017-01-21 18:00:32 -08:00
bjorn 8a3d52b3c6 Cleanup ugh; 2017-01-20 19:55:54 -08:00
bjorn 3dbafc8214 Cleanup; 2017-01-20 18:39:48 -08:00
bjorn e8e2a99e5b Finish internal math library; 2017-01-20 18:39:46 -08:00
bjorn 797da11480 Headset mirror; 2017-01-14 21:57:28 -08:00
bjorn 4e97fec4eb Fix vive rendering; 2017-01-14 21:18:23 -08:00
bjorn 15ead25624 Headset uses Texture; 2017-01-14 21:08:47 -08:00
bjorn 59d1bb5ee9 MSAA Textures; Help; 2017-01-14 17:38:25 -08:00
bjorn 9e7e1a113f Formatting; 2017-01-11 20:32:11 -08:00
bjorn eba3996984 Improve CanvasState; 2017-01-11 20:26:08 -08:00
bjorn b05e2630dd CanvasState; 2017-01-11 09:25:43 -08:00
bjorn e73e3fc5c4 Update to OpenVR 1.0.5; 2017-01-07 09:55:20 -08:00
bjorn 276fe5ef91 Maybe fix vive controller buttons; 2016-12-03 22:22:33 -08:00
bjornbytes 054a672e43 Fix vibration; 2016-12-03 14:51:56 -08:00
bjorn fb472c4338 Fix controllers; 2016-12-03 12:08:34 -08:00
bjorn 8feba7342b Headset fixes; 2016-12-01 17:06:27 -08:00
bjorn b72b1b242b Improve controller detection; 2016-12-01 14:55:47 -08:00
bjorn 89f0d89223 Improve Controller detection; 2016-11-30 23:03:58 -08:00
bjorn b7d1b1e5dc Style; 2016-11-30 20:32:14 -08:00
bjorn 8252be04ed Refactor Headset; 2016-11-26 02:32:19 -08:00
bjorn c74da49a05 openvr.h; 2016-11-26 00:31:44 -08:00
bjorn 006221b7fd TextureData; 2016-11-25 23:54:45 -08:00
bjorn bd9fec011b headsetControllerGetModel; 2016-11-25 23:32:48 -08:00
bjorn 3d18eb99e6 Refactor model loader; 2016-11-25 23:15:04 -08:00
bjorn 316893d132 Start loaders directory; 2016-11-25 17:13:26 -08:00
bjorn 5d53cc7118 Progress on controller models; 2016-11-25 03:18:53 -08:00
bjorn 38379d44b4 Start Controller models; 2016-11-25 01:12:36 -08:00
bjorn 614d23198e Improve VR position tracking while rendering; 2016-11-24 16:23:13 -08:00
bjorn fc6fd738d2 Improve support for retrieving chaperone info; 2016-11-23 20:54:04 -08:00
bjorn a743cfd3b6 Initial reference counting system; 2016-11-19 13:33:40 -08:00
bjorn 7e4e9a6108 Clean up includes; 2016-11-19 01:28:01 -08:00
bjorn 42c1047b88 Fix small vive memory leak; 2016-11-18 01:28:40 -08:00
bjorn 3520fca758 Controller:isDown; 2016-11-14 19:57:23 -08:00
bjorn 8fe678b83a Internal Controller rename; 2016-11-14 19:47:24 -08:00
bjorn c358fac8c7 Controller:vibrate; 2016-11-14 19:33:42 -08:00
bjorn 14d29ca100 Controller:getAxis; 2016-11-14 16:22:28 -08:00
bjorn 40f7260dd3 Start controller input; 2016-11-14 16:05:55 -08:00
bjorn 3ef84510c9 Improve windows platform detection; 2016-11-14 00:02:21 -08:00
bjorn 811bf67071 Windows fixes; 2016-11-12 01:19:47 -08:00
bjorn b69a7be1ba Better malloc error handling; 2016-11-08 14:55:07 -08:00
bjorn 94a9c0e8cb lovrGraphicsTransform; 2016-11-01 20:48:04 -07:00
bjorn 9975e695dd Headset display dimensions; 2016-10-24 16:03:29 -07:00
bjorn 769ded9c71 Controller:getHand; 2016-10-24 15:52:16 -07:00
bjorn 2b11142970 Improve compilation UX; 2016-10-24 14:09:32 -07:00
bjorn 2267396e5a Render to window if headset unavailable; 2016-10-24 13:43:07 -07:00
bjorn 78f0c2d947 Clean up, clean up;
Everybody everywhere!
2016-10-04 15:13:57 -07:00
bjorn a2c51e17ab Fix vive orientation math; 2016-10-03 18:00:33 -07:00
bjorn d66e7c0d81 Improve vive orientation; 2016-10-03 17:02:01 -07:00
bjorn e6dcfad12d lovrHeadsetIsPresent returns char; 2016-10-03 11:40:20 -07:00
bjorn 2c7e03c0ed Better bools; 2016-10-03 11:26:54 -07:00
bjorn 2391185931 Controller:getOrientation; 2016-10-03 11:16:48 -07:00
bjorn c9f937ec19 Controller:getPosition; 2016-10-03 11:12:21 -07:00
bjorn b594b218b2 Controller:isPresent; 2016-10-03 11:12:06 -07:00
bjorn c56050ce92 Add viveGetPose; 2016-10-03 11:10:24 -07:00
bjorn 58a2d60ef7 Controller basics; 2016-10-02 18:09:33 -07:00
bjorn 814b62c323 Add missing interface definitions; 2016-10-01 18:09:18 -07:00
bjorn 7247c7f2ad Fix vive warnings; 2016-10-01 15:13:54 -07:00
bjorn d14bcfeea0 lovr.headset.setBoundsVisible; 2016-10-01 15:12:12 -07:00
bjorn d98cd40f49 lovr.headset.getTrackingSize; 2016-10-01 14:17:26 -07:00
bjorn 3444d6cb77 Headset organization; 2016-10-01 14:16:02 -07:00
bjorn 056efecc21 Add vrChaperone; 2016-09-29 23:54:38 -07:00
bjorn 8ab7c06612 Improve Vive rendering; 2016-09-29 00:21:38 -07:00
bjorn dba017c8df Fix windows; 2016-09-27 00:24:28 -07:00
bjorn 435d7a9cf8 Projection matrices; 2016-09-26 23:48:09 -07:00
bjorn f531be3fc5 Fix typo; 2016-09-26 19:56:17 -07:00
bjorn 5f7e335f27 Vive rendering; 2016-09-26 18:38:45 -07:00
bjorn 9ce7ba8c0a Fix pointer issue; 2016-09-24 22:38:48 -07:00
bjorn 2ad62e4890 Organization; 2016-09-17 14:25:08 -07:00
bjorn c85c82183f Include vive.h better; 2016-09-16 21:39:20 -07:00
bjorn 6c3b0abc0f Make Headset a generic interface; 2016-09-16 21:37:30 -07:00
bjorn 55f804de7a Vive API; 2016-09-16 19:43:43 -07:00
bjorn 09edcd19cb More headset functions; 2016-09-15 23:57:01 -07:00
bjorn 6091e5bb26 lovr.headset.getDisplayDimensions; 2016-09-14 21:42:38 -07:00
bjorn e24169bbe7 Rendering works; 2016-09-13 23:30:11 -07:00
bjorn 98994d52fb Basic VR rendering; 2016-09-13 17:02:23 -07:00
bjorn 4cd0bf06c8 Remove osvr; Use openvr; 2016-09-06 10:13:49 -07:00
bjorn d13cefdb9c Headset ready timeout; 2016-09-05 14:07:43 -07:00
bjorn 604c5bcbab Fix some headset issues; 2016-08-16 20:35:32 -07:00
bjorn dad98a3f75 Start lovr.headset; 2016-08-10 21:17:14 -07:00