Questions tagged [palette]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
1 answer
265 views

Re-coloring PNG images with an indexed palette

I'm creating some images for an existing game that allows for custom content. I have a large collection of PNG images with indexed colors (all using the same palette). I would like to be able to go ...
Andrew's user avatar
  • 161
3 votes
1 answer
1k views

How can I build an accurate 15-bit Highcolor RGB palette

I want to recreate an accurate version of a 15-bit RGB color palette (PC Highcolor, SNES, Playstation 1), storing each color from the palette as a standard 6 digit hex code. With each color component ...
baseten's user avatar
  • 171
0 votes
1 answer
55 views

Palette Swapping in Allegro 5

I am trying to do a palette swap in Allegro 5. I have not found any way to do this from my research. So what I've thought of doing is to do it myself by setting individual pixels. I also haven't found ...
Will's user avatar
  • 1
0 votes
1 answer
110 views

What is the name for the technique to use different palettes for different tiles of a screen?

I've found the keywords "subpalette" and "PPU palette", but they seem to be NES-specific. Though the idea of using a small palettes table and use 2 bits per pixel in an image (+ ...
Charlie's user avatar
  • 113
1 vote
0 answers
1k views

How to fix pink tiles when there is a problem with the Shader?

Because of some dumb mistake I did fifth time, I had to repaint my level in my 2D game. The problem is that the tiles I use from the Tile Palette turn into pink ...
padawan's user avatar
  • 233
0 votes
1 answer
860 views

Unable to edit tile sizes in unity

I'm trying to change the size of sprites in unity to fit the palette. Except there are no options to change multiple sprite sizes at once. But when I watched a youtube video on tilemaps and palettes, ...
River's user avatar
  • 3
1 vote
2 answers
535 views

Creating palette from irregular sprites in Unity

I want to create a palette based on a number of PNGs in Unity 2D. I am struggling to understand the slicing logic. Let's say I have a sprite 588x547, and I set PPU to 128. So obviously the sprite ...
Maxim Zabolotskikh's user avatar
4 votes
2 answers
4k views

How to make a palette swap shader that works withn non-pixel art sprites?

I´m trying to build a tool inside Unity that allows our artists to create different color palettes for our characters. The big problem is that since every single sprite is hand-drawn and hand-...
Francisco M.'s user avatar
1 vote
2 answers
3k views

Flipping Textures in Modern OpenGL

How do I flip a texture in modern OpenGL (3.1+)? This is the unflipped render, keep in mind it is drawn with 8x8 tiles from a texture atlas, so I edited green squares below him into the image to ...
Accumulator's user avatar
5 votes
1 answer
2k views

How did the SNES handle palettes of multiple sprites?

(This is assuming all graphics are stored in 4 bpp) I understand that the SNES has a 256 color palette split into 16 palettes (each with 16 colors), and 8 of these represent palettes usable by ...
user3124047's user avatar
4 votes
1 answer
294 views

2D Map Editor Tiles Palette - Best suited Java Elements to use?

I'm making a 2D RTS Map Editor and here came the moment to make a Palette which is just a popup frame showing tiles to be clicked on and then applied on the map. I'm wondering which Java Elements to ...
Jean Henry's user avatar
4 votes
2 answers
4k views

Palette reduction to pre-defined palette

I'm writing a bunch of GLSL effects for fun, but I can't wrap my head around this. Basically, I want to reduce a texture's palette into a pre-defined set of colors. For example, a post-processing ...
manabreak's user avatar
  • 1,048
2 votes
1 answer
1k views

Directx 11: emulating palette swapping with shader 5.0 and c++

i'm trying to swapping the colors using a texture as index and a second one as palette. Here is the full listing of the code: ...
BRICK's user avatar
  • 31
1 vote
2 answers
194 views

Encode world matrix as 2 float4s?

On one of the slides of their presentation "Batch, Batch, Batch!" guys from NVidia suggest encoding animation matrices for pallet skinning into two float4s as: • axis/angle • translate/...
cubrman's user avatar
  • 1,551
2 votes
1 answer
803 views

Libgdx Palette Swap

I'm developing a game using the Libgdx library. I'm trying to implement a very simple palette swap functionality (basically just complete recolouring of some areas, I don't even need to have various ...
Haedrian's user avatar
  • 207
3 votes
2 answers
3k views

Implementing a color picker [closed]

I'm making a paint program using applets in Java, and I want to create some sort of color palette where the colors blend into each other, similar to this: However, I'm having trouble understanding ...
kikiotsuka's user avatar
1 vote
2 answers
2k views

HLSL Pixel Shader that does palette swap

I have implemented a simple pixel shader which can replace a particular colour in a sprite with another colour. It looks something like this: ...
derrace's user avatar
  • 11
39 votes
6 answers
27k views

Creating a retro-style palette swapping effect in OpenGL

I'm working on a Megaman-like game where I need to change the color of certain pixels at runtime. For reference: in Megaman when you change your selected weapon then main character's palette changes ...
Zack The Human's user avatar
0 votes
4 answers
8k views

How do you find the "best" color palette for a game?

If I want to make a 3D game, and I want all my textures to be 8 bit, to save RAM, that is 256 indexed colors, including "transparent", how do I choose the colors? Is there any recommended pre-defined ...
Sebastien Diot's user avatar
11 votes
1 answer
1k views

How can I get the palette of an 8-bit surface in SDL.NET/Tao.SDL?

I'm looking to get the palette of an 8-bit surface in SDL.NET if possible, or (more than likely) using Tao.SDL. This is because I want to do palette swapping with the palette directly, instead of ...
user avatar
8 votes
3 answers
2k views

What is a good method for coloring textures based on a palette in XNA?

I've been trying to work on a game with the look of an 8-bit game using XNA, specifically using the NES as a guide. The NES has a very specific palette and each sprite can use up to 4 colors from ...
Bob's user avatar
  • 750