Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Assetstudio sprites alpha8

Discussion in '2D' started by JB916, Aug 29, 2023.

  1. JB916

    JB916

    Joined:
    Aug 29, 2023
    Posts:
    3
    In assetstudio when 2dtextures/sprites export in grayscale/alpha8 is there a way to add the palette to the images so they are in color. I have found the palettes but when I export them they save in the same format as the sprites, in png. With the programs I use I need a PAL file to be able to add the palette to the image. So for now I have grayscale sprites and picture of the pal. Any of you know a workaround for this
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,954
  3. JB916

    JB916

    Joined:
    Aug 29, 2023
    Posts:
    3
    Much appreciated and I don't want to sound like an idiot but I don't really understand much of what you linked. Is the only way to achieve through code? To be more to the point I have extracted an image and its palette using assetstudio. They both saved in png format. I'm just trying to add the palette to the image somehow. Also I am trying to do this outside the game
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,954
    you mean, do it once - preferably outside unity? (so doesn't have to be realtime "color remap" with shaders)

    i guess could try some of those, if it correctly applies palette (based on grayscale indexes..)
    https://lospec.com/palette-list/importing-palettes
     
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,954