Graal Forums  

Go Back   Graal Forums > Development Forums > Graphic Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-29-2009, 06:55 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
[Tutorial] How to create and save bodies

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:

What you want though is a custom palette:


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.


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.

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:

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.
Attached Thumbnails
Click image for larger version

Name:	bodytut1.PNG
Views:	22974
Size:	14.3 KB
ID:	49937   Click image for larger version

Name:	bodytut2.PNG
Views:	18113
Size:	7.5 KB
ID:	49938   Click image for larger version

Name:	bodytut3.PNG
Views:	21550
Size:	11.7 KB
ID:	49939   Click image for larger version

Name:	bodytut4.PNG
Views:	25434
Size:	123.8 KB
ID:	49940   Click image for larger version

Name:	bodytut5.PNG
Views:	17878
Size:	16.2 KB
ID:	49941  


Last edited by DustyPorViva; 11-29-2009 at 07:11 PM..
Reply With Quote
  #2  
Old 11-29-2009, 06:56 PM
Rufus Rufus is offline
Registered User
Join Date: Jun 2004
Location: United Kingdom
Posts: 4,698
Rufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud of
Fantastic tutorial, I have never known how to do this. Reputation coming your way!
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #3  
Old 11-29-2009, 06:59 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Expect some rep soon my boy.
__________________
Reply With Quote
  #4  
Old 11-29-2009, 07:05 PM
Sam Sam is offline
superannuated super mod
Sam's Avatar
Join Date: Sep 2004
Location: Dortmund, Deutschland
Posts: 5,357
Sam is a glorious beacon of lightSam is a glorious beacon of lightSam is a glorious beacon of light
I've sticked this excellent work.
Reply With Quote
  #5  
Old 11-29-2009, 07:10 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
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.
Reply With Quote
  #6  
Old 11-29-2009, 08:18 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Awesome, thanks Dusty. I've never been able to do this myself, that's a huge help. Rep ++ [edit: after I spread ]
__________________
Reply With Quote
  #7  
Old 11-29-2009, 08:26 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
gif2mng.exe /b bodyimage.png

Would fix the palette of bodyimage.png to work correctly on Graal, even adding transparency. Still, nice tutorial (:
__________________
Reply With Quote
  #8  
Old 11-29-2009, 08:31 PM
Rufus Rufus is offline
Registered User
Join Date: Jun 2004
Location: United Kingdom
Posts: 4,698
Rufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud of
Quote:
Originally Posted by Crow View Post
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.
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #9  
Old 11-29-2009, 08:36 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Rufus View Post
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).
__________________
Reply With Quote
  #10  
Old 11-29-2009, 08:41 PM
Rufus Rufus is offline
Registered User
Join Date: Jun 2004
Location: United Kingdom
Posts: 4,698
Rufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud of
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.
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #11  
Old 11-29-2009, 08:47 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Crow View Post
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.
Reply With Quote
  #12  
Old 11-29-2009, 09:20 PM
Luda Luda is offline
Registered User
Join Date: Aug 2005
Location: Canada
Posts: 2,071
Luda has much to be proud ofLuda has much to be proud ofLuda has much to be proud ofLuda has much to be proud ofLuda has much to be proud ofLuda has much to be proud of
Send a message via AIM to Luda
Ty!
Reply With Quote
  #13  
Old 11-29-2009, 09:44 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Nice contribution, too bad I must spread some rep first.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #14  
Old 11-29-2009, 10:00 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
Fantastic! Much effort used on this tutorial im sure.
Reply With Quote
  #15  
Old 05-04-2010, 06:53 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
bump/revive..
anyone care to do a tutorial for Gimp or paint.net?
i can't get the transparency right, but the colors works'
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:51 AM.


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