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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate bug? Need help or an alternative thanks!

Status
Not open for further replies.

Jandals

Technical User
Jun 22, 2003
1
NZ
Ive created a simple action which decreases an image colours to 'indexed colours' and made it use 'local: perceptive' using only 1 colour. The problem is once automated it uses 2 colours. Much to my dismay i need this done to around 800 images, so manually would be very time consuming.

btw, my method is hardly technical, i just wanted a way to change the image (a texture) to its most basic shade of colour for simplicity ingame. So if im doing a roundabout method to 'taking an average of all the colours and filling the whole image with that colour' that can be automated please tell me how!

Much appreciated!
(Using photoshop 7)
 
You can't have a one color texture. You need both a foreground and a background (or transparent) color.

You can set a background color (white for example) and automatically place it on all the images... create the following automation:

1. select all
2. copy
3. new alpha channel
4. paste
5. levels -> auto OR brightness/contrast -> +75% contrast
6. deselect
7. select RGB channel
8. load selection -> alpha 1
9. delete
10. index color -> local (adaptive), 2 color

This automation creates a high-contrast selection out of the image itself, then sets the light areas to the background color, then bumps the rest down into the prominent color of the image via index color mapping.

You can set the "load selection -> alpha 1" to "invert selection" to replace dark areas instead.

I just improvised this... hope it helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top