Is there a technical reason why proper palette swapping is not possible?

0 favourites
  • 2 posts
From the Asset Store
Full game Construct 2 capx code source to post on Google Play
  • Does Construct 3 not support palette swapping in the traditional sense? It seems a bit baffling for a game engine not to support this, or am I missing something? I'm not talking about using the replace colour effect, which is both fiddly and expensive on cpu. Old games from 30 years ago did this effortlessly and the effect is still widely used in modern indies.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The hardware changing explains most of it. It went from everything having indexed palettes to full 24bit color.

    So now it’s usually faked with a shader. Replacing a color at a time is the most flexible albeit slowest way.

    Effects in construct only can utilize a subset of what can be done with shaders.

    The fastest way could be to to only make an images with red 0-255 and use an array uniform with the palette and just use the red as a lookup. It’s a bit tedious to create the art that way, and besides it’s not really feasible to modify the construct renderer to do that.

    Another way to fake it is by just duplicating sprites to have different colors. Yet another is make the sprites out of multiple parts and change the color of those as needed.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)