with zoom, some sprites partially disappear

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lucasfazzi

So, I have this sprite, but with some zoom on window size, it partially disappear;

The original is like this:

original image

And with zoom is:

zooming

How is the best way to correct this? Thanks

:bust_in_silhouette: Reply From: eons

The only way to correct that is to design the images and the zoom to prevent it.

The problem is that the lines are too thin and zooming out these get smaller than a pixel, so is impossible to draw.

So, design objects with lines that can have a 1 pixel width on the max possible zoom, or create your own LoD-like system and replace the small elements with lower resolution but bigger lines when zooming (is not easy, you need to design the game thinking on that, but maybe with a smart use of signals it can be made with little modifications).