Loading...
 

Cutting graphics



Why do graphics need to be cut?link




The graphics system in Simutrans is based on tiles, in order for an image to be displayed correctly in-game, the source image needs to be divided into tiles depending on their intended position. Each tile is a square area with the following dimensions:

Pakset size Width in pixel Height in pixel
32  32  32
64  64  64
96  96  96
128  128  128
192  192  192



A building consists of ground-level tiles (blue) and up to 3 height-level tiles for each ground-level tile (red - 1 height).

The parts of the ground-level tile shown in green in the image to the right will not be visible in-game.

A building which only consists of a single ground-level tile does not need to be cut. Only when a building is made up from several ground-level tile is it necessary to cut the graphics.
File not found.




Top

Position of the image and its tileslink




The information in the graphics file correspond to the values of [B] [C] [D] of the BackImage parameter. Their relative ordering from top to bottom is given vertically.

File not found.

File not found.

File not found.

File not found.


File not found.

File not found.


other sizes can be found here


Top

How to do itlink



To help cut up an image according to these specifications, there is a Windows-program called TileCutter (German description only); under Linux TileCutter works well with Wine.

It will take 2x the original graphics, a target file and the appropriate interface mask.

File not found.

File not found.


File not found.


The next step is to mask the intersection of the two original images; with red and blue respectively being used as transparent.
File not found.


Then the partial images are copied into the target file.
File not found.


Finally, the red and blue of the mask as well as the tile backgrounds of the target file are filled with transparent color. The original image is also copied into the target file.

It is a very good idea to add a copyright notice to the target file. Then everyone knows by whom the picture is, even if the file name changes.
File not found.


Top



Rate this page:

Contributors to this page: Frank , IgorEliezer and system .
Page last modified on Wednesday May 10, 2017 22:32:04 GMT-0000 by Frank.

Online Users

11 online users

Newest Forum Posts

No records to display