OSMeta icon indicating copy to clipboard operation
OSMeta copied to clipboard

VR

Open oli-obk opened this issue 2 years ago • 12 comments

we can use https://github.com/awtterpip/bevy_openxr, which should work on bevy 0.12 just fine

  • [x] start out with a system to pick VR/pancake at startup
  • [ ] hotswap between pancake and VR possible? if not, can we at least make it a runtime flag instead of a compile-time flag?

oli-obk avatar Nov 17 '23 14:11 oli-obk

pancake ? 2D map, "slippy map" ? Or non-VR 3D view on screens?

DerKarlos avatar Nov 18 '23 20:11 DerKarlos

yea "pancake" is a term from some VR game communities. Means regular 3D view with mouse and keyboard or gamepad controllers

oli-obk avatar Nov 18 '23 21:11 oli-obk

Can't build because the texture are not (not(target_os="macOS") '#' is my friend ;-)

[target.'cfg(not(target_os="macos"))'.dependencies] bevy_oxr = { git = "https://github.com/awtterpip/bevy_openxr", optional = true }

[features] #xr = ["dep:bevy_oxr"] #default = ["xr"]

DerKarlos avatar Nov 19 '23 19:11 DerKarlos

On Mac you need to build with cargo run --no-default-features

oli-obk avatar Nov 19 '23 19:11 oli-obk

I haven't figured out yet how to disable the feature automatically on mac

oli-obk avatar Nov 19 '23 19:11 oli-obk

How to tell that to the rust-analyser ?

DerKarlos avatar Nov 19 '23 19:11 DerKarlos

"rust-analyzer.cargo.noDefaultFeatures": true

oli-obk avatar Nov 19 '23 21:11 oli-obk

oh... but then we can't commit that... I'll give it another go to make it automatic

oli-obk avatar Nov 19 '23 21:11 oli-obk

https://github.com/DerKarlos/OSMeta/pull/14 should have fixed the issue for you

oli-obk avatar Nov 19 '23 23:11 oli-obk

This is "VR" native only, right? Or also Android?

More to do: Web, Apple - iOS/ipadPS, visualOS

DerKarlos avatar Dec 02 '23 09:12 DerKarlos

android is entirely broken right now, even without VR. I'll need to debug it. But first I need to try out bevy android examples that worked for others, and then see if I can get those to work for me. If they work, then I can see what I did wrong here.

oli-obk avatar Dec 02 '23 11:12 oli-obk

Let's make an Issue per OS

DerKarlos avatar Dec 02 '23 11:12 DerKarlos