Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Despretly need help finding a way to color replace in a 256 color mode

Status
Not open for further replies.

mikenet2007

Programmer
Apr 11, 2007
4
US
Ive tried 3 other forums in the last two days without a response so I guess this is a tough one. If you know anything about this any help is greatly appreciated....

I'm using Adobe Photoshop 9.0 cs2 and I need help with a large color replacement project. I'm an armature video game designer making a level for the classic P.C. game Doom 2 and I'm creating a new weapon and monster for the level I'm creating. For the monster I plan to alter the colors of the frames of the original monster and change the dimensions of key features.
The monsters in Doom use an indexed color mode that were extracted into individual .png files.

The other day I made the big mistake of changing the frames over to RGB mode so I can use the color replacement tools available in that mode. I should have done one frame first then convert it back to indexed color mode because the frames look terrible when converted back from RGB mode. What it is doing is using all the colors of the RGB color spectrum to replace various colors. Unfortunately what this means is that its using colors that are not in the color palette I loaded in the original pic and when I convert it back it looks terrible and loses any color not available in the 256 color palette. There are enough colors in the doom color palette to produce the look I'm after but the automated conversion process from RGB to indexed colors does not pic the best matches in most cases. By doing this I am taking an image consisting of about 150 different shades of color down to about 75 different shades of color. I cant find any color replacement tools for indexed colored images and its going to take me forever to do all frames pixel by pixel so I need one of two things to be able to accomplish what I need. Either a better way of converting these images back, or some tool I can actually use in indexed color mode. If there is a way to select a pixel and change all other pixels of that exact color to a new color then I can just do it pixel by pixel that way. I need something here or I'm going to lose hours of work. If there is a way to load my color table into RGB mode to limit what colors it uses that might work too. If anyone has any ideas please let me know, thanks.

I would just leave the pics in RGB mode if the game I'm editing for could use that format but unfortunately anything I convert to RGB will have to be converted back to 256 colors for it to work in the game.
 
Have you tried IMAGE / ADJUSTMENTS / REPLACE COLOUR. This can be used on indexed colour images.
 
I just looked at that, hopefully its not using colors that are not availible in the pallete to change the colors. I have one primarly problem here though. One of the things im trying to change is the horns on this creature. Instead of grey I want gold but it doesnt want to change anything thats grey white or black to another color. Is there a way to apply color to something in shades of grey in indexed color mode? Thanks for your help so far.
 
Nevermind I just answered my own question. I used the REPLACE COLOR tool in the menu, in indexed color mode then I went into rgb mode and then back into indexed color mode and it degraded the quality again. I suppose this means that this tool in indexed color mode will pull colors from the RGB color spectrum to make the color change. Even if it is savable in index colors mode after using this tool the picture is no longer an index colored image despite what that checkmark might indicate. In turn the game im editing for will see an image it cant find colors for and make the same color conversion that is made when you switch an RGB colored image to an indexed colored image in Adobe. Sigh.... Well if you think of anything else at all do let me know. Perhaps even in another program if necessary.
 
When using 'REPLACE COLOUR', in the 'replacement' panel at the bottom you have the 'result' colour which you click to select a replacement colour. In the dialogue box that appears, you can tick the box for 'only web colours'. You also have the option of making your own custom palette. Don't know if this would help.
 
Web colors are basically the same as in the 256 color palette?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top