Topic was automatically imported from the old Question2Answer platform.
Asked By
Zylann
Old Version
Published before Godot 3 was released.
Does Godot supports sprite contouring like Unity3D?
The idea is that instead of drawing transparent quads for sprites or tiles, visible pixels are mapped on a simple geometry reducing the amount of alpha to blend.
This is a great win on mobile devices.
Im not sure, you could try using Polygon 2D for sprites, and just mapping it out to be a simple outline? But besides that i dont quite understand what you mean by this
Mobile devices are slow when it comes to paint pixels on the screen. So the less pixels the application draws, the better. It becomes worse on tablets with giant resolutions.
In 2D, you are going to have a lot of images to draw. drawing a sprite actually means drawing a rectangle with a texture on it.
However, transparent textures include completely invisible pixels, but they are STILL pixels to draw. So the idea is to use a better geometry.
It’s possible to outline blank areas manually, but it’s a repetitive task, and I’m not even sure TileMap supports polygon nodes as tiles. And how would you animate that out of the box?
So if the engine can precalculate that outlining and do the work automatically, like Unity3D does, it would be both a performance gain and time saver.