minetest_modding_book/_en/items/creating_textures.md

83 lines
2.5 KiB
Markdown
Raw Normal View History

2015-04-07 20:39:10 +03:00
---
title: Creating Textures
layout: default
2018-07-15 21:36:35 +03:00
root: ../..
2018-07-15 17:28:10 +03:00
idx: 2.2
description: An introduction to making textures in your editor of choice, an a guide on GIMP.
2018-07-15 21:13:16 +03:00
redirect_from: /en/chapters/creating_textures.html
2015-04-07 20:39:10 +03:00
---
## Introduction
2018-09-27 18:37:53 +03:00
Being able to create and optimise textures is a very useful skill when
developing for Minetest.
There are many techniques relevant to working on pixel art textures,
and understanding these techniques will greatly improve
the quality of the textures you create.
2015-04-07 20:39:10 +03:00
2018-09-27 18:37:53 +03:00
* [Learning to Draw](#learning-to-draw)
2017-09-16 05:07:20 +03:00
* [Techniques](#techniques)
* [Editors](#editors)
2015-04-07 20:39:10 +03:00
2018-09-27 18:37:53 +03:00
## Learning to Draw
2015-04-07 20:39:10 +03:00
2018-09-27 18:37:53 +03:00
Teaching how to draw good pixel art is out of scope of this book.
* [16×16 Pixel Art Tutorial on photonstorm.com](http://www.photonstorm.com/art/tutorials-art/16x16-pixel-art-tutorial)
2015-04-07 20:39:10 +03:00
2017-09-16 05:07:20 +03:00
## Techniques
2015-04-07 20:39:10 +03:00
2017-09-16 05:07:20 +03:00
### Using the Pencil
2015-04-07 20:39:10 +03:00
2017-09-16 05:07:20 +03:00
The pencil tool is available in most editors. When set to its lowest size,
it allows you to edit one pixel at a time without changing any other parts
of the image. By manipulating the pixels one at a time, you create clear
and sharp textures without unnecessary blurring. It also gives you a high
level of precision and control.
### Tiling
Textures used for nodes should generally be designed to tile. This means
when you place multiple nodes with the same texture together, the edges line
2018-09-27 18:37:53 +03:00
up correctly.
2017-09-16 05:07:20 +03:00
2018-09-27 18:37:53 +03:00
<!-- IMAGE NEEDED - cobblestone that tiles correctly -->
2017-09-16 05:07:20 +03:00
If you fail to match the edges correctly, the result is far less pleasing
2018-09-27 18:37:53 +03:00
to look at.
2017-09-16 05:07:20 +03:00
2018-09-27 18:37:53 +03:00
<!-- IMAGE NEEDED - node that doesn't tile correctly -->
2017-09-16 05:07:20 +03:00
### Transparency
Transparency is important when designing textures for special nodes,
such as glass or water, which players should be able to see through,
and for craft item textures.
It's important to remember that not all editors support transparency,
so make sure you choose an editor which is suitable for the textures
you wish to create.
## Editors
### MS Paint
MS Paint is a simple editor which can be useful for basic texture
design; however, it does not support transparency.
This usually won't matter when making textures for the sides of nodes,
but if you need transparency in your textures you should choose a
different editor.
### GIMP
2015-04-07 20:39:10 +03:00
GIMP is commonly used in the Minetest community. It has quite a high
2017-09-16 05:07:20 +03:00
learning curve because many of its features are not immediately
obvious.
2015-04-07 20:39:10 +03:00
2017-09-16 05:07:20 +03:00
When using GIMP, the pencil tool can be selected from the Toolbox:
2015-04-07 20:39:10 +03:00
<figure>
2018-07-15 21:36:35 +03:00
<img src="{{ page.root }}//static/pixel_art_gimp_pencil.png" alt="Pencil in GIMP">
2015-04-07 20:39:10 +03:00
</figure>
2018-09-27 18:37:53 +03:00
It's also advisable to select the Hard edge checkbox for the eraser tool.