Skip to content

[Question] Spacewarp Support #2200

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

Open
jwheeler-work opened this issue Apr 7, 2025 · 3 comments
Open

[Question] Spacewarp Support #2200

jwheeler-work opened this issue Apr 7, 2025 · 3 comments
Assignees
Labels
Android Android platform enhancement New feature or request

Comments

@jwheeler-work
Copy link

AVPro Video Version

3.2.4

Which platform is your question for?

Android

Your question

I'm curious about support for this new feature: https://docs.unity3d.com/6000.1/Documentation/Manual/xr-graphics-spacewarp.html

My main concern is the changes required for shaders and motion vectors. This may cause problems for video playback, especially in 180 or 360 videos.

It can be disabled at runtime, so bypassing is an option. If that's the recommendation, it would be good to note it in the documentation.

@jwheeler-work jwheeler-work added question Further information is requested triage Needs triage labels Apr 7, 2025
@Chris-RH Chris-RH added enhancement New feature or request Android Android platform and removed question Further information is requested triage Needs triage labels Apr 8, 2025
@Chris-RH
Copy link
Contributor

Chris-RH commented Apr 8, 2025

Its something that we can definitely investigate in the future.

Let us know if you try it out and have any issues with AVPro Video :)

@jwheeler-dev
Copy link

I'm not obviously seeing any issues, but I'm concerned that interpolation to double the framerate isn't helpful when quality of video is our main goal.

I'll be experimenting with simply turning it off for out movie player scene, which looks like it can be done easily enough.

To turn spacewarp on, call the SpacewarpFeature.SetSpacewarp function defined in the [SpacewarpFeature example script](https://docs.unity3d.com/6000.1/Documentation/Manual/xr-graphics-spacewarp.html#spacewarp-feature-code). Pass true to enable spacewarp and false to turn it off.

@MorrisRH
Copy link
Contributor

We've not added support to our shaders for spacewarp so objects using them would be not warped when spacewarp is active. If you're using one of the standard URP shaders (such as Unlit) with the texture from the video player then they would be warped which might lead to some artefacts in the final output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android platform enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants