Bjorn
195966b964
Merge pull request #251 from jmiskovic/world-vectors
...
Physics world accepts both vec3 and number coords
2020-05-07 09:32:36 -07:00
Josip Miskovic
2463737722
Physics world accepts both vec3 and number coords
...
When creating colliders, setting gravity or casting rays on world,
arguments accept either coordinate numbers as before, or vec3 objects.
For functions that receive more than one set of coordinates, any
combination of coordinates and vectors is accepted.
2020-05-07 19:01:30 +03:00
Bjorn
33e7a31b36
Merge pull request #254 from gkrnours/webxr
...
Add webxr to CMake
2020-05-06 14:36:24 -07:00
l. coues
61e53f09ff
Add webxr to CMake
...
Default to off unless build with emscripten
2020-05-06 23:07:59 +02:00
bjorn
9ba814fe3f
omg;
2020-05-04 17:30:41 -06:00
bjorn
ed4b8d1f3d
rm unneeded internal Source functions;
...
Now that things are in the same file, setters for internal source
fields are unnecessary, making things a bit simpler.
2020-05-03 13:02:19 -06:00
bjorn
c455b0750e
rm unused Source functions from header;
2020-05-03 13:00:02 -06:00
bjorn
d847dd663a
rm unused audio headers;
2020-05-03 12:57:50 -06:00
bjorn
b9a2bddd25
Put all the audio stuff in one file;
...
If there was ever some sort of hypothetical switch to a different
audio library, this would make such a switch easier.
2020-05-03 12:54:35 -06:00
bjorn
b0289de9a6
Error instead of crashing when skin has too many joints;
...
ModelData is still allowed to load skins with more joints, since
the limitation is in the graphics side of things (Model).
Eventually we will use a buffer for joints to alleviate this.
2020-05-02 14:14:29 -06:00
bjorn
f160ed75e9
Update ode;
...
Enables libccd for better collision support.
2020-05-02 13:19:25 -06:00
bjorn
c0d73ab541
Add resize event; lovr.resize callback;
2020-05-02 13:09:10 -06:00
bjorn
b035f8e4dc
core/fs: Use DWORD instead of uint32_t in fs_read and fs_write;
...
Fixes a warning.
2020-04-30 16:53:10 -06:00
bjorn
ce2a28360d
Unconditionally cast ref to volatile long on win32;
...
This was originally a C++-only contribution, but clang also warns
about it on windows when compiling as C.
It's nice to have one less thing specific to C++.
2020-04-30 16:49:53 -06:00
bjorn
eea73792a6
Minor formatting;
2020-04-30 14:15:36 -06:00
Bjorn
f811be431f
Merge pull request #249 from jmiskovic/init-inertia
...
Initialize inertia information for new colliders
2020-04-30 11:46:32 -07:00
Josip Miskovic
097d39628a
Initialize inertia information for new colliders
...
Inertia matrix has to be calculated with algorithm specific for each
shape. Without calculated matrix the physics behaves very floaty and
slowed down.
2020-04-29 23:05:11 +03:00
Bjorn
8e13158148
Merge pull request #247 from jmiskovic/fix-orientation
...
Fix collider setOrientation() and setPose()
2020-04-28 11:33:24 -07:00
Josip Miskovic
a4b0d004a1
Fix collider setOrientation() and setPose()
...
The conversion from angle,ax,ay,az to quaternion is already done in
physics module.
2020-04-28 20:15:09 +03:00
bjorn
7d316d6218
Add internal filesystem module comment;
2020-04-22 01:47:16 -06:00
Bjorn
2635c6bb86
Merge pull request #243 from pendingchaos/depth_test_write_enable
...
Fix when depth test is disabled but depth write is enabled
2020-04-21 17:46:08 -06:00
pendingchaos
28a2e5fd4c
Fix when depth test is disabled but depth write is enabled
...
GL_DEPTH_TEST controls both whether depth testing and depth writes are
enabled. So if depth testing is disabled and depth writes are enabled,
GL_DEPTH_TEST has to be enabled and the compare mode should be GL_ALWAYS.
2020-04-21 23:39:16 +01:00
Bjorn
eb273cd416
Merge pull request #241 from mcclure/om-restart
...
Oculus mobile "restart cookie" support; lovr.event.restart() changes
2020-04-16 09:24:07 -06:00
mcc
b5e72d8bd9
Restart cookie minor changes for PR review
2020-04-16 10:57:13 -04:00
mcc
c32fbdd8fc
oculus mobile driver now supports restart cookie
2020-04-16 00:33:35 -04:00
mcc
fbcce7fc59
Reworked quit/restart events (compatibility break)
...
Based on Slack conversation, the following changes:
- lovr.event.quit("restart") no longer supported
- lovr.event.quit no longer takes restart "cookie"
- When lovr.event.restart() called, lovr.quit() is not called, instead lovr.restart() is called
- Value returned from lovr.restart(), when called, becomes the cookie
- lovr.event.quit takes the lovr.event.quit() return code as an argument
lovr.run() is unchanged, it still returns (exit code | "restart", cookie).
2020-04-16 00:32:54 -04:00
mcc
334077c9f8
Fix crash on lovr.event.quit("restart")
2020-04-15 17:59:25 -04:00
Bjorn
936766bd22
Merge pull request #240 from mcclure/quest-thumbstick
...
The Quest has thumbsticks, not touchpads
2020-04-15 15:30:14 -06:00
mcc
9f5fd60545
The Quest has thumbsticks, not touchpads. Fix constants.
2020-04-15 16:44:39 -04:00
Bjorn
eb0379522f
Merge pull request #238 from shakesoda/patch-2
...
implement haptics on oculus desktop
2020-04-12 17:20:13 -06:00
Colby Klein
34cef2673c
use clamp/max macros
2020-04-12 16:17:01 -07:00
Colby Klein
809d9b7385
ignore haptics for non-hands
...
seems a little strange that vibrating head or something would affect the right controller.
2020-04-12 16:12:06 -07:00
Colby Klein
14e79bf8ef
implement haptics on oculus
2020-04-12 16:02:59 -07:00
Bjorn
89e2e6df8e
Merge pull request #236 from mcclure/no-mat4-project
...
Kill mat4_transform_project
2020-04-05 18:07:56 -06:00
mcc
d8abfcfae3
Remove mat4_transform_project, it not only duplicates mat4_transform, it is buggy
2020-04-05 19:51:37 -04:00
Bjorn
64362a03c4
Merge pull request #234 from shakesoda/patch-1
...
update ovr driver to newer frame submission api
2020-04-02 23:42:30 -06:00
Colby Klein
077d90bc79
update ovr driver to newer frame submission api
...
as mentioned on slack.
there are some situations you can get into (high load in some place or other) where the newer frame submission api will behave much more consistently, and I've noticed no negative effects.
besides, the other one is deprecated as best i can tell.
2020-04-02 22:35:12 -07:00
bjorn
aed0499c5f
Add oculus_touch to action manifest;
2020-04-02 22:47:36 -06:00
bjorn
37d8df4784
Allow initializing empty TextureData with Blob;
2020-03-29 13:47:57 -06:00
bjorn
e553672b5a
Fix sampler uniform error message enum;
...
Surprisingly, this appears to be the only place reading out of enum
arrays like this, so there shouldn't be any other places to fix.
2020-03-14 16:46:35 -07:00
bjorn
6d0369d365
Convert some collider functions to use vectors;
2020-03-07 16:35:32 -08:00
bjorn
a01cc5a376
Fix lovr.graphics.getDefaultFilter;
2020-03-05 19:27:08 -08:00
bjorn
c02839f5c2
Allow anisotropy to be used with any TextureFilter;
...
Instead of anisotropic being its own filter, it is now removed and
anisotropy settings can be used with any of the other filter modes.
2020-03-05 09:46:49 -08:00
bjorn
6f6de92d19
Add preliminary WebXR backend;
2020-03-04 22:47:24 -08:00
bjorn
a18121b5ee
tup: fully support web builds;
2020-03-03 19:27:58 -08:00
bjorn
8dcc97745e
Tup: emscripten support; LuaJIT flag;
2020-03-02 23:06:42 -08:00
bjorn
9c044ee91a
CMake: Don't exclude Lua lib targets;
2020-03-02 22:24:14 -08:00
bjorn
45648baa1c
Scope a variable better;
2020-03-02 22:23:59 -08:00
bjorn
1d6b7619ea
oculus_mobile: Add handModels to bridge;
2020-03-01 18:08:59 -08:00
bjorn
0d098410b3
Shader:send doesn't error on unknown uniform;
...
Instead it returns a boolean indicating if the send worked.
2020-02-27 20:20:02 -08:00