Tilengine doesn't like certain PNGs? - Printable Version +- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum) +-- Forum: English forums (http://tilengine.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (http://tilengine.org/forum/forumdisplay.php?fid=7) +--- Thread: Tilengine doesn't like certain PNGs? (/showthread.php?tid=150) |
Tilengine doesn't like certain PNGs? - Domarius - 08-08-2018 My level just displayed completely black - until I replaced the PNG of the tileset (tiles.png). The problem is definitely the PNG file, I think maybe related to the palette;
I've attached a zip of my map and tileset. Try placing it in the assets folder for the samples, and get one of the samples to load it, you'll see the blank screen instead. RE: Tilengine doesn't like certain PNGs? - greysonstorm - 08-08-2018 just checked your png, you didnt set it to indexed mode - try this one RE: Tilengine doesn't like certain PNGs? - megamarc - 08-09-2018 Greysonstorm is right, your png is 24-bit true color, whereas Tilengine accepts only 8-bit indexed color pngs. It's great that you provided the related assets, this way it's very easy to find the mistake. RE: Tilengine doesn't like certain PNGs? - Domarius - 08-20-2018 Ah, that is obvious now that it's mentioned... Thanks. |