![]() |
RGB stuff? - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: RGB stuff? (/showthread.php?tid=431) |
RGB stuff? - Obsidian - 26-11-2006 Alright i was thinking about a few things (namely the way we did clothing/hair in phoenix), and it got me wondering... is there a way that you can just save 1 STYLE of something, for instance, make a base "shirt" that's solid white, then just manipulate the RGB colors for it, then use it, without making 1500+ individual shirts with different colors? And would it be practical, or would it be something that had to constantly be redrawn? I just thought it'd be a much "better" paperdoll if you could just add a base of different things and go from there. - Spodi - 26-11-2006 People were actually doing this (namely Chase) with the vbGORE engine. :wink: It is going to require some sort of lighting to have any decent speed. TXC by Aaron (http://www.baronsoft.com) did something like this in DirectDraw I believe. If you want to do it this way, it'd be best to store a buffer for each user what their sprite is so you don't have to recalculate the coloring every time. - Obsidian - 26-11-2006 that's what i was thinking. when they equip armor for example, store the value in a buffer, and draw it once, then when it changes, change the buffer. what do you mean it will require lighting? i'd actually checked out ORE a while back... but i never got too into it, the community was quite dead and there was no real support for it. i'll check into it though to see what they did. - Spodi - 26-11-2006 By lighting, I mean hardware accelerated lighting. Its not required, but really going to take a while to draw the image without any 3D effects as far as I can tell. But yeah, you have the buffering idea right - that is definitely the way you want to go. Just a little nit-picking, its not on ORE, but TXC, which was made before ORE. :wink: - William - 26-11-2006 Obsidian, it sounds to me that its not worth the coding. It's much faster just to color the items different. - Robin - 26-11-2006 Yes, but faster is not always the best option. If you're going to do something, do it right. - Spodi - 26-11-2006 Coloring the items individually allows you to use a better variety of colors, but is going to cost you a lot more RAM (unless you change MS's code from leaving everything in memory) and you wont be able to make that many graphics on your own. - Minatours - 26-11-2006 Hmm why dont you look at verrigans pixel mod program. that changed colour for another colour. Dont know if its the fastest way. - Obsidian - 26-11-2006 yeah i think what i'm going to do, is make a certain RGB, like 200,200,200 able to be changed for armor or weapons or clothing or whatever (which actually is a bad way of doing it now that i think about it... i'm going to have to put some more thought into this). At any rate, it should probably just reuse part of those loops i saved using Red's tutorial. thanks for the info guys. |