bjorn
95635b4b02
Support loading 16 bit images;
...
With 1, 2, or 4 channels;
2020-05-10 02:35:45 -06:00
bjorn
6539bc1bd2
Make physics orientation getters more consistent;
2020-05-10 02:08:36 -06:00
Bjorn
62fbf7e0e3
Merge pull request #257 from jmiskovic/physics-vectors
...
Physics API support for vectors
2020-05-10 01:04:23 -07:00
bjorn
1e78ac8669
Add r16, rg16, rgba16 texture formats;
2020-05-10 01:59:58 -06:00
Josip Miskovic
e2d1b33eed
Shapes API accepts both vec3 and number coords
2020-05-10 01:12:45 +03:00
bjorn
0be36da334
Add beacon devices;
...
There are 4 new devices: beacon/1 through beacon/4. They represent
tracking reference like StemaVR base stations or Oculus cameras.
There are 4 because that's how many base stations you can have in
a single tracking setup.
Right now only OpenVR exposes poses for them.
2020-05-07 17:11:25 -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
c0d73ab541
Add resize event; lovr.resize callback;
2020-05-02 13:09:10 -06:00
bjorn
eea73792a6
Minor formatting;
2020-04-30 14:15:36 -06: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
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
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
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
mcc
9f5fd60545
The Quest has thumbsticks, not touchpads. Fix constants.
2020-04-15 16:44:39 -04: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
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
37d8df4784
Allow initializing empty TextureData with Blob;
2020-03-29 13:47:57 -06: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
8dcc97745e
Tup: emscripten support; LuaJIT flag;
2020-03-02 23:06:42 -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
90b605f012
Add restart cookie; lovr.event.restart; arg.restart;
2020-02-26 14:40:40 -08:00
bjorn
69dd0d4674
audio: rm paused and stopped states; rm rewind;
...
- There is now just one "playing" state.
- Instead of rewind, use :seek(0).
Note that now there is no way to resume or rewind all tracked sources.
This can be improved in the future if there's a need for it, probably
using variadic or table-based variants of the audio module functions.
2020-02-26 00:25:49 -08:00
bjorn
fa771b04bd
Fix CMake;
2020-02-23 01:01:34 -08:00
bjorn
f8b8d427d7
Opaque Mesh; Opaque OpenGL;
2020-02-23 00:29:21 -08:00
bjorn
aabb8cb830
Opaque Shader;
2020-02-23 00:29:21 -08:00
bjorn
d034e8c01b
Opaque Canvas;
2020-02-23 00:29:21 -08:00
bjorn
52d4f7e520
Opaque Texture;
2020-02-23 00:29:21 -08:00
bjorn
b045d42782
Opaque Buffer;
2020-02-23 00:29:21 -08:00
bjorn
5d8bf1d45a
Fix Source:setLooping assert;
2020-02-22 01:01:17 -08:00
bjorn
93d556b603
zip: read compressed size from central directory;
...
Some zip writers do not write the compressed size to the local file
headers.
2020-02-21 15:44:48 -08:00
bjorn
81f4232da5
opengl: Init compareMode for native textures;
2020-02-19 15:34:32 -08:00
Bjorn
98d2cc6cd4
Merge pull request #227 from mcclure/no-post-distortion
...
Instead of showing post-distortion in Oculus mirror, show the left eye (no stereo)
2020-02-17 18:02:47 -08:00
bjorn
aa0e01ddab
Cleanup;
2020-02-17 17:27:57 -08:00
bjorn
bfdebffb34
Fix volume textures;
2020-02-17 17:27:57 -08:00
mcc
c22c55865a
Instead of showing post-distortion in Oculus mirror, show the left eye (no stereo)
2020-02-17 17:43:47 -05:00
mcc
7db4e4976b
Fix compile warnings (MSVC2019)
2020-02-17 17:42:13 -05:00
bjorn
47f4319ba8
core/png; rm stb_image_write;
2020-02-16 04:11:55 -08:00
bjorn
2db1f2b743
Fix erroneous GLES enables;
...
None of these exist in OpenGL ES. These were throwing seemingly
innocuous GL errors, so this is mostly just a matter of correctness.
2020-02-16 01:23:27 -08:00
bjorn
d2f4628791
Add pointer devices;
2020-02-14 19:10:37 -08:00