Commit Graph

693 Commits

Author SHA1 Message Date
Schmarni
8747b139d3 Merge pull request #181 from PJB3005/25-03-17-fix-cascades-2
Fix directional light shadows
2025-03-20 10:44:21 +01:00
PJB3005
1957518b0f Fix directional light shadows: take two
This PR aims to do the same as #180, but hopefully without making future WebXR compat more annoying.

get_frustum_corners() is now implemented properly, directly from the projection matrix. I believe it should work with the existing OpenXR code, but I cannot test this with any WebXR implementations with "sheared projection matrices", because I am continuing to doubt whether that even exists.

I also added unit tests, which involved a decent amount of code shuffling regardless. The original implementation from #180 is left in as a control in the test code.
2025-03-18 00:44:28 +01:00
Schmarni
b1a55985c1 Merge pull request #177 from Schmarni-Dev/publish
update version numbers
2025-03-06 20:13:07 +01:00
Schmarni
472677435a update version numbers
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-03-06 06:41:57 +01:00
Schmarni
235bafac16 Merge pull request #176 from Schmarni-Dev/fix_3d_scene_example
fix 3d_scene example on runtimes that aren't WiVRn
2025-02-20 21:18:15 +01:00
Schmarni
463109aa12 fix 3d_scene example on runtimes that aren't WiVRn
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-02-20 21:16:29 +01:00
Schmarni
a1f2b3f517 Merge pull request #175 from Schmarni-Dev/session_restart_event
add XrSessionDestroyedEvent
2025-02-20 20:58:35 +01:00
Schmarni
010c1d8e16 feat: add XrSessionDestroyedEvent to allow crate consumers to react to the destruction to, for example, start another session
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-02-10 03:24:39 +01:00
Schmarni
23da8847f1 Merge pull request #174 from Schmarni-Dev/proper_wgpu_init
More correct wgpu init
2025-02-10 01:07:21 +01:00
Schmarni
4d11fa405a fix: do a more proper wgpu init, use adapter features and limits
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-02-09 03:47:46 +01:00
Schmarni
e8f46847bf Merge pull request #173 from Schmarni-Dev/create_views_in_created
init views in XrSessionCreated schedule and add wgpu feature
2025-02-05 19:45:45 +01:00
Schmarni
63f4592c93 add CLEAR_TEXTURE wgpu feature
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-02-05 19:15:03 +01:00
Schmarni
8a3719a019 use XrSessionCreated schedule to init the Views
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-02-05 19:00:00 +01:00
Piper
dcdf362efa Merge pull request #172 from awtterpip/update_camera_texture_view
Update camera texture view
2025-01-28 19:42:49 -06:00
awtterpip
0b61473f38 add option to auto spawn cameras 2025-01-28 12:08:46 -06:00
awtterpip
5f79f083bf auto update texture view 2025-01-28 12:03:50 -06:00
Schmarni
02ca015db9 Merge pull request #171 from Schmarni-Dev/pbr
only add systems that depend on pbr when the PbrPlugin is added
2025-01-17 06:14:27 +01:00
Schmarni
6d515f3ae9 only add systems that depend on pbr when the PbrPlugin is added
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-01-17 05:45:01 +01:00
Schmarni
40e9fed513 Merge pull request #170 from pdiaz/main
Ensure that it also works using Meta XR Simulator in macOS
2025-01-15 02:25:13 +01:00
Schmarni
fae2e8f6fd Merge pull request #168 from HammerCar/main
Update the Android example to use NativeActivity instead of GameActivity
2025-01-15 00:32:57 +01:00
Pedro Diaz
b40f788a41 Ensure that Bevy works using Meta XR Simulator in macOS when using a patched MoltenVK's SPIRV-Cross. 2025-01-14 23:25:11 +01:00
Schmarni
53f1a552fb Merge pull request #169 from Schmarni-Dev/wgpu_feature_fix
enable wgpu device feature needed for bevy
2025-01-13 13:00:28 +01:00
Teemu Rautavalta
6ce4b22b16 Update the Android example to use NativeActivity instead of GameActivity 2025-01-05 02:35:31 +02:00
Schmarni
5bdc675d06 add needed bevy feature and enable wgpu device feature needed for bevy
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-01-05 01:25:52 +01:00
Schmarni
3867e262b0 Merge pull request #167 from Schmarni-Dev/downgrade_to_oxr10
downgrade to the newest OpenXR 1.0 to accommodate legacy runtimes like SteamVR
2025-01-03 22:04:20 +01:00
Schmarni
cee1b92d50 downgrade to OpenXR 1.0 to accommodate legacy runtimes like SteamVR
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-01-03 21:59:20 +01:00
Schmarni
03a97f4c12 Merge pull request #163 from Schmarni-Dev/0.15rc
update to bevy 0.15
2025-01-01 22:37:46 +01:00
Schmarni
336c40d555 switch all spans to debug_spans
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-01-01 03:38:46 +01:00
Schmarni
7c57e8facd actually use the spans we create
Signed-off-by: Schmarni <marnistromer@gmail.com>
2025-01-01 03:36:56 +01:00
Schmarni
8042fbdc6a prevent crash that i can't explain when not using default plugins
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-29 23:26:06 +01:00
Schmarni
177da5c10d fix tracking_utils example
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-21 02:32:04 +01:00
Schmarni
869fd98d7f update hand gizmos to include the local axes
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-20 03:54:28 +01:00
Schmarni
f2706b1416 pull main branch
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-19 16:58:00 +01:00
Schmarni
901b9bc446 Merge pull request #166 from Schmarni-Dev/hand-hotfix
hand tracker spawn side hotfix
2024-12-14 02:03:51 +01:00
Schmarni
446c422e5d bump version for bevy_mod_xr hotfix
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-14 02:02:14 +01:00
Schmarni
361199e2c4 fix hand tracker spawn side bug
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-14 02:01:31 +01:00
Schmarni
6fcd75c671 pull main
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-14 00:04:12 +01:00
Schmarni
afd62b3cc3 Merge pull request #165 from Schmarni-Dev/0.1.0
0.1.0 release
2024-12-12 01:28:47 +01:00
Schmarni
8c5da2e505 bump version
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-11 23:07:25 +01:00
Schmarni
aa97263a52 Merge pull request #164 from awtterpip/remove_default_bindings
Remove default bindings
2024-12-04 22:57:51 +01:00
ForTehLose
5b7db58fe6 making controller actions fields pub so users can use them 2024-12-04 14:03:31 -05:00
ForTehLose
a260443a0d adding a missed change 2024-12-04 13:55:27 -05:00
ForTehLose
c0be012b9d moved default bindings for tracking utils into a pub function for prototyping, while I work on better solution 2024-12-04 13:51:43 -05:00
Schmarni
2c75a298a3 remove bevy rc workaround
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-01 23:20:23 +01:00
Schmarni
8e4d5d8dd0 update to bevy release, fix event support and update extension list
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-01 23:20:19 +01:00
Schmarni
307bba3323 more required components and other stuff
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-01 23:15:31 +01:00
Schmarni
a04ebb8426 add XrTracker component that auto parents the entity to the XrTrackingRoot, XrSpace requires XrTracker
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-01 23:15:31 +01:00
Schmarni
d1cc160cac only render hand gizmos if they are actively tracked
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-01 23:15:31 +01:00
Schmarni
4c415d066a remove XrCameraBundle, use required components and component hooks instead
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-01 23:15:31 +01:00
Schmarni
7320ae8dac update to bevy 0.15 rc
Signed-off-by: Schmarni <marnistromer@gmail.com>
2024-12-01 23:15:31 +01:00