Difference between revisions of "Creating texture packs"

From Luanti Wiki
Jump to navigation Jump to search
m (Fixed wrong link formatting.)
m (added link; reformatting)
Line 1: Line 1:
Texture packs are a simple folder containing image files named after the default ones.
+
[[Texture Packs|Texture packs]] are a simple folder containing image files named after the default ones.
  
 
The easiest way to create a texture pack is to copy the files from [http://github.com/minetest/minetest_game minetest_game] to get the file names of all the default textures.
 
The easiest way to create a texture pack is to copy the files from [http://github.com/minetest/minetest_game minetest_game] to get the file names of all the default textures.
Line 5: Line 5:
 
Create a new folder to hold your new texture pack.
 
Create a new folder to hold your new texture pack.
  
Under Windows, browse to your Minetest folder, enter the games/minetest_game folder, then hit Ctrl+F to invoke the search function. In the search box, enter "*.png" (without the quotes) to find all the image files (or directly use the "Images" option in the search page).
+
Under Windows, browse to your Minetest folder, enter the games/minetest_game folder, then hit <kbd>Ctrl</kbd>+<kbd>F</kbd> to invoke the search function. In the search box, enter *.png” to find all the image files (or directly use the “Images” option in the search page).
  
Under Linux, it's better to use the terminal. These commands should do the job:
+
Under Linux, it’s better to use the terminal. These commands should do the job:
  
    $ TP_NAME=your-pack-name
+
$ TP_NAME=your-pack-name
    $ cd ~/your/path/to/minetest
+
$ cd ~/your/path/to/minetest
    $ mkdir textures/$TP_NAME
+
$ mkdir textures/$TP_NAME
    $ find games/minetest_game/ -name '*.png' -exec cp '{}' "textures/$TP_NAME" ';'
+
$ find games/minetest_game/ -name '*.png' -exec cp '{}' "textures/$TP_NAME" ';'
  
Next, open your favorite image editor and edit the images in your texture pack folder, or create the images from scratch and save them over the original files. Any image editor that supports transparecy (also called "alpha" or "mask") should be OK.
+
Next, open your favorite image editor and edit the images in your texture pack folder, or create the images from scratch and save them over the original files. Any image editor that supports transparency (also called “alpha” or “mask”) should be OK.
  
The textures may be any size, but square images whose size is a power of 2 (16x16, 32x32, 64x64, 128x128, etc) is preferred.
+
The textures may be any size, but square images whose size is a power of 2 (16×16, 32×32, 64×64, 128×128, etc.) is preferred.
  
Once you are finished creating your pack, compress the folder (not only the files inside) in a ZIP archive, upload to the web] ([http://mediafire.com Mediafire] and [http://dropbox.com Dropbox] are popular choices), and post your abbouncement to the [https://forum.minetest.net/viewforum.php?id=4 Texture Packs forum].
+
Once you are finished creating your pack, compress the folder (not only the files inside) in a Zip archive, upload to the Web] ([http://mediafire.com Mediafire] and [http://dropbox.com Dropbox] are popular choices), and post your announcement to the [https://forum.minetest.net/viewforum.php?id=4 Texture Packs forum].

Revision as of 06:26, 2 October 2013

Texture packs are a simple folder containing image files named after the default ones.

The easiest way to create a texture pack is to copy the files from minetest_game to get the file names of all the default textures.

Create a new folder to hold your new texture pack.

Under Windows, browse to your Minetest folder, enter the games/minetest_game folder, then hit Ctrl+F to invoke the search function. In the search box, enter “*.png” to find all the image files (or directly use the “Images” option in the search page).

Under Linux, it’s better to use the terminal. These commands should do the job:

$ TP_NAME=your-pack-name
$ cd ~/your/path/to/minetest
$ mkdir textures/$TP_NAME
$ find games/minetest_game/ -name '*.png' -exec cp '{}' "textures/$TP_NAME" ';'

Next, open your favorite image editor and edit the images in your texture pack folder, or create the images from scratch and save them over the original files. Any image editor that supports transparency (also called “alpha” or “mask”) should be OK.

The textures may be any size, but square images whose size is a power of 2 (16×16, 32×32, 64×64, 128×128, etc.) is preferred.

Once you are finished creating your pack, compress the folder (not only the files inside) in a Zip archive, upload to the Web] (Mediafire and Dropbox are popular choices), and post your announcement to the Texture Packs forum.