SyntaxTerror
Content Creator
- Joined
- Jul 24, 2014
How to make a PNG background (static)
Tutorial and tools
Tutorial and tools
This tutorial shows how to make a static PNG background for Vanilla or the Loader using an image and Paint.net.
Check also my SWF Background Tutorial (requires a Flash editor). With some knowledge of Flash, you may extrapolate and make HD (16/9) static backgrounds, and/or animated backgrounds using animated GIFs or even your own animations with classic/motion/shape tweens.
It is quite difficult to make a background with a realistic perspective, especially if you do not design one specifically for SDT. I will show you how to quickly make one with little effort:
You need a basic knowledge in image editing and paint.net to do this. It is a free/open source program, available in many languages and you can download it from this page: www.getpaint.net/download.html
Minimum System:
Paint.NET will automatically run in 64-bit mode if possible. You must have a 64-bit capable CPU and an x64 edition of Windows.
Paint.NET uses your hard drive to store temporary files related to undo/redo history. Because of this, actual disk space requirements will depend on the actions you perform on an image, and on the size of the image.
Paint.NET does not work on Windows RT.
- Windows 7 SP1 or newer (including Windows 8, 8.1, and 8.1 Update 1)
- 1GHz processor (dual-core recommended)
- 1GB of RAM
Paint.NET will automatically run in 64-bit mode if possible. You must have a 64-bit capable CPU and an x64 edition of Windows.
Paint.NET uses your hard drive to store temporary files related to undo/redo history. Because of this, actual disk space requirements will depend on the actions you perform on an image, and on the size of the image.
Paint.NET does not work on Windows RT.
A perspective grid exists (made by Maineim):
But it can be really helpful only if you draw the background yourself.
It still gives a good idea of the perspective you must have on the image or photo you are going to use. Actually, after you've tried a few times, you'll see by yourself if an image is good or not to make a background. Basically, you need a flat surface in the bottom to place his/her feet and that the horizon line is somewhere between the middle and the third quarter of the image.
Now the only thing you need is a background image, you have to do some research, especially if you want a drawn image: you can find millions of photos of everything, but the images are rarer.
There are several possibilities:
- Google images: lists almost all the images of the Web, the main problem is to find the right words to search... You can also sort the images by size, colour, type, etc.
- Imageboards like Gelbooru, Danbooru or Rule #34 (more in the Reference Shot Guide).
- DeviantArt: has many images, try to add "background" or "scenery" and "manga" or "anime" to your search to find images more suitable for SDT.
- If they exist, dedicated wikis can also have some good material sometimes.
- Own screenshots: you can use images from animated movies or cartoons you will play on your computer. You need to pause the movie and press the "Print Screen" button, then open Paint.net and paste the screenshot (using CTRL+V for example).
If the resolution is not good or if the image has compression artifacts (very common on JPGs that have been resized), you can try to use waifu2x, an online tool that can remove compression artifacts on images up to 3000x3000 px, and resize images smaller than 1500x1500 px up to 2 times. It is way better than resizing with a graphic editor, because the pixels aren't simply enlarged: the image is redrawn with new lines. Nevertheless, low resolution images that are very pixelated won't look really better, lines will look crenellated if they are enlarged too much.
ModGuy made a wonderful tool (that bugs a little...) to preview backgrounds directly on your computer : Preview Window (click to download).
The tool is a little buggy, and it is sometimes difficult to grab its window. To pin it with DeskPins, it is best to do it on the Desktop.
When you have found a good image, the real work begins:
- Launch Paint.net.
- Open the image you want to use, Select all (CTRL+A) or the part you want to use if it is a screenshot, and Copy it (CTRL+C).
- Download and open the Background Template.pdn.
- At the bottom right of this Background Template.pdn, in the Layers window, select the Background layer.
- Paste your image (CTRL+V) and choose Keep canvas size (the second option).
- Now you can see how it will appear in-game. You can move and resize your selection to find the best position (keep Shift pressed to keep proportions).
What will be seen in-game is the bottom of the image if you zoom out and the top if you zoom in. - When it seems to be good, hide or delete the Foreground layer in the Layer window.
- Save as the background under PNG format (not PDN, it is not a format that SDT can read).
Now you can try it, and if it looks good, don't hesitate to show un what you have made in a thread in the Backgrounds section, and eventually upload it on our Ressource Manager.
Last edited: