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

24 bit depth format Feature request #420

Open
Mandelbrow opened this issue Jun 22, 2023 · 1 comment
Open

24 bit depth format Feature request #420

Mandelbrow opened this issue Jun 22, 2023 · 1 comment
Labels
feature request New feature or request

Comments

@Mandelbrow
Copy link

Is it possible to change the format of the depth buffer from what I believe is 16 bit to 24, or 32 bit for the rendering in the Cardboard SDK? Or make it an option to choose the size of the buffer for a project?

As for now meshes have a tendency to look wobbly when viewed at some distance.

@Mandelbrow Mandelbrow added the bug Something isn't working label Jun 22, 2023
@arilow arilow added feature request New feature or request and removed bug Something isn't working labels Jun 29, 2023
@arilow
Copy link

arilow commented Jun 29, 2023

Thanks @Mandelbrow for reaching out to us!

To track the possibility of having a way to modify the size of the depth buffer, an internal ticket has been created and will be prioritized along with other tickets in the backlog.

In the meantime, if you want to try this on your side, here is where the depth buffer size is set:

glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT16,
                          screen_width / 2, screen_height);

You can change GL_DEPTH_COMPONENT16 with another value.

After that is done, will need to follow the instructions in generate_gfx_plugin_cardboard_aar.md to generate a new aar file and add it to your project.

Bear in mind that we haven’t tested the library with different depth buffer sizes and issues may appear.

Feel free to ask any other question you might have about this topic.
Thanks!

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

No branches or pull requests

2 participants