Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graphic Design (https://forums.graalonline.com/forums/forumdisplay.php?f=9)
-   -   [Tutorial] How to create and save bodies (https://forums.graalonline.com/forums/showthread.php?t=134257117)

DustyPorViva 11-29-2009 06:55 PM

[Tutorial] How to create and save bodies
 
5 Attachment(s)
I've often tried to create bodies, even simple recolors or rips only to find that I just couldn't it to look correct. Colors would malfunction, transparency would never work, colors I did not want Graal to recolor would be replaced, and colors that I wanted to work with Graal's color system would not. It was baffling.

Opening up the default body images would lead you to believe that you would need to use a specific color index to create a body, but that's not true. Graal instead seems to rely on the palette table, and the order of which colors are on it. More specifically, the first seven color indexes of table are reserved for the default Graal coloring system:
0 : Outline
1 : Belt
2 : Transparency
3 : Shoes
4 : Sleeves
5 : Skin
6 : Coat
If you try to create a body that you don't want recolored, chances are you just paste your body image into your graphics program, index it and save. Then you try to use it and it's not transparent, and some of the colors are messed up. That's because when you index an image it assigns the used colors to a table, and since the colors your body uses are assigned to the first 7 indexes, Graal considers them able to be recolored. As you can also see, Graal uses a palette index for transparency rather than using traditional transparency.

I personally use Photoshop 6.0, so I will demonstrate how to work with your palette table in order to either use Graals recoloring system, or avoid it. I'll start with body.png.

Start by indexing your image like so:
http://forums.graalonline.com/forums...1&d=1259513541
What you want though is a custom palette:
http://forums.graalonline.com/forums...1&d=1259513541

From here you can do one of two things. If you want it to work like a traditional body, you can start assigning colors to the palette as mapped out above. Or if you don't want your body recolored, you will just be filling the first 7 boxes with filler colors that your body doesn't use. Regardless, the third color will always need to match the color you want to be transparent.
http://forums.graalonline.com/forums...1&d=1259513541

So first, what we'll be doing is assuming you want to use Graal's default body coloring system. Click on the first box, and then your mouse will change to the eyedropper if you hover over your image. This will allow you to easily select the color.
http://forums.graalonline.com/forums...1&d=1259513541
Okay, assuming you want to use your own colors, and not limit yourself to Graal's recoloring or 6 color limit, you'll instead be filling the palette with filler colors, like so:
http://forums.graalonline.com/forums...1&d=1259513541
Make sure you have seven boxes filled and with colors that aren't being used, or else it will still mess up. I used red for my purposes(#FF0000), as it was not used in my graphics at all. You don't need to bother indexing the rest of your colors, Photoshop will automatically assign them to the rest of the table.

When you're done, click OK and then save the image, and chances are it will work fine! Like I said though, I use Photoshop 6.0, newer versions may use a different setup, and I'm not sure about any other programs like Gimp. Chances are they allow you to customize the palette somehow.

Credits to the information I used go to someone I probably can't name on the forums.

edit: Someone has asked me can you combine the two methods and have say, a purple belt with a body that can change colors? YES. Simply color the belt purple for example, but in the palette table, the belt box should be a filler color like used in the second example. This will allow your belt to stay purple, while still allowing you to color other parts of the body.

Rufus 11-29-2009 06:56 PM

Fantastic tutorial, I have never known how to do this. Reputation coming your way!

Crono 11-29-2009 06:59 PM

Expect some rep soon my boy.

Sam 11-29-2009 07:05 PM

I've sticked this excellent work.

Soala 11-29-2009 07:10 PM

Such a great tutorial ! I knew how to do this myself (even if I barely make any bodies) but this tutorial is simply awesome. Can't see how someone wouldn't understand how to do this now.

cbk1994 11-29-2009 08:18 PM

Awesome, thanks Dusty. I've never been able to do this myself, that's a huge help. Rep ++ [edit: after I spread :whatever:]

Crow 11-29-2009 08:26 PM

gif2mng.exe /b bodyimage.png

Would fix the palette of bodyimage.png to work correctly on Graal, even adding transparency. Still, nice tutorial (:

Rufus 11-29-2009 08:31 PM

Quote:

Originally Posted by Crow (Post 1541206)
gif2mng.exe /b bodyimage.png

Sorry but I have no idea what this means, could you give some instructions or something? I just drag the image into the exe file, but that doesn't seem to fix bodies, only heads.

Crow 11-29-2009 08:36 PM

Quote:

Originally Posted by Rufus (Post 1541208)
Sorry but I have no idea what this means, could you give some instructions or something? I just drag the image into the exe file, but that doesn't seem to fix bodies, only heads.

Open up the Windows command line tool (cmd.exe), browse to the location of gif2mng.exe, make sure the body is in the same folder. Then, write and execute the following:
gif2mng.exe /b <INSERT_BODY_IMAGE>

"Fixes" the palette and adds transparency (doesn't work sometimes, I recommend a background color of #008000).

Rufus 11-29-2009 08:41 PM

Cool, I just tried it and it works fine. It isn't very flexible or user-friendly, but it seems quick and easy enough to do for basic bodies.

DustyPorViva 11-29-2009 08:47 PM

Quote:

Originally Posted by Crow (Post 1541206)
gif2mng.exe /b bodyimage.png

Would fix the palette of bodyimage.png to work correctly on Graal, even adding transparency. Still, nice tutorial (:

I've often always just dragged the image onto gif2mng, and never knew there were such parameters... at least they're not very well documented.

Luda 11-29-2009 09:20 PM

Ty!

Tigairius 11-29-2009 09:44 PM

Nice contribution, too bad I must spread some rep first.

Dnegel 11-29-2009 10:00 PM

Fantastic! Much effort used on this tutorial im sure. ^^

Deas_Voice 05-04-2010 06:53 PM

bump/revive..
anyone care to do a tutorial for Gimp or paint.net? :(
i can't get the transparency right, but the colors works'


All times are GMT +2. The time now is 04:41 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.