Graphic Tools
Posted: Mon Oct 05, 2015 1:02 pm
Graphic Tools
written by Index, based on tutorials by Welf, =CuBe=, BeaR and deen
Some information in this topic is outdated.
The newer ddnet releases are directly bundled with a few useful tools for the same purposes as described here. Read more about this topic here: viewtopic.php?p=62171#p62171
However you can still use the following programs, nothing changed function-wise.
There are some helpful tools to fix minor issues with your own tileset and image quads, you can get the graphic tools package for different systems in the ddnet download section under 'Other Downloads' (https://ddnet.org/downloads/)
Extract the .zip-archive and simply drag and drop the *.png images on the exectuables, shown here with dilate.exe
dialte.exe will take care of transparent areas to prevent black/white outlines around your images ingame (blending + mipmap issues, http://wiki.polycount.com/wiki/Edge_padding . It should be used always after you have created a tileset or an image. If your graphics software has some plugins they can be used instead.
tileset_borderfix should be only used for tilesets and only applied once. Fixes similar blending issues caused by tilesets. (your input image should be 1024x1024)
tileset_borderadd is similar to borderfix, but usually produces better output images. As input it expects tilesets with a size of 960x960 with 60x60 tiles. After you apply the borderadd operation, the image will be 1024x1024 with 64x64 tiles with a 2px border. tileset_borderset does pretty much the same but expects 1024x1024 images and the border will be done in place. So each 60x60 tile should be places inside a 64x64 tile, a bit complicated I know :>
tileset_borderrem is the inverse operation of borderadd and borderset.Don't apply it the image, which are fixed by borderfix.
If it's an image apply dilate.
If it's a tileset apply borderfix, borderset or borderadd. I would suggest borderadd.
Another useful tool is the Image Extractor. As the name suggests, you can extract any embded tileset from a map and save them as a .png-file. The tool is coded by unsigned char*
written by Index, based on tutorials by Welf, =CuBe=, BeaR and deen
Some information in this topic is outdated.
The newer ddnet releases are directly bundled with a few useful tools for the same purposes as described here. Read more about this topic here: viewtopic.php?p=62171#p62171
However you can still use the following programs, nothing changed function-wise.
There are some helpful tools to fix minor issues with your own tileset and image quads, you can get the graphic tools package for different systems in the ddnet download section under 'Other Downloads' (https://ddnet.org/downloads/)
Extract the .zip-archive and simply drag and drop the *.png images on the exectuables, shown here with dilate.exe
dialte.exe will take care of transparent areas to prevent black/white outlines around your images ingame (blending + mipmap issues, http://wiki.polycount.com/wiki/Edge_padding . It should be used always after you have created a tileset or an image. If your graphics software has some plugins they can be used instead.
tileset_borderfix should be only used for tilesets and only applied once. Fixes similar blending issues caused by tilesets. (your input image should be 1024x1024)
tileset_borderadd is similar to borderfix, but usually produces better output images. As input it expects tilesets with a size of 960x960 with 60x60 tiles. After you apply the borderadd operation, the image will be 1024x1024 with 64x64 tiles with a 2px border. tileset_borderset does pretty much the same but expects 1024x1024 images and the border will be done in place. So each 60x60 tile should be places inside a 64x64 tile, a bit complicated I know :>
tileset_borderrem is the inverse operation of borderadd and borderset.Don't apply it the image, which are fixed by borderfix.
If it's an image apply dilate.
If it's a tileset apply borderfix, borderset or borderadd. I would suggest borderadd.
Always make a copy of your original images as it will be overwritten.
Another useful tool is the Image Extractor. As the name suggests, you can extract any embded tileset from a map and save them as a .png-file. The tool is coded by unsigned char*
sourcecode: https://gitlab.com/Tardo/TWMapImagesRecovery
There are some discussion regarding the licenese and proper cerdit of custom mapres, see more in this topic and search the forum. THere are many threads lel