bjorn
9fac40b073
Update LuaJIT;
...
Fixes potential ffi.load crashes.
2019-10-24 14:31:43 -07:00
bjorn
50279d1d9f
LOVR_USE_LUAJIT define is not used;
2019-10-22 20:21:41 -07:00
Bjorn
c42fb293e3
Merge pull request #162 from bjornbytes/rm-sse
...
rm LOVR_USE_SSE;
2019-10-22 17:49:07 -07:00
bjorn
b35ebc15b6
rm LOVR_USE_SSE;
...
It doesn't really improve performance on an average LÖVR app and
isn't worth the complexity.
2019-10-22 16:46:54 -07:00
bjorn
d51d2b4105
Fix stack balance with luax_checkvariant;
...
Was breaking Channel:push.
2019-10-22 16:42:10 -07:00
bjorn
b940f2d53f
Add AABB to OBJ models;
2019-10-21 17:46:28 -07:00
Bjorn
d7b3e1cf46
Merge pull request #160 from nevyn/fix/objc_msgsend_cast
...
Cast objc_msgSend before calling it
2019-10-15 13:12:19 -07:00
Bjorn
0bb3271bb5
Merge pull request #159 from nevyn/fake-controller-position
...
Desktop driver: Move left controller with mouse
2019-10-15 13:05:36 -07:00
Nevyn Bengtsson
ab6e4891e1
Cast objc_msgSend before calling it
...
Calling objc_msgSend with its vararg signature will only work most
of the time, and fail very weirdly when it doesn't. It's weird,
but you're supposed to always cast it to the signature of the
selector you're calling.
I think this is even required when building on Catalina, or for arm64?
2019-10-15 22:00:15 +02:00
Nevyn Bengtsson
e35a5435ca
update leftHandTransform in desktop_update
...
to be consistent with how headTransform is calculated.
also, rename ‘transform’ to ‘headTransform’ for consistency.
2019-10-15 21:50:28 +02:00
bjorn
4d2aa81647
Reset active texture in lovrGpuInit;
2019-10-15 11:34:49 -07:00
bjorn
4c03a2cd65
Update README;
2019-10-14 18:45:14 -07:00
bjorn
e32c3ea2df
v0.13.0;
2019-10-14 18:21:07 -07:00
bjorn
505d315c18
Tell GLFW to not change the working directory;
2019-10-14 16:10:48 -07:00
bjorn
25fa80f1d5
Fix comment;
2019-10-14 16:10:34 -07:00
bjorn
c8fd4d1f29
CMake: Add LOVR_BUILD_BUNDLE to build as .app on macOS;
2019-10-14 15:24:27 -07:00
bjorn
c3f91e9ff3
Actually fix/test the issue with .lovr files on macOS apps;
2019-10-14 15:24:02 -07:00
bjorn
f6cd8120ad
Add macOS bundle resources;
2019-10-14 15:23:46 -07:00
Nevyn Bengtsson
cb75b387e5
Desktop driver: Move left controller with mouse
2019-10-14 10:08:12 +02:00
bjorn
77258ec4dd
mat4 multiplication works with vec4;
2019-10-13 16:02:21 -07:00
bjorn
ac441ec15b
lovrGraphicsGetCamera;
2019-10-12 12:45:11 -07:00
bjorn
f0342341af
Fix quat:mul accidentally working on vec2/vec4;
2019-10-12 12:43:49 -07:00
bjorn
8c0ae3fbb3
More WebVR (controller) fixes;
2019-10-09 14:54:07 -07:00
bjorn
d8d07bfbe8
CMakeLists: Fix the order of words the;
2019-10-09 13:38:01 -07:00
bjorn
e9cec44298
Update emscripten compile flags;
...
- wasm is the default now
- -Os makes things way smaller
- rm unused mat4_translate function
2019-10-09 13:36:35 -07:00
bjorn
ac53f5a56f
Fix Collider:addShape and Collider:removeShape;
2019-10-08 15:45:53 -07:00
bjorn
6ef27ec7cc
Merge branch 'master' of github.com:bjornbytes/lovr
2019-10-08 15:29:04 -07:00
Bjorn
cac73705af
Merge pull request #156 from programmer02/world_collide_fix
...
Fix World:Collide to use new luax_checkshape
2019-10-08 15:18:34 -07:00
programmer2
ba0aa13835
Fix World:Collide to use new luax_checkshape
...
This appears to have been missed in commit 22fe333
2019-10-08 21:30:03 +02:00
bjorn
5f404e2b1f
WebVR fixes;
...
- Re-add the maf.c file that exports all the maf symbols.
- Fix lovrGpuTock for WebGL.
2019-10-07 19:50:17 -07:00
bjorn
0c642a6790
Improve mat4:unpack;
...
- Orientation is correct when the matrix is scaled
- Orientation calculation is more efficient
2019-10-04 19:26:09 -07:00
bjorn
eb83962fc6
OpenXR fixes;
2019-10-02 16:29:09 -07:00
bjorn
17dda66b69
boot.lua works without headset module;
2019-10-02 16:20:50 -07:00
bjorn
cc858e062c
Don't mind me;
2019-09-26 21:58:26 -07:00
Bjorn
c210d4e11d
Merge pull request #152 from bjornbytes/mac-bundle
...
Load .lovr files from the macOS app bundle;
2019-09-26 20:21:50 -07:00
bjorn
2e44926767
Cleanup;
2019-09-26 20:19:50 -07:00
bjorn
f4c6e9bd12
oculus_mobile: set error callback based on current coroutine;
...
Currently:
- load/update/run/etc. take place on the boot.lua coroutine.
- draw happens "asynchronously" on the main thread.
When C needs to throw an error, it doesn't know which thread to
throw the error on. If it throws it on the wrong thread, you get
a crash instead of an error screen.
One way to fix this is to change the error context based on the
thread that's currently running, so that errors in C are thrown
on the correct thread. This is the approach that's taken here.
A potentially better approach would be to run all the code on the
same thread, but I ran into issues when I tried to do this.
It may also be possible to (ab)use the Lua panic handler to catch
errors on one of the threads and somehow forward them to the other.
2019-09-26 18:46:19 -07:00
Bjorn
d23f2f5810
Merge pull request #151 from sophiabaldonado/oculus-mobile-fix-error-screen
...
Throw lua errors in the error handler
2019-09-26 18:44:05 -07:00
Bjorn
9d75c0472d
Merge pull request #153 from mcclure/oculus-mobile-vibrate
...
Vibrate function for Oculus Quest
2019-09-26 16:51:07 -07:00
mcc
dc92eb5c58
Oculus mobile vibrate() returns false on illicit second call; style changes
2019-09-26 19:32:12 -04:00
mcc
4a41f98562
Vibrate function for Oculus Quest, first pass
...
Only does "simple" vibrate (hard on/off). Supports duration but not frequency. Requires a corresponding commit in the lovr-oculus-mobile repo.
2019-09-26 18:40:04 -04:00
bjorn
0129a80b27
Load .lovr files from the macOS app bundle;
2019-09-24 21:37:44 -07:00
sophia
ef84a16716
Throw lua errors in the error handler;
2019-09-24 12:04:36 -07:00
bjorn
403b217781
Fix Model destructor memory issues;
...
- Memory leaks.
- Freeing things that weren't allocated.
2019-09-20 13:46:27 -07:00
bjorn
2c29119e44
Fix non-interpolated cubic spline keyframe evaluation;
2019-09-19 23:01:50 -07:00
bjorn
22beccedc3
Model:getAnimationDuration;
2019-09-19 19:21:31 -07:00
bjorn
1902787b1b
Modify GPU timer API;
...
- lovr.graphics.tock returns the latest value of the timer, or 0.
- Timers are not in the stats table anymore.
This is to prepare for an upcoming internal change that affects timers.
2019-09-18 18:21:38 -07:00
bjorn
e96c541244
Multithreaded builds on Windows; Formatting;
2019-09-18 16:12:08 -07:00
bjorn
f82bcb703b
Finalize skeletal input API;
2019-09-18 16:12:08 -07:00
bjorn
6c130ebd86
Fix warning;
2019-09-18 16:12:08 -07:00