https://www.posetteforever.com/viewtopic.php?f=68&t=3030
-----------------------------------
Nik
Wednesday, 12 December 2007, 03:50 PM

Reworking A Texture...
-----------------------------------
Hi, this is so basic, I'm almost afraid to ask...

I'm still working in P4, to refresh rudiments, and because my long-suffering family insist I MUST_NOT un-box P7 before mid-January...

I have a gray-scale hair texture (512x512, umpteen bits, zillion colours) and I need to colourise it...

An artist could simply re-draw it, but I'm not an artist of any brush...

Using eg free ImageForge, I can reduce texture to 16 'optimised' gray shades without hurting the look. I've tried the colour changing 'fill' / 'replace' tool, but that does too much, too little or *leaks*. 

I've tried changing 'actual palette' from 16 grays to graded shades of desired colour, but weirdness happens. This may be because you can't use subtle colour shades in 'sixteened' piccies, or *free* ImageForge cannot do it, or I'm asking the wrong tool...

Or, of course, missing the obvious !!

When I've learned how to do this conversion, I'll be able to tackle other textures, reflection maps etc etc. 

I don't mind paying ~ $50 to upgrade ImageForge, unlock share-ware or buy a PhilC toolkit, but I really do not want to pay more for an image-manipulation program than for my P7...

Advice, please !!


-----------------------------------
Whazizname
Wednesday, 12 December 2007, 05:51 PM

Re: Reworking A Texture...
-----------------------------------
Hi Nik;
I'm unfamiliar with Image Forge; but I have recommended GIMP (http://gimp-win.sourceforge.net/) to a few people. It is a free open source image editor with features that are comparable to Photoshop. I have not used it myself (I have Photoshop 5.5); but I have not heard any complants from those that i've recommended it to.

Here is the Wikipedia link about GIMP: http://en.wikipedia.org/wiki/GIMP It will give you a good idea of what GIMP is and does before you decide to download it.



(:


-----------------------------------
TdaC
Wednesday, 12 December 2007, 06:58 PM

Re: Reworking A Texture...
-----------------------------------
I haven't hear of the program u are using ( i use jasc paintshop pro 7)... so i don't know the features in your program... in most photo/drawing/image programs there is a features called colorize.... does your prog have that.


-----------------------------------
Tormie
Wednesday, 12 December 2007, 08:17 PM

Re: Reworking A Texture...
-----------------------------------
Same suggestion as Whazizname, The gimp is a very good freeware alternative :thumb: . I should put the link in the front page and interesting links too...


-----------------------------------
Nik
Wednesday, 12 December 2007, 09:00 PM

ImageForge (free Version)
-----------------------------------
Thank you, I'll check out Gimp.

ImageForge belongs to cursorArts, and the free version has some tools for selective colour replacement.

http://www.cursorarts.com/ca_imffw.html

Either I'm not using it correctly, or the free version can't do it quite the way I'm asking, or as precisely...


Sorry, like I said, I'm no artist. Sure, I've worked with 'colours', but in photometer and spectrophotometer cells, looking at absorption & emission peaks of chemicals from infrared through to ultraviolet, checking the instruments' nm wavelength and AU sensitivity calibrations etc etc...


-----------------------------------
Nik
Wednesday, 12 December 2007, 09:25 PM

Downloaded GIMP......
-----------------------------------
Okay, I've downloaded GIMP.

FWIW, if you, too, have persistent trouble opening Sourceforge pages, is probably due firewall blocking their cookie download. (Got a red eye icon at bottom-right ?) Don't alter your cookie settings, just refresh page....

D'uh, I had enormous HelpFile downloading at 198 Kb/sec while the *smaller* GIMP app came in at ~95 Kb/sec-- That is one HOT server !!


-----------------------------------
Tormie
Wednesday, 12 December 2007, 10:03 PM

Re: Reworking A Texture...
-----------------------------------
Nik, your firewall troubles seems to be a little bit persistent...

http://www.posetteforever.com/discussion502.html#4618 (exactly 4 years ago...)

Can we help you in some way ? What is the firewall that you're using ?


-----------------------------------
Nik
Wednesday, 12 December 2007, 10:41 PM

Indexed Images !!!
-----------------------------------
Yippeeee !!!

Okay, I'll be re-doing the process several times to become familiar with the path through GIMP menu system, but arcane 'indexed images' facility does *exactly* what I was trying with ImageForge...

GIMP took my piccy, converted it to my choice of numbers of colours, here, shades of gray. It created a custom palette with those colours, then let me edit palette to selected colours, auto-changing same colour in piccy. In this case, I put in a pre-calculated gradient (RGB 248 200 200 --> 248 248 248), but could have been psychedelic highlighting... Or Marbelling ??

Aaaand, I think I could have saved the modified palette for re-use, but I must have blinked.

Er, looks like I'll be spending some time learning my way around GIMP, printing HELP-pages as I go...

Thanks again for the Excellent advice !!

If I can, I'll post the Before & After JPGs for comparison.
---

My firewall is a paranoid Norton's (LiveUpdate), browser is stripped-down IE_6, carefully bereft of Flash, Script, Codecs etc etc...
Most cookies bounce off, or are eaten by nightly AdAware sweep.
Think 'child safe'... and staying that way.


-----------------------------------
Nik
Wednesday, 12 December 2007, 10:45 PM

Before &amp; After
-----------------------------------
Hope this works...

[img]http://www.postimage.org/aV2qLuHA.jpg[/img]
[img]http://www.postimage.org/Pq2nWO3J.jpg[/img]


-----------------------------------
Tormie
Thursday, 13 December 2007, 01:04 AM

Re: Reworking A Texture...
-----------------------------------
ehm.. I fixed the BBCODE of your  message. It's better to use our "add an attachment" button to add files and pictures to the site, avoiding leeching and files that disappears after a while :)

(good work there)


-----------------------------------
Nik
Thursday, 13 December 2007, 01:57 AM

Thanks, Tormie !!
-----------------------------------
Ah, yes, that is what I was trying to do with those piccies...

Middle-aged Eyetis, I fear...

Second time through, I managed to save the indexed palette. Shades of my old Acorn 410/1: You gotta right-click for context-sensitive menus...

This way of re-colourising textures is not for everyone or every task, but it does allow very close colour matching of unrelated wardrobe items. When I am confident of 'indexed image' route and results, I'll post the recipe.

Thanks again, Tormie & Co !


-----------------------------------
Whazizname
Thursday, 13 December 2007, 03:16 AM

Re: Reworking A Texture...
-----------------------------------
I happy to to hear that GIMP was able to help you achieve your objective.  :) 

I look forward to seeing the recipe for your color conversion.



(:


-----------------------------------
Nik
Thursday, 13 December 2007, 07:21 PM

Using GIMP Indexed Mode.
-----------------------------------
Disclaimer: There are probably three better ways to do this...

I reduced my total count to 16 because I was changing all of a 'simple' gray-scale image If you need to tweak a couple of shades of a more complicated palette, GIMP can index up to 256...
---

Using GIMP Indexed mode.
==================
HELP section is 14.9.6.1 in current version 2.4.2, but F1 or right-click gets context-sensitive help.
---

Open GIMP.
File, open, browse to piccy file. ( DO NOT experiment with original !!)

Image, Mode, Indexed. 
 ( New dialogue box opens)
 Convert to indexed colours.
 Select 'Generate Optimum palette'.
 Maximum number of colours ?
 Select manageable number, eg 16 )
 Convert.
 ( Dialogue box closes)

Dialogues, Colour Map (NOT Palettes !!)
 (New dialogue box opens with actual palette of piccy )
 (Drag box wider until palette items big enough to see and/or neat grid !!)
 Double-click on palette item.
   (New dialogue box opens with colour editor.)
   Drag sliders and/or enter eg RGB values to taste.
   Click Okay, colour changes are copied to piccy. (!!)
 
 Repeat with other palette items until happy.

File, Save As...
 New dialogue opens: Must convert to RGB before Export: Convert ?
 Click Yes.
 JPG dialogue may open, offering compression default: Set and click Yes.

Aaaand, there you go.


-----------------------------------
Whazizname
Thursday, 13 December 2007, 09:08 PM

Re: Reworking A Texture...
-----------------------------------
Cool.
 :) 



(:


