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

OB Camera multisampled FB blitting fix #4255

Merged
merged 1 commit into from
May 26, 2021
Merged

OB Camera multisampled FB blitting fix #4255

merged 1 commit into from
May 26, 2021

Conversation

keianhzo
Copy link
Contributor

@keianhzo keianhzo commented May 11, 2021

Closes #4232

OB Chromium FBs are multisampled by default and they don't allow blitting for multisampled FBs when regions differ. https://chromium.googlesource.com/chromium/src/gpu/+/master/command_buffer/service/gles2_cmd_decoder.cc#8899
We are using THREE.WebGLRenderTarget so the render buffer shouldn't be multisampled but for some reason they are still forcing it.

This PR avoiding blitting for OB and just flips the original camera render target pixels.

@takahirox
Copy link
Contributor

I think it would be better to ask Oculus Browser team about likely forced multisampling stuffs before going with this change.

@keianhzo
Copy link
Contributor Author

I agree, this was just a patch in case there wasn't a better short term alternative.

Copy link
Contributor

@brianpeiris brianpeiris left a comment

Choose a reason for hiding this comment

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

Just to put it in writing here. This looks good to me as long as we're reasonably sure that it doesn't introduce an additional performance penalty. If we can find a more generalized fix in the future, that would also be good, but it seems fine to ship this fix for now. We can always improve on it.

@keianhzo
Copy link
Contributor Author

Ok, I'm going to land this to get it fixed until we can update ThreeJS.

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

Successfully merging this pull request may close these issues.

Camera videos recorded in Oculus Browser are blank
3 participants