1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

The industrial revolution in extracting images

Discussion in 'Civ3 - Tutorials, Reference, & Guides' started by Kyriakos, Sep 7, 2011.

  1. Kyriakos

    Kyriakos Alien spiral maker

    Joined:
    Oct 15, 2003
    Messages:
    61,247
    Location:
    Thessalonike, The Byzantine Empire
    I was not pleased with my previous method taking 2-3 min of boring work to do this, so i found a new one.

    The following is a tutorial using Gimp (greek version) but i guess other programs also have this option or something similar.

    Step 1.

    Load up your image, complete with its background as it was generated by the 3d program, or as you found it on the web.



    Step 2.

    Same as in the old method, use the lasso tool to extract a reasonably sized area (most importantly it should have at least 90-95% of all the colors, do that by eye you don't have to calculate anything otherwise). Then use the color selection tool to extract the main tones of the background (i usually extract just 3, but that is workable in the specific bryce background i always have, you may need more)



    Step 3.

    Same again as in the old method, paste your part of the model/image, along with the extracted few colours of the background into Gimp, and save it as a 256 color image.



    Step 4.

    Paste your old (complete and unaltered) image onto the new file that has 256 colors. You notice that the background now has less complication, because it conformed to the limited palette.



    Step 5.

    Now the good part begins :) Select the tool of Gimp used for selecting a continuous area of color/texture.



    Step 6.

    Click on the background, and watch it nicely being collected alltogether by the tool. Now hit ctrl+x to delete it. You now have the image with very few dots of the remaining background :)



    Step 7.

    Copy/paste the image onto your regular image editing program (i use MS paint). You can now erase the last iotas of background color. All is done! :)



    Thank you for reading. Original model not included. Visit us at facebook as well ;)
     
  2. Kyriakos

    Kyriakos Alien spiral maker

    Joined:
    Oct 15, 2003
    Messages:
    61,247
    Location:
    Thessalonike, The Byzantine Empire
    So, no one found this helpful? It saves a lot of time :)
     
  3. Quinzy

    Quinzy Deity

    Joined:
    Jul 16, 2005
    Messages:
    5,402
    Gender:
    Male
    Location:
    Éire
    I've been using a similar method for your city sets already :D Good tutorial; thorough!
     
  4. Supa

    Supa Out of Cheese Error

    Joined:
    Jan 7, 2003
    Messages:
    3,663
    Location:
    Belgium
    I don't understand why you don't just render the buildings over a white background and decrease the number of colors from there.

    Edit:

    If it's because you want the building shadows to be greenish, you probably can change the refraction settings of the ground, in order to have a green hue on it only where there are shadows.

    2nd edit:

    If it's due to lack of (real) transparency with PCX and the time it takes to clean up all the dots around the source if the source background isn't close to whatever terrains the PCX would be on in-game..
    Perhaps you could render the model over a uniform green hue, unique to the ground, and replace it when your favorite invisible indexed color (1) before saving the final pcx. All the transition pixels from the original green ground colors to the model itself would be left untouched and shouldn't be really perceived in-game.

    (1) Either by modifying the color in the indexed palette, then moving in to the last place, or by selecting the color in the RGB image with the GIMP "Select by color tool" with a threshold of 0 and replacing it (big brush) with the chosen color.

    Anyway, all this should even faster than your method, taking less than one minute and less brain-power.
     
  5. Kyriakos

    Kyriakos Alien spiral maker

    Joined:
    Oct 15, 2003
    Messages:
    61,247
    Location:
    Thessalonike, The Byzantine Empire
    Maybe, but i wouldn't be writing tutorials if i wanted to follow other people's roads :D
     
  6. Supa

    Supa Out of Cheese Error

    Joined:
    Jan 7, 2003
    Messages:
    3,663
    Location:
    Belgium
  7. WildWeazel

    WildWeazel hard-coded Supporter

    Joined:
    Jul 14, 2003
    Messages:
    6,956
    Location:
    %CIV3%\Conquests\Scenarios\
    I thought this was for "pirating" graphics from screenshots when the original file isn't available :D
     

Share This Page