Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Not all mipmap levels are generated for non-square images #31

Open
dherben opened this issue Nov 29, 2017 · 3 comments
Open

Not all mipmap levels are generated for non-square images #31

dherben opened this issue Nov 29, 2017 · 3 comments

Comments

@dherben
Copy link

dherben commented Nov 29, 2017

I'm using EtcTool to compress rectangular, power of 2 images (2048x1024) with mipmaps for use in WebGL. WebGL Refuses to load the textures when one of the mipmap-based minFilters is selected.

The generated KTX file contains mipmaps from 2048x1024 down to 2x1. WebGL seems to require a 1x1 mipmap.

I've changed this in my fork and the textures now load correctly. The changes are trivial. If there's any interest, I can try to create a pull request, although my open source contribution skills are rusty

@suikki
Copy link

suikki commented Nov 29, 2017

There is already a pull request for this (#29), but there hasn't been any activity on this project for some time so don't hold your breath.

@dherben
Copy link
Author

dherben commented Nov 30, 2017

Thanks, I missed that one. I'll just keep using my fork, then

@rtissera
Copy link

rtissera commented Nov 12, 2018

Bumping this one, merging the PR #29 would save people from maintaining forks.

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

No branches or pull requests

3 participants