Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   Suggestion: default colour system! (https://forums.graalonline.com/forums/showthread.php?t=63771)

petro1212 01-28-2006 09:08 PM

Suggestion: default colour system!
 
Weither this should go into future improvements of graalv4 main forums, well I honestly don't know nor care that much. Anyhow:

Changing the the "default" body color system with preset colors (and the bugged number system wich allows clients to set other colors) and Rick's suggestion thread made me think. Why not change it so that {r,b,g,a} has to be set instead of the current system. That way a bigger range of colours could be used and servers could servers could even create "slide bars" with color levels.

I don't realy think that I have to defend this suggestion nor explain it better since its pretty easy to understand (or atleast for me it is).
It's just way better :P! {And I understand that this will just be alot more manhours for Stefan or whomever will work on it.. but it will be worth it}

haunter 01-28-2006 09:50 PM

Why would you need to change the alpha value of the colour?

petro1212 01-28-2006 10:31 PM

Quote:

Originally Posted by haunter
Why would you need to change the alpha value of the colour?

.. probely cause it would look nice at some occasions.. you always have people that want to be translucent? :P

Tyhm 02-07-2006 01:59 AM

Why not just, I dunno, alpha separate the bodies and use the new free rotation system to cut things down, then in the ganis attach the heck out of them?
Kinda hard to explain without pictures, but I dun wanna open PSP, so:
Take for example Body.png, Fung Si Yuan Style.
Belt, shirt, sleeves, hands, shoes.
Remove all the sprites that are just rotations of existing sprites. Now it's much smaller (probably only 3 columns).
Add a bunch more sprites where it's just the belt layer, just the shirt layer, just the sleeves, just the hands, just the shoes. Now it's 5 times as wide.
Cut it down to 3 colors - background, black, and white. Whether this saves any memory is a factor of the .png format, I dunno. (Another idea - add a layer for Outline, then it can be a 2-color png. Ow, my brain...)
Using the attach command, composite all these layers back together in the ganis. Kind of a pain, but if you're making ganis from scratch for your server anyway, you may as well.
Now use GScript2's graphics engine to recolor all the individual layers based on the RGBI passed into the gani.

So yeah, I guess it would be possible to dynamically recolor body's on your own. But just glancing over the method...I'm thinking lag = very yes. Every gani would have 5x4 more integers passed into it...for every player on the server...


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

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