I keep reading things that I want to remember later and so I’m going to use this page to save them.
• Textures & sprites and padding to avoid gaps between and jaggies on edges.
There are two primary issues.
- If you are using a tilemap, then you want the tiles to flow through to each other with no gaps.
–> Solution is to double the outer row of pixels in your image, all the way around.
- if you have a free floating sprite that is rotated, then the lack of edge aliasing on iPhone.
–> Solution is to put a row of transparent pixels as the outside edge of the texture content inside the texture rectangle, then double that on the outside if you are rotating them next to others.
Note that if you are using mip-maping you may need more than one row of padding (either outside or inside).