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

[Vulkan] GenerateMipmaps generates strange mipmaps #346

Open
Doom2fan opened this issue Jan 20, 2021 · 3 comments
Open

[Vulkan] GenerateMipmaps generates strange mipmaps #346

Doom2fan opened this issue Jan 20, 2021 · 3 comments

Comments

@Doom2fan
Copy link
Contributor

Doom2fan commented Jan 20, 2021

GraphicsDevice.GenerateMipmaps doesn't seem to be working too well.
It looks as if it's trying to use the first mip level to generate all the mip levels, which is incorrect and leads to heavy aliasing in the mipmaps themselves.

OpenGL's mipmaps seem correct, and I can't check this with D3D11 on my engine, due to this issue and this other issue in Veldrid.SPIRV. I'll try to make a simple, isolated test sample for this issue ASAP.

@Doom2fan
Copy link
Contributor Author

Here's a hacked up test for this issue. It's hacked onto NeoDemo. This is what it should look like:
image

@Doom2fan
Copy link
Contributor Author

This is, indeed, caused by incorrectly using the first mip level as the source of all the other mip levels. I've made a PR (#349) that fixes this and issue #347.

@Doom2fan
Copy link
Contributor Author

This can be closed now that #349 was merged.

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 a pull request may close this issue.

1 participant