Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALVR-OpenXR-Engine] Ask a question about black perspective #98

Open
geshijie123 opened this issue Sep 5, 2023 · 1 comment
Open

[ALVR-OpenXR-Engine] Ask a question about black perspective #98

geshijie123 opened this issue Sep 5, 2023 · 1 comment

Comments

@geshijie123
Copy link

First of all, I would like to thank all developers for their hard work.
I looked up the packaging logic of korejan/ALXR-nightly (github.com) , as well as the dependent ALVR project and ALXR engine code,
Found several ways, it seems that you can modify the perspective color.

  • ALVR-OpenXR-Engine project src/alxr_engine/options.h GetBackgroundClearColor (TransparentBlack, Black)
  • ALVR project alvr/experiments/graphics/src/ lib.rs execute_default_pass (load: Load Op :: Clear (Color :: Black))
  • ALVR project alvr/experiments/server _compositor/src/compositing.rs draw < 'a > (load: Lo a dOp :: Cle a r (Color :: BLACK))

I tried to modify these parameters from black to green, but there was no effect after re-compiling, the apk link streamvr is still black perspective.
So I thought it would be better to have a familiar developer tell me where to modify, or develop a custom option for users to modify themselves.
Thank you

@korejan
Copy link
Owner

korejan commented Sep 7, 2023

@geshijie123 hey, sorry the the project structure is a bit of mess at the moment, I will be doing a fairly major restructure in the near future to simplify things.

You can ignore the directory alvr/experiments this isn't relevant to alxr, I will delete this directory in the next couple of days. The only directory you need to look in is /alvr/openxr-client (and have synced up the submodule).

Are you trying to modify the passthrough modes? if so the shaders are in ALVR-OpenXR-Engine repo, passthroughBlend_frag.glsl/.hlsl passthroughMask_frag.glsl/.hlsl you'll need to be familiar with Vulkan at least. If you don't mind going to a NSFW site I would suggest reading through this (NSFW) thread where I have replied to a few things.

I'm currently focusing on redoing the passthrough modes and will be attempting to add client side UI for passthrough settings with real-time updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants