Might be either caffeine or urge to create...

Setting the colors manually is a bit more obscure in GIMP, you're right about that.

Here's a mini-tutorial. Probably much more detailed than you need, but for the sake of lurkers or people who stumble across it in a later search ...

Spoiler GIMP Indexing PCX Tutorial :
The name could be anything but for purposes of the tutorial "pcx" layer refers to whatever layer you want your final image to be.

Make a Border
If your image has a lot of colors you can probably skip - or at least simplify - this step. Sometimes a border that is half magenta and half green works. But if you index with that or without a border at all you may end up with blanks. There's a later step where you can add more colors to the palette. Easy and quick if there are not too many.

If the image has only a few colors make a separate layer that is large enough to provide a border around the "pcx" layer. Then fill with a full spectrum or rainbow gradient. It is important to do the gradient at an angle. This insures that there is enough of the colors for the indexing process to notice them. This composite screenshot shows the layer by itself, then with the "pcx" layer visible on top of it.



Flatten the image or Merge all layers.

Index the image.
For some reason GIMP may set the number of colors to 255. This will most likely give you at least one blank slot in the palette. So manually set the number to 256.

Rearrange the Colormap
GIMP uses "palette" to refer to premade palettes and "colormap" for the palette of a particular image. The palette of your indexed image will show up in the Palette dialog so this can be confusing. To edit it you need to work through the Colormap dialogue.



With the colormap in view, right-click and choose Rearrange Colormap. If you have blank spots (black squares toward end of colormap) use Add from Foreground or Background color before you start rearranging. Edit Color would let you change the exact color of whatever index location you have selected.(Editing Color explanation in GIMP online manual)



After selecting Rearrange Colormap the view changes. Here you can drag and drop until the colors are in the location you want.



Once it looks good click OK. If you open up the Colormap dialog again the green and magenta (or whatever else you use for the transparent colors) should be in the proper location.



Crop the image
there are several ways to do this. Here's a trick that saves trying to select exactly the right pixels and is also good for merging several layers into a properly sized image. Duplicate the "pcx" layer and place it as the bottom layer. Then from the Image menu "Merge" all layers with the "Clipped to Bottom Layer" option selected.



Export the image
GIMP uses "Save" strictly for saving in xcf - GIMP's native format. "Save as" let's you change names or locations, but still only in xcf format. To get a .pcx you must Export.

After doing this a few times the process gets quick and the mind-hand-eye coordination sort of auto-piloted. When doing a whole batch of pcx images I've found that the sequence of: "merge (to crop), export, undo, delete layer, repeat" with an xcf file containing each pcx as a separate layer is a lot faster than going through the process with separate image files. But that's just my personal workflow. Do whatever works for you.

The GIMP online manual has fuller explanations. Sometimes it's hard to know how GIMP works - like the difference between palettes and colormaps. I've had the experience of not even knowing what dialogue or tool to look for, or what keywords to use in searching for online tutorials. As new versions are released tool locations and menus change, but a good book is still handy for knowing the quirky terminology and techniques GIMP uses. Personal favorite is Beginning GIMP: From Novice to Professional.
 
Last edited:
Ah ok. Thanks. A lot more efficient than what I've been doing. :)
 
Ah ok. Thanks. A lot more efficient than what I've been doing. :)

A lot of years of hair-pulling & screaming to get that efficient :D

just edited to add a link to the online manual - the section where there's an explanation of editing colors in the colormap.
 
I've been putting this together lately. Getting the textures right has been a bit tricky. Should have thought to simply start with a 1/4 of it and then use mirroring in the beginning...
 

Attachments

  • SuzhouMarketArchExample.png
    SuzhouMarketArchExample.png
    58.6 KB · Views: 307
I just realized (only after three years!) that you can actually manually paint textures onto objects within Blender rather than having to go through the whole process of fitting textures to UV layouts in a separate image editors. Am I really late to the party or what? Of course the downside is that this leads to a more 'cartoony' look because it involves manually painting rather than using photoreal textures, but it could be useful nonetheless if someone intended to use stylized graphics.
 
I figure that the old Final Fantasy Mod could use a graphical update, though I'm not sure if Hikaro is still updating it.
 

Attachments

  • MakoReactorExample.png
    MakoReactorExample.png
    19.9 KB · Views: 250
Finally came up with a way to minimize polygons AND keep relatively good amount of detail at the same time. This way I can use the same model for modding in other games aside from Civ3. UV texturing is always complicated.
 

Attachments

  • KoreanSeowon.png
    KoreanSeowon.png
    204.5 KB · Views: 263
Finally came up with a way to minimize polygons AND keep relatively good amount of detail at the same time. This way I can use the same model for modding in other games aside from Civ3. UV texturing is always complicated.

+1

Yes, uv sucks :) Btw, is the lower part just a rectangular paralleliped?
 
Pretty much. I went with a pretty simple model this time around.
 
That's beautiful work! Looks very much like the Korean buildings I have seen in Korea.

Incidentally I absolutely love that style of roof on Korean buildings. It's similar to Chinese and Japanese rooves I guess but there is something about the specific design that really appeals to me.
 
Some more buildings added:
 

Attachments

  • KoreanSeowon2.png
    KoreanSeowon2.png
    377.4 KB · Views: 252
Shwedagon Paya. It looked simple to model, but it was surprisingly complicated.
 
Texturing this thing was pretty simple. The whole thing is covered in gold so I only needed one texture.
 

Attachments

  • ShwedagonPayaBlender.png
    ShwedagonPayaBlender.png
    275.3 KB · Views: 244
The opera house stage with textures. Need to tweak the roof textures. UV texturing for the roof is the trickiest part.
 
The opera house stage with textures. Need to tweak the roof textures. UV texturing for the roof is the trickiest part.

Hm.. What is the likely (or even max) zoom level your building will be in? (eg on some other game). Because as you surely note, the UV currently is blocky. I know i dislike UV with a passion (because it isn't modelling but tedious face-mapping :( ), yet it seems that currently this uv will look nice up to roughly half the zoom level you have it in the preview?

Modelling is great, as always :)
 
It's going to be quite a bit smaller at Civ-level so the texture oddities probably would be inconsequential anyway. But I do intend on using this same model for other games.
 
Top Bottom