Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Clean up unused WebVR Foveated-Rendering code. (fixes #1275) #1304

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

daoshengmu
Copy link
Contributor

We understand WebVR Foveated-Rendering will be impossible to do in FxR, it has to be in GV. Let's clean up them.

@daoshengmu daoshengmu self-assigned this Jun 6, 2019
@MortimerGoro
Copy link
Contributor

MortimerGoro commented Jun 6, 2019

If we implement straight WebVR render to Oculus swapChain, wouldn't it be required to set WebVR foveated in FxR?

@daoshengmu
Copy link
Contributor Author

We will use the setting in FxR, then asking WebGL to bind a foveated-rendering format color texture to WebGL's framebuffer.

@bluemarvin
Copy link
Contributor

@MortimerGoro It isn't clear how we will handle WebVR since it looks like we can use the OGL extension to do it our selves in WebGL. I would rather not have this in the API if it doesn't actually do anything right now. Once we have a better understanding of how we will enable it for WebVR we can then create an API that makes sense then.

@MortimerGoro
Copy link
Contributor

Ok, sounds good

@@ -716,8 +715,6 @@ struct DeviceDelegateOculusVR::State {
}
if (renderMode == device::RenderMode::StandAlone) {
vrapi_SetPropertyInt(&java, VRAPI_FOVEATION_LEVEL, standaloneFoveatedLevel);
} else {
vrapi_SetPropertyInt(&java, VRAPI_FOVEATION_LEVEL, immersiveFoveatedLevel);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should disable foveated here, otherwise both Gecko and FxR foveated can be applied together here (if foveated is enabled for standalone)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. I would like to make both of immersive and standalone mode use the same standaloneFoveatedLevel in OVR for now. I guess when we are ready doing it in GV::WebGL, we would disable foveated here and ask WebGL's framebuffer generate a foveated texture to us according to this standaloneFoveatedLevel.

Copy link
Contributor

@MortimerGoro MortimerGoro Jun 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, it makes sense

@@ -716,8 +715,6 @@ struct DeviceDelegateOculusVR::State {
}
if (renderMode == device::RenderMode::StandAlone) {
vrapi_SetPropertyInt(&java, VRAPI_FOVEATION_LEVEL, standaloneFoveatedLevel);
} else {
vrapi_SetPropertyInt(&java, VRAPI_FOVEATION_LEVEL, immersiveFoveatedLevel);
Copy link
Contributor

@MortimerGoro MortimerGoro Jun 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, it makes sense

@bluemarvin bluemarvin merged commit 15cf22a into master Jun 11, 2019
@bluemarvin bluemarvin deleted the cleanupWebVRFVR branch June 12, 2019 23:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants