From b08b6034ac55a142534708cf7ffef551df847d21 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Mar 2023 19:41:13 +0000 Subject: [PATCH 1/4] Add texture making documentation --- TEXTURES.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 TEXTURES.md diff --git a/TEXTURES.md b/TEXTURES.md new file mode 100644 index 000000000..3dd3f7e56 --- /dev/null +++ b/TEXTURES.md @@ -0,0 +1,57 @@ +#Making Textures In Mineclone2 + +Textures are a crucial asset for all items, nodes, and models in mineclone2. This document is for artist who would like to make and modify textures for mineclone2. While no means comprehensive, this document contains the basic important information for beginners to get started with texture curation and optimization. + +## Minetest Wiki +For more detailed information on creating and modifing texture packs for Minetest/Mineclone2, please visit the Minetest wiki's page on creating a texture pack. Click [here](https://wiki.minetest.net/Creating_texture_packs) to view the wiki page on creating texture packs. + +## GIMP Tutorials Pixel Art Guide +GIMP Tutorials has an excellent guide to making pixel art in GIMP. If you would like further clarification as well as screenshots for what we are about to cover, it is an excellent resource to turn to. Click [here](https://thegimptutorials.com/how-to-make-pixel-art/) to view the guide + +##Recommended Software + +###GIMP + +GIMP (Gnu Image Manipulation Program) is a very popular and free image editing software supported on Windows, MacOS, and most Linux distributions. It is recommended to use GIMP to create and modify textures within the minetest engine. + +Download GIMP [here](http://gimp.org/) + +#Getting Started +##Creating a new file +the first thing to do is open GIMP and create a new file to work in by opening the File menu and choosing New. + +Choose width of 16 and height of 16 for the image size. While higher resolution textures are possible, The default size is 16x16. It is recommended you use this size as well, as it is universally supported on all systems. + +##Zoom In +Next, you'll want to zoom in as the canvas is very small at the default zoom level. To do this either use CTRL + mousewheel, +/-, or navigate to the View menu > zoom > zoom in + +##Grid +Now, we'll want to turn on the grid. Open the edit menu and enable the 'show grid' option. + +The default grid size is 10 pixels, we want to change it to a 1 pixel grid. Go to the Image menu and choose 'configure grid. + +In the Spacing section, change both the Horizontal and Vertical pixel settings to 1.00 then click ok and the grid will update. + +##Pencil Tool & Color Picking +The most useful brush type for pixel art is the Pencil tool. Its nested under the paintbrush tool in the toolbox, or you can use the keyboard shortcut 'N'. + +Once the pencil tool is selected, navigate to the sliders on the left side of the canvas and change brush size to 1 pixel. + +Now choose a color! You can do this by clicking on the two colored squares under the toolbox. The Color Picker tool is also a good option if you already have a reference image for color palette. + +##How to export optimally + +Once you have finished up a texture and are ready to export it, navigate to the file menu > export as... and make sure the file name extention is .png + +After clicking 'Export', a menu will appear with a bunch of options checked. Make sure to uncheck all of these options!!! This will drastically reduce the file size from multiple kilobytes to a couple of hundred bytes. Finally click 'Export' one more time. + +###Further optimization +For those running a GNU/linux distribution, you most likely have the 'optipng command available to you. + +Open up the terminal in the directory where your exported texture is located, and run this command +``` +optipng -o7 *.png +``` +This will further optimize all the textures in the directory. + +NOTE: If you would like to further edit a texture that has been optipng'd in GIMP, you must manually set the color palette back to RBG after opening. Navigate to Image menu > Mode > select RGB From 4226b2a8badb9071b735d5e87b5ec7a030a216b5 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Mar 2023 19:55:00 +0000 Subject: [PATCH 2/4] Add link to optipng in textures.md and fix some formatting --- TEXTURES.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/TEXTURES.md b/TEXTURES.md index 3dd3f7e56..eecfed3b2 100644 --- a/TEXTURES.md +++ b/TEXTURES.md @@ -1,4 +1,4 @@ -#Making Textures In Mineclone2 +# Making Textures In Mineclone2 Textures are a crucial asset for all items, nodes, and models in mineclone2. This document is for artist who would like to make and modify textures for mineclone2. While no means comprehensive, this document contains the basic important information for beginners to get started with texture curation and optimization. @@ -8,47 +8,47 @@ For more detailed information on creating and modifing texture packs for Minetes ## GIMP Tutorials Pixel Art Guide GIMP Tutorials has an excellent guide to making pixel art in GIMP. If you would like further clarification as well as screenshots for what we are about to cover, it is an excellent resource to turn to. Click [here](https://thegimptutorials.com/how-to-make-pixel-art/) to view the guide -##Recommended Software +## Recommended Software -###GIMP +### GIMP GIMP (Gnu Image Manipulation Program) is a very popular and free image editing software supported on Windows, MacOS, and most Linux distributions. It is recommended to use GIMP to create and modify textures within the minetest engine. Download GIMP [here](http://gimp.org/) -#Getting Started -##Creating a new file +# Getting Started +## Creating a new file the first thing to do is open GIMP and create a new file to work in by opening the File menu and choosing New. Choose width of 16 and height of 16 for the image size. While higher resolution textures are possible, The default size is 16x16. It is recommended you use this size as well, as it is universally supported on all systems. -##Zoom In +## Zoom In Next, you'll want to zoom in as the canvas is very small at the default zoom level. To do this either use CTRL + mousewheel, +/-, or navigate to the View menu > zoom > zoom in -##Grid +## Configure Grid Now, we'll want to turn on the grid. Open the edit menu and enable the 'show grid' option. The default grid size is 10 pixels, we want to change it to a 1 pixel grid. Go to the Image menu and choose 'configure grid. In the Spacing section, change both the Horizontal and Vertical pixel settings to 1.00 then click ok and the grid will update. -##Pencil Tool & Color Picking +## Pencil Tool & Color Picking The most useful brush type for pixel art is the Pencil tool. Its nested under the paintbrush tool in the toolbox, or you can use the keyboard shortcut 'N'. Once the pencil tool is selected, navigate to the sliders on the left side of the canvas and change brush size to 1 pixel. Now choose a color! You can do this by clicking on the two colored squares under the toolbox. The Color Picker tool is also a good option if you already have a reference image for color palette. -##How to export optimally +## How to export optimally Once you have finished up a texture and are ready to export it, navigate to the file menu > export as... and make sure the file name extention is .png After clicking 'Export', a menu will appear with a bunch of options checked. Make sure to uncheck all of these options!!! This will drastically reduce the file size from multiple kilobytes to a couple of hundred bytes. Finally click 'Export' one more time. -###Further optimization -For those running a GNU/linux distribution, you most likely have the 'optipng command available to you. +###Further optimization with OptiPNG +For those running a GNU/linux distribution, you most likely have the 'optipng' command available to you. If it does not come with your system by default, the software homepage can be found [here](https://optipng.sourceforge.net/) where you can download and install from source. -Open up the terminal in the directory where your exported texture is located, and run this command +First, Open up the terminal in the directory where your exported texture is located (or navigate to the directory with the 'cd your/directory/path/to/textures'), then run this command ``` optipng -o7 *.png ``` From c3e37cb840341d9c7a4bb71a8f6a6555cd23dbe7 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sat, 25 Mar 2023 19:55:43 +0000 Subject: [PATCH 3/4] One more formatting adjust --- TEXTURES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TEXTURES.md b/TEXTURES.md index eecfed3b2..ec2507956 100644 --- a/TEXTURES.md +++ b/TEXTURES.md @@ -45,7 +45,7 @@ Once you have finished up a texture and are ready to export it, navigate to the After clicking 'Export', a menu will appear with a bunch of options checked. Make sure to uncheck all of these options!!! This will drastically reduce the file size from multiple kilobytes to a couple of hundred bytes. Finally click 'Export' one more time. -###Further optimization with OptiPNG +### Further optimization with OptiPNG For those running a GNU/linux distribution, you most likely have the 'optipng' command available to you. If it does not come with your system by default, the software homepage can be found [here](https://optipng.sourceforge.net/) where you can download and install from source. First, Open up the terminal in the directory where your exported texture is located (or navigate to the directory with the 'cd your/directory/path/to/textures'), then run this command From 8a1c885faf9e354879fe27ee2f387fb3a07bd124 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Sun, 26 Mar 2023 17:48:47 +0000 Subject: [PATCH 4/4] Update optipng command to ACFMS' recommendation --- TEXTURES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TEXTURES.md b/TEXTURES.md index ec2507956..1cf10641f 100644 --- a/TEXTURES.md +++ b/TEXTURES.md @@ -50,7 +50,7 @@ For those running a GNU/linux distribution, you most likely have the 'optipng' c First, Open up the terminal in the directory where your exported texture is located (or navigate to the directory with the 'cd your/directory/path/to/textures'), then run this command ``` -optipng -o7 *.png +optipng -o7 -zm1-9 -nc -clobber *.png ``` This will further optimize all the textures in the directory.