The sprite sheet in this example has the following properties: To reduce the RAM usage, other strategies must be employed. The PNG file size is reduced, but the amount of RAM required remains the same (width * height * 4 bytes). IMPORTANT: Switching from PNG-32 to PNG-8 does not reduce the amount of RAM required to display the images. When using this mode, TexturePacker automatically enables the Dithering setting, which can help reduce banding artifacts in gradients. PNG-8, also known as indexed PNG, reduces the number of colors from 16.777.216 to 256 by selecting the most relevant colors. It also allows you to set Transparency Handling: Reduce Border Artifacts, which can help prevent rendering issues at the borders of sprites. This mode is useful if you want the best possible image quality at the expense of a larger file size. Images in this format can use the full range of 16.777.216 colors and do not change any pixels or reduce the number of colors. PNG-32 is a lossless format, which means it retains the same quality as the original sprite images. The options range from 0 (no optimization) to 7 (maximum optimization), with higher levels offering better compression but potentially longer processing times.īy adjusting these settings, you can fine-tune the balance between file size, image quality, and processing time for your sprite sheets. PngOptLevel: This setting controls the level of optimization applied to the PNG file.PngQuantLow produces the smallest file size but may result in visible color artifacts, while PngQuantHigh offers the best color accuracy but may result in a larger file size. The options are PngQuantLow, PngQuantMedium, and PngQuantHigh, which represent different levels of color accuracy. Dithering (PNG-8 only): This setting determines how colors are approximated when reducing the number of colors in the image.PNG-32 provides higher quality but is also larger in size, while PNG-8 (indexed) offers a smaller file size but may sacrifice some image quality. TextureFormat: This setting allows you to choose between two different PNG formats: PNG-32 and PNG-8 (indexed).To use this feature, you can adjust the following settings in TexturePacker: TexturePacker provides a built-in, state-of-the-art PNG compressor that can be used to optimize your sprite sheets without the need for additional tools or services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |