libgdx texture filters and mipmap

后端 未结 4 1585
慢半拍i
慢半拍i 2021-01-12 05:34

When I try to use mipmap filtering in LibGDX, none of the images appear.

I\'m new to LibGDX, and I have a simple 2d scene with three rotating, scaled circles. In

4条回答
  •  轮回少年
    2021-01-12 06:14

    There can be multiple issues with your image:

    1. It should be power of 2, if you are using an image with size like 354X420, it won't work. In this case you need to take an image of 512X512 or any other power of 2.

    2. When you want to enable Mipmap filtering, then you need to enable it using boolean genMipMaps which tells libgdx whether to generate mapmaps.

提交回复
热议问题