*.gih

GIMP 图像管道格式。Krita 不但可以打开和保存这种文件,还可以在 预制形状笔刷选项卡 处导入它们。

图像管道的意思是这种文件格式允许你保存多张图像,并通过一些选项来规定如何输出这几个图像。

../../_images/Gih-examples.png

从上到下:增量、压力和随机模式

Dimension and ranks.

The GIMP image hose format allows multiple dimensions for a given brush. You could for example have a dimension that updates incrementally, and one that updates on pressure, or updates randomly. Upon export, Krita will use the ranks to subdivide the layers per dimension. If you have a 24 layer image and three ranks, and the first dimension is set to 2, the second to 4 and the third to 3, then Krita will divide 24 into 2 groups of 12, each of which have unique images for the 2 parts of the first dimension. Then those 2 groups of 12 get divided into 8 groups of 4, each of which have unique brush tips for the four parts of the second dimension, and finally, the grouped three images have each a unique brush for the final dimension.

So, the following image has a table where dimension 1 is unique in one of 4 numbers, while dimension 2 is unique in one of 3 shapes. So our ranks for dimension 1 and dimension 2 need to be 4 and 3 respectively. Now, to order the layers, you need to subdivide the table first by the first dimension, and then by the second. So we end up with three layers each for a shape in the second dimension but for the first number, then another three layers, each for a shape, but then for the second number, and so forth.

../../_images/gih_multi_dimension_explaination.png

See the GIMP documentation for a more thorough explanation.

GIMP image hose format options:

常量

在任何情况下均使用第一张图像。

增量

按图层顺序依次绘制各个图像。可以用几个图像配合创造出一组图案。

压力

按压力绘制图像,适用于模拟真实笔刷刷毛的笔刷图案。

随机

随机绘制图像。适合用于快速绘制一组图像集合和生成材质。配合图形符号使用更佳。

角度

使用拖动的角度来决定绘制的图像。

When exporting a Krita file as a .gih, you will also get the option to set the default spacing, the option to set the name (very important for looking it up in the UI) and the ability to choose whether or not to generate the mask from the colors.

把颜色用作蒙版

该选项把图像的最黑值视作绘制区域,把最白值视作透明区域。如果你要把彩色图像用作笔刷,则取消勾选此项。

We have a Krita Brush tip page on how to create your own GIH brush.