[spr-wip]colored Huds!

VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
<div class="IPBDescription">It might actually be possible!</div> It appears the system is (a little) simpler than I originally thought. That is to say, color the sprites red, and they'll appear as red in-game.

<img src='http://sjc.edu.hk/~verthandi/a-hud-red.jpg' border='0' alt='user posted image' />
However, it's not perfect yet. For example, you'll notice the Alien HUD above is in red, but I didn't put the Marine HUD in red. That's because it didn't work. Using the red sprites, the Marine HUD didn't even show up, until health dropped to the 'red zone'. Even then, only the health showed up (Armor and Ammo was still invisible).

<img src='http://sjc.edu.hk/~verthandi/m-hud-green.jpg' border='0' alt='user posted image' />
Good news, however, as green works nearly perfectly. The only time it fails is when health drops to the 'red zone', and the health indicators disappeared. Everything else stayed, though, so that's a step in the right direction.

<img src='http://sjc.edu.hk/~verthandi/m-hud-purple.jpg' border='0' alt='user posted image' /> <img src='http://sjc.edu.hk/~verthandi/a-hud-purple.jpg' border='0' alt='user posted image' />
Purple was a weird one. It showed up pretty much correct for Marines (left picture), but for Aliens (right picture), it just became a darker shade of red. When health dropped to the 'red zone', it became a bright shade of red for both sides.
So far, this is the only color that actually works 100% of the time, even if not as intended. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->

One last thing to note is that I couldn't seem to change the color of the little divider. Not a big deal, really...

Comments

  • cortexcortex Join Date: 2003-11-28 Member: 23707Members
    omg, very nice work verthandi <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->

    COLOURED HUDS FOR EVERYONE <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo--> <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    <img src='http://sjc.edu.hk/~verthandi/m-hud-orange.jpg' border='0' alt='user posted image' />

    This one works without side effects: Green HUD for Marines.
  • FrEeLaNcEr1FrEeLaNcEr1 Join Date: 2003-12-18 Member: 24511Members
    Nice work Verthandi, Though it might be possible with a bit of tweaking. Could you explain the Process you went through to the rest of us n00bs?
  • SixsixoneSixsixone Join Date: 2004-07-25 Member: 30104Members
    Could you try white? To go with rn's pack?

    Great discovery! Hail!

    *Bows*
  • SRT_RabbSRT_Rabb Join Date: 2004-01-31 Member: 25808Members
  • OrganoXOrganoX Join Date: 2004-03-21 Member: 27473Members
    <b>Verthandi</b>:
    What resolution are you using?
    Damn, i use 800x600.
    Crappy Grafic Card <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html//emoticons/mad-fix.gif' border='0' style='vertical-align:middle' alt='mad-fix.gif' /><!--endemo-->
  • coriscoris Join Date: 2003-07-08 Member: 18034Members, Constellation
    Make it white for the win!
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    <!--QuoteBegin-+FrEe^LaNcEr++Aug 23 2004, 07:25 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (+FrEe^LaNcEr+ @ Aug 23 2004, 07:25 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Nice work Verthandi, Though it might be possible with a bit of tweaking. Could you explain the Process you went through to the rest of us n00bs?<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    It was simple. I took 640hud7.spr, and colored it 'Alien' yellow. In-game, blue is 'added on' to it, resulting in green. It doesn't affect the Aliens because their HUD is naturally yellow.

    <!--QuoteBegin-(NSA)Sixsixone+Aug 23 2004, 09:55 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ((NSA)Sixsixone @ Aug 23 2004, 09:55 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Could you try white? To go with rn's pack?

    Great discovery! Hail!

    *Bows*<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    This might be impossible (for now). <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->

    <!--QuoteBegin-OrganoX+Aug 23 2004, 11:47 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (OrganoX @ Aug 23 2004, 11:47 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><b>Verthandi</b>:
    What resolution are you using?
    Damn, i use 800x600.
    Crappy Grafic Card <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html//emoticons/mad-fix.gif' border='0' style='vertical-align:middle' alt='mad-fix.gif' /><!--endemo--><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    1280x1024x32, with a GeForce Ti4200.
  • OrganoXOrganoX Join Date: 2004-03-21 Member: 27473Members
    <!--QuoteBegin-Verthandi+Aug 23 2004, 06:51 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Verthandi @ Aug 23 2004, 06:51 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> 1280x1024x32, with a GeForce Ti4200. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    100 fps constantly? <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html//emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif' /><!--endemo-->
  • Black_ViperBlack_Viper Join Date: 2003-12-08 Member: 24157Members
    <!--QuoteBegin-Bl/\ck_\/!p3r+Aug 23 2004, 01:22 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Bl/\ck_\/!p3r @ Aug 23 2004, 01:22 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Cant you just make two sprite files and have the hud.txt load numbers for marines and aliens separate???<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    What i said!!!
  • SkulkinatorSkulkinator Join Date: 2004-05-30 Member: 29016Members
    edited August 2004
    I don't think so. Skimming over hud.txt, it appears that the numbers (hud sprite) are defined only by one list of values.

    It's the number_1, number_2, etc.

    If it was as simple as you said, I would think someone would have done it already. <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink-fix.gif' border='0' style='vertical-align:middle' alt='wink-fix.gif' /><!--endemo-->
  • FrEeLaNcEr1FrEeLaNcEr1 Join Date: 2003-12-18 Member: 24511Members
    <!--QuoteBegin-skulkinator+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (skulkinator)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->I don't think so. Skimming over hud.txt, it appears that the numbers (hud sprite) are defined only by one list of values.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    so why dont you chage the colour in the Hud.txt, to white, so that you can use a Custom coloured hud of any colour. Would that work? This is jjust a suggestion, as Im at school and cant check the numbers


    By the way, I have an GeForce Fx 56000, and I get 80ish in normal situations, and 60ish in firefights
  • MrSocksMrSocks Join Date: 2004-07-16 Member: 29946Members
    edited August 2004
    the fx 56000 that must be a new one <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
    some sort of super video card, nvidia finally take the lead? <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
  • SkulkinatorSkulkinator Join Date: 2004-05-30 Member: 29016Members
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->so why dont you chage the colour in the Hud.txt, to white<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    I'm pretty sure the hud color isn't assigned in there. It's the last color of the sprite's palette. On the other hand, there are two different colors...I think the game adds a color to the other to make two.

    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->In-game, blue is 'added on' to it, resulting in green<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    <!--QuoteBegin-OrganoX+Aug 24 2004, 03:16 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (OrganoX @ Aug 24 2004, 03:16 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin-Verthandi+Aug 23 2004, 06:51 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Verthandi @ Aug 23 2004, 06:51 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> 1280x1024x32, with a GeForce Ti4200. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    100 fps constantly? <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html//emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif' /><!--endemo--><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    No, constant 60fps. I use 8x anisotropic filtering (AF), and VSync.


    <!--QuoteBegin-Skulkinator+Aug 24 2004, 09:56 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Skulkinator @ Aug 24 2004, 09:56 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->so why dont you chage the colour in the Hud.txt, to white<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    I'm pretty sure the hud color isn't assigned in there. It's the last color of the sprite's palette. On the other hand, there are two different colors...I think the game adds a color to the other to make two.

    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->In-game, blue is 'added on' to it, resulting in green<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    Close, but unlike crosshairs, the color is not determined by the last slot on the palette. If you download the above Green HUD, you'll see that the sprite itself is already colored yellow.
Sign In or Register to comment.