Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-01-2002, 06:34 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
Automatic Shading in Bodies?

well, I was loafing around the other day, and was thinking to myself, wouldn't it be nice if the Bodies would automatically shade themselves? I thought of all the possible methods this could be achieved, and here is the one I came up with

well, as you know, There are 5 colors + outline used in Body GFX, maybe some maths could be employed here, where COLOR 6 is 16 units darker than COLOR 0, COLOR 7 is 16 darker than COLOR 1, the color that it affects would be determined as so

ORIGINALCOLOR = PALCOLOR%6;
DARKEN= INT(PALCOLOR/6)*16;

If color 0 was 255,0,0 (RED), then color 6 would be 255-16,0,0; (Slightly darker RED), color 12 would be 255-32,0,0; and so on (the others are not changed because we can't go below 0, but under normal circumstances, they would be)

This way we can design bodies that will be able to do shading/gradients and still be able to choose our own colors for the bodies.

so, to determine which PAL# to use in order to do the shading we first would want the original color (in the following example, #C4 or 4, and the Degree we want it to be changed, 5)

PAL = OriginalColor + Degree*6
PAL = (4) + (5)*6;

if #C4 was white (255,255,255), then PAL34 would produce color (175,175,175) or a light-gray...

Sure, it would take much more effort to make a well shaded body, but the old bodies would still work, so more can be made to that style too, and using the shading effects would be *optional*

I hope I was able to explain this in depth enough for such a long post :o
Reply With Quote
 


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 10:17 AM.


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