A few things to look over ... 1.) Is your sprite(s) you compiled true additive sprites ? As in .. (from sprite tutorial)
"What this amounts to is a white pixel in your sprite is essentially totally opaque and white, and black pixel becomes transparent, and every value in between is appropriately translucent, modulo the background behind the sprite. The lighting of the surrounding area will not directly affect the lighting of this sprite, so in extremely dark areas the sprite may appear to be self-illuminating (which is often desirable, especially for explosions and lens flares). The brighter the background behind the sprite, the brighter the sprite will be." 2.) When placing in the sprite to your hud.txt did you do the x,y,width,height values right ? hud_main 320 320hud x y width height 3.) The 22 at the top of hud.txt ... is this the total lines (non-comments, actual sprite lines) in the hud.txt file ? This includes all 320\640 sprites, not just 22 sprites for each 320 and then 640, but all of them. If you did the above, and this is based on the fact that you truly did only edit the line in vidinit() in health.cpp to replace "cross" with "hud_main". Then its more than likely your sprite file itself. Thats about all I can offer for help, just double check what you did already. also ... "P.s. On a side note, I shouldnt use additive sprites if i want to use full color sprites and not make them transparent huh ? I see DOD uses an alpha test sprite for their hud_main piece" If you want to use a full color sprite then alpha test would be the way to go. Read the sprite tutorial located in the SDK for how to compile a alpha test. -Brandon Russell Programmer for Day of Defeat -----Original Message----- From: [EMAIL PROTECTED] [mailto:hlcoders-admin@;list.valvesoftware.com]On Behalf Of Paul Bean Jr. Sent: Saturday, October 19, 2002 2:42 AM To: [EMAIL PROTECTED] Subject: [hlcoders] Question and problem concerning the Hud Hey, I'm new to the Halflife programming scene, not new to c++ however, but looking at this thing sometimes makes me feel that ways, anyways on to the real problem. I'm trying to get a feel on how exactly i should make my hud look, and I want to use my own sprites, so I create a sprite (i make two of them, same exact sprite just one to use for 320 and one for 640) and create a hud.txt which looks briefly like below(i'll only show clip's of it to reduce spam and merely get my point across) --hud.txt-- 22 //Sr hud ....god ...measuring these things with photoshop suxorz //320 hud_main 320 320hud1 53 57 152 151 number_1 320 320hud1 5 5 9 10 .... //640 hud_main 640 640hud1 53 57 152 151 number_1 640 640hud1 5 5 9 10 ... --End of hud.txt-- As you can see i actualyl only have 22 sprites i want to load, so now I'm like ok... cheap quick hack, I'll just reposition the y coordinate and tell healthhud class to use hud_main instead of cross. I compile her in debug setting, load her up and try my mod ....bam. It blits FIRST the specified image i told it to clip and blit onto the screen it THEN places the WHOLE sprite file (not just the dimensions I specified)more or less a little diagnolly lower and to the right, NEXT to it. I don't get it ....what's going on ? what did I do wrong ? my sprite is an additive and I don't change anything to the source except what sprite it should use --Health.cpp-- m_HUD_dmg_bio = gHUD.GetSpriteIndex( "dmg_bio" ) + 1; //Cheap hack, I don't mind using cross as my hud :) m_HUD_cross = gHUD.GetSpriteIndex( "hud_main" ); --End of Health.cpp-- now i've searched and searched for real non incompetent tutorials(although I appreciate what little infomration i could squeeze out of the others, believe me) and have found no wrong doing in what I've done, yet come out with horid results. I have a screenshot of the problem for later in depth reference for anyone is intersted....*notes the chirping crickets and guesses no one is* so If anyone could give me any feedback whatsoever on this problem please do so( it also blits a little green tiny box at the bottom of my screen which i think is just a casualtie that will be solved when this issue is) Thankyou ahead of time, this is my first post and a lengthy one as you can tell, thanks for bearing with me and reading the message, I hope to contribute to more posts now that i've recently subscribed to the list. P.s. On a side note, I shouldnt use additive sprites if i want to use full color sprites and not make them transparent huh ? I see DOD uses an alpha test sprite for their hud_main piece Thankyou, Pj Bean (AKA Nakusku) Lead Coder of Saiyan Rebirth(http://www.sr.flagrun.net) _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

