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

Some weird lines with CRN files #1056

Open
illwieckz opened this issue Mar 7, 2024 · 2 comments
Open

Some weird lines with CRN files #1056

illwieckz opened this issue Mar 7, 2024 · 2 comments

Comments

@illwieckz
Copy link
Member

Reported on IRC today by @sweet235.

JPEG:

oIk

CRN:

Iju

I noticed it with other textures in the past, on my end the glitch changes with the distance.

The bug is there since years. I suspect a bug in the mipmapping code.

The mipmap images are already part of the CRN file. When I convert CRN to DDS with crunch (that I assume to only change the container, not recompress the file), and load the DDS in GIMP, I see no issue in the precomputed mip-map images. So I assume this is a bug in our renderer.

@VReaperV
Copy link
Contributor

Forcing a specific mipmap level (no interpolation) might help identify the issue.

@slipher
Copy link
Member

slipher commented Mar 31, 2024

Using Forlorn's floor texture as my testbed, I tried the 0.52.1 engine with recent assets and the bug was there. But 0.52.1 engine with 0.52.1 assets does not have the bug. So this suggests the possibility of an asset pipeline bug.

It does seem to be specific to certain mip levels. Setting various values of r_picmip or r_imageMaxDimension resulted in either the lines going away, or becoming bigger (due to lower resolution).

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

No branches or pull requests

3 participants