Dyes and Paints

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Re: Dyes and Paints

Postby Ranma » Mon Dec 02, 2013 2:08 am

Doesn't matter as long as it's good enough to be implemented
Everything the light touches, is my kingdom.
User avatar
Ranma
 
Posts: 384
Joined: Sun Jun 19, 2011 5:16 pm
Location: Jakarta, Indonesia

Re: Dyes and Paints

Postby Killface » Mon Dec 02, 2013 5:45 am

I.. What? Then don't.. What?

Ranma wrote:Why just don't use my old idea ? ;)

viewtopic.php?f=5&t=25527
Jackard wrote:kvc has eleven secret herbs and spices
User avatar
Killface
 
Posts: 257
Joined: Mon Oct 05, 2009 5:27 am

Re: Dyes and Paints

Postby Massa » Thu Dec 05, 2013 11:56 pm

loftar wrote:Tables, chairs and map grimoires are planned. ;)
Pacho wrote:Are there technical issues with making clothing colors be changed programatically? or have you just not gotten around to it? =P

Well, mostly I just haven't gotten around to it, but it isn't entirely trivial either.

To begin with, I'd need to be able to pass sprite data to each of the sprites in the the haven.Layered Gob attribute, figure out a good definition of identity for sprite data, and integrate that with the layer cache (the haven.Layered$LayerCache class and the whole Sprite.stateid stuff, in the likely case that you haven't seen it), and also manage and keep track of the data server-side; also, the avatar layers would need to be parameterizable as well. All in all, it's obviously something that can be done, but there is a bit of work involved.

More importantly, though, there's the issue of which colorspace transformation to use. Obviously, it has to be more capable than just translating a single mask color to a specified color -- shades of various kinds need to be preserved. It also cannot be as simple as a per-channel multiplication, because that would be unable to preserve highlights. I have considered the possibility to apply HSV transformations, but that, too, could easily come to suck a bit for sprites that may need multiple colors. It can be argued that they may be implemented with multiple layers, simply, but it needs a bit of thought.

We need 1x2 scrolls to draw on.
ImageImage
ass blast USA
User avatar
Massa
 
Posts: 1617
Joined: Sat Jun 01, 2013 4:58 am
Location: the hams

Re: Dyes and Paints

Postby popfor » Wed Dec 11, 2013 3:03 am

loftar wrote:Tables, chairs and map grimoires are planned. ;)
Pacho wrote:Are there technical issues with making clothing colors be changed programatically? or have you just not gotten around to it? =P

Well, mostly I just haven't gotten around to it, but it isn't entirely trivial either.

To begin with, I'd need to be able to pass sprite data to each of the sprites in the the haven.Layered Gob attribute, figure out a good definition of identity for sprite data, and integrate that with the layer cache (the haven.Layered$LayerCache class and the whole Sprite.stateid stuff, in the likely case that you haven't seen it), and also manage and keep track of the data server-side; also, the avatar layers would need to be parameterizable as well. All in all, it's obviously something that can be done, but there is a bit of work involved.

More importantly, though, there's the issue of which colorspace transformation to use. Obviously, it has to be more capable than just translating a single mask color to a specified color -- shades of various kinds need to be preserved. It also cannot be as simple as a per-channel multiplication, because that would be unable to preserve highlights. I have considered the possibility to apply HSV transformations, but that, too, could easily come to suck a bit for sprites that may need multiple colors. It can be argued that they may be implemented with multiple layers, simply, but it needs a bit of thought.

We need 1x2 scrolls to draw penises on.
Image Image
my avatar is stolen without permission
Image
#badboysclub
User avatar
popfor
 
Posts: 1406
Joined: Sat Dec 25, 2010 2:14 am
Location: E̹̙̺̬̖͈̘̭̙̘̔̈́̍͆͌̋̊̈́̀̎d̡̨̺̠̠̜̲̹͕̯̑̀͂͂̈̇̿̏͝͝g̨̙̻̼͎͖̱͔̗͙̐̅̇͗̈́̔͛̌̌͠ŷ͔̼͓̺̮̪̫̙̬̐͊̀́̊͆͝͝͝ͅ

Previous

Return to Critique & Ideas

Who is online

Users browsing this forum: No registered users and 2 guests