StendhalRefactoringGraphics: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Corpses: Update links to use SF Git repos instead of CVS
imported>Hendrik Brummermann
No edit summary
Line 52: Line 52:


===Using sprites not created specifically from scratch===
===Using sprites not created specifically from scratch===
Please note that neither sprites from RPGMaker nor Charas may be used for copyright reasons.
<del>[http://en.wikipedia.org/wiki/RPGMaker_2000 RPGMaker 2000]-like sprites (like those at http://charas-project.net) are an interesting graphic resource for stendhal.</del>


Unfortunately, the frame size for their animated human-sized characters is usually 24 x 32 pixels (72 x 128 pixels for the whole image) which is half the size of what is needed, so some rescaling has to be done.
Unfortunately, the frame size for their animated human-sized characters is usually 24 x 32 pixels (72 x 128 pixels for the whole image) which is half the size of what is needed, so some rescaling has to be done.
Line 63: Line 63:
scalex -k 2 old.png new.png
scalex -k 2 old.png new.png


If the images have a coloured background like those from Charas, it needs to be made transparent. Use this [[VisualHowToRemoveBackgrounds|Visual Guide]] or do the following in [http://www.gimp.org/ GIMP]:
If the images have a coloured background, it needs to be made transparent. Use this [[VisualHowToRemoveBackgrounds|Guide]] or do the following in [http://www.gimp.org/ GIMP]:
* Open your png
* Open your png
* Convert it to RGB mode with Image -> Mode -> RGB
* Convert it to RGB mode with Image -> Mode -> RGB
* Add transparency to the image with Layer->Transparency->Add Alpha Channel
* Add transparency to the image with Layer->Transparency->Add Alpha Channel
* Select the coloured background (green from Charas) by doing Tools->Selection Tools->Fuzzy Select (or pressing Z), and clicking on the green background. Make sure that the 'threshold' is set to 0 which means it will only select exactly that green colour. Also turn off 'Antialiasing' and 'Feather edges'. These settings should be available on the gimp main window.
* Select the coloured background (e. g. green) by doing Tools->Selection Tools->Fuzzy Select (or pressing Z), and clicking on the green background. Make sure that the 'threshold' is set to 0 which means it will only select exactly that green colour. Also turn off 'Antialiasing' and 'Feather edges'. These settings should be available on the gimp main window.
* Remove the green background by pressing Ctrl-k (or Edit->Clear). Gimp should show the transparency as gray checker board pattern.
* Remove the green background by pressing Ctrl-k (or Edit->Clear). Gimp should show the transparency as gray checker board pattern.
* Repeat the selection and clearing steps for any remaining green areas, if everything was not cleared at once.
* Repeat the selection and clearing steps for any remaining green areas, if everything was not cleared at once.
Line 87: Line 87:
== Outfits ==
== Outfits ==
Players can have hair, face, body and dress. These are saved separately so outfits can be mixed and matched.
Players can have hair, face, body and dress. These are saved separately so outfits can be mixed and matched.

<del>We use http://charas-project.net:</del>
* <del>The medium charsets</del>
* <del>Selecting just one layer to save.</del>


''The Stendhal project is currently in the process of switching from Charas sprites to [https://opengameart.org/node/24944 Cabbit style] due to licensing issues.''
''The Stendhal project is currently in the process of switching from Charas sprites to [https://opengameart.org/node/24944 Cabbit style] due to licensing issues.''