On Sun, 21 May 2006 18:08:14 -0700, Mark Wedel wrote: > Alex Schultz wrote: >> Mark Wedel wrote: >>> 7) Add colored lighting. (...) >>> One thought might be 6 bit RGB value, as it is compact and... >>> >> Well, this would allow "black lights" that actually illuminate. I'm not >> sure such flexibility is useful or good, as we don't need to send the >> intensity of the light source in a second form at once. Perhaps we >> would be better off sending a 6 bit Hue/Saturation pair? > > Black light is a different issue, as it probably wouldn't have the > affect people would really want. > > But even grey lights get odd - what does a grey light mean compared to > a white light? That the light source isn't as bright? That should be > handled by glow_radius. > > the actual form of the color isn't that important - as said, the > server cares less - it is basically taking a byte of data that is > set in the object and sends it to the client. But one consideration > is that whatever form it is in, should be something that is easy to > set for players. > > I don't really like the idea of english names - it is the easiest > thing to do, but now means the server needs to have a large table of > 'this color is this number', and the client has to have a 'this number > is drawn with this rgb value'. So my ideal case is a value that the > server loads and can easily convert to an int and throw to the client, > and the client can know what to do with that.
Having spent most of my last two working days implementing a colour picker :-P I must say I like the idea of hue/saturation; it's perfect for this purpose, as it completely describes a light colour. And you can use one byte, wasting no bits, and have great resolution; 4 bits of hue and 4 of saturation is pretty good. Of course, people don't know how to write their favourite colours as hue/saturation pairs :-) but they can open up the gimp and get the correct values from the colour picker therein. best, Lalo Martins -- So many of our dreams at first seem impossible, then they seem improbable, and then, when we summon the will, they soon become inevitable. -- personal: http://www.laranja.org/ technical: http://lalo.revisioncontrol.net/ GNU: never give up freedom http://www.gnu.org/ _______________________________________________ crossfire mailing list crossfire@metalforge.org http://mailman.metalforge.org/mailman/listinfo/crossfire