Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Automatic Shading in Bodies? (https://forums.graalonline.com/forums/showthread.php?t=24792)

Faheria_GP2 03-01-2002 06:34 AM

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

G_yoshi 03-01-2002 09:06 AM

actually, I would like it if you could use any color from #000000 to #FFFFFF :)

Faheria_GP2 03-01-2002 09:11 AM

you mean for the 5 colors? yes, it would be nice if you could give values like setcharprop #C2,#v(0xFF00AB);

G_yoshi 03-01-2002 10:33 AM

Quote:

Originally posted by Faheria_GP2
you mean for the 5 colors? yes, it would be nice if you could give values like setcharprop #C2,#v(0xFF00AB);
for the 5 different parts, yeah...

(FFFFFF is 16777215 in decimal...woohoo! 16 million colors :D)

TDK_RC6 03-01-2002 10:41 AM

it would be nice to set a lot of different colors :P

konidias 03-01-2002 11:40 AM

1 Attachment(s)
Yes, being able to adjust your red,green,blue would give you tons of combinations. The shadowing and even lightening is possible.

Well basically, like this:

TDK_RC6 03-01-2002 11:46 AM

come to think of it, i probably would keep my current body look, i likes it :P

G_yoshi 03-01-2002 09:37 PM

Quote:

Originally posted by TDK_RC6
come to think of it, i probably would keep my current body look, i likes it :P
That's fine :p

But being able to use basically any color would be nice...you could do color animations in a way :)

03-02-2002 09:41 AM

Quote:

Originally posted by konidias
Yes, being able to adjust your red,green,blue would give you tons of combinations. The shadowing and even lightening is possible.

Well basically, like this:

Good ol' robotrek, but anyway, I personally think this is a great idea, hopefully it will be implemented.

TheKaizer 03-04-2002 03:58 PM

Quote:

Originally posted by Frolic_rc9

Good ol' robotrek, but anyway, I personally think this is a great idea, hopefully it will be implemented.

yeah :D


All times are GMT +2. The time now is 04:12 AM.

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