Questions tagged [palette]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 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 ...
0
votes
1answer
45 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 (+ ...
1
vote
0answers
400 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 ...
0
votes
1answer
366 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, ...
1
vote
2answers
245 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 ...
4
votes
2answers
3k 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-...
1
vote
2answers
2k 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 ...
5
votes
1answer
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 ...
4
votes
1answer
262 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 ...
4
votes
2answers
3k 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 ...
2
votes
1answer
870 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: ...
1
vote
2answers
190 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/...
2
votes
1answer
738 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 ...
3
votes
2answers
2k 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 ...
1
vote
2answers
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: ...
37
votes
6answers
24k 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 ...
0
votes
4answers
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 ...
11
votes
1answer
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 ...
8
votes
3answers
1k 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 ...