[spr-wip]colored Huds!
Verthandi
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...
<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
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-->
This one works without side effects: Green HUD for Marines.
Great discovery! Hail!
*Bows*
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-->
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.
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-->
What i said!!!
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-->
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
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-->
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-->
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.