Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RGB stuff?
#1
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.
Reply
#2
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.
Reply
#3
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.
Reply
#4
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:
Reply
#5
Obsidian, it sounds to me that its not worth the coding. It's much faster just to color the items different.
Reply
#6
Yes, but faster is not always the best option.

If you're going to do something, do it right.
Reply
#7
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.
Reply
#8
Hmm why dont you look at verrigans pixel mod program. that changed colour for another colour. Dont know if its the fastest way.
Reply
#9
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)