Graphic tint on terrain

Place to get help with not working mods / modding interface.
Post Reply
evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Graphic tint on terrain

Post by evildogbot100 »

Hello, is it possible to use tint for terrain graphics? To reduce atlas as well as file size.

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Graphic tint on terrain

Post by posila »

evildogbot100 wrote:Hello, is it possible to use tint for terrain graphics? To reduce atlas as well as file size.
Hi, currently it is not possible, because I encoded coordinates of alpha masks into color channel.
But it will be possible sometime in future (hopefully 0.17). I would like to have even more complex color transformations for terrain graphics then just tint, but that will be driven mainly by requirements from our artists.

evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: Graphic tint on terrain

Post by evildogbot100 »

How about decoratives?

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Graphic tint on terrain

Post by posila »

Decoratives can be tinted through regular "tint" property in sprite definition in prototype.

User avatar
Earendel
Factorio Staff
Factorio Staff
Posts: 711
Joined: Sun Nov 23, 2014 11:57 am
Contact:

Re: Graphic tint on terrain

Post by Earendel »

posila wrote:
evildogbot100 wrote:Hello, is it possible to use tint for terrain graphics? To reduce atlas as well as file size.
Hi, currently it is not possible, because I encoded coordinates of alpha masks into color channel.
But it will be possible sometime in future (hopefully 0.17). I would like to have even more complex color transformations for terrain graphics then just tint, but that will be driven mainly by requirements from our artists.
I've started hitting the 255 tile limit in the alien biomes mod. If tile tints, or whatever the recoloring is, could be influenced by noise layers or dimensions, that would be an amazing benefit because the color changes could have smooth transitions over a large distances without increasing the number of tiles required for any tile color variations. It would be great if that were also a lua API tile property so things pollution could affect tile color over time.

Post Reply

Return to “Modding help”