VGUI TGA images are no like HUD Sprites.  They do not draw one colour
transparent by default.

Translucency is controlled by an alpha map in the image.  Black is
transparent (or white?) and white is opaque (or transparent?) and the in
between is a gradient difference of the two.

You need to use a 32bit TGA file format, the first 24bits are the colour,
the next 8bits are the alpha map.

Photoshop has some problems with alpha from memory, Paint Shop Pro works
like a charm.

Hope this help.

Michael Shimmins
Sesechial Software

Phone: +613 9504 3665
Fax:     +613 9504 3488
Mobile: 0407 643 414
_______________________________________________________
Important - This email and any attachments may be confidential. If received
in error, please contact us and delete all copies. Before opening or using
attachments, check them for viruses and defects. Regardless of any loss,
damage or consequence, whether caused by the negligence of the sender or
not, resulting directly or indirectly from the use of any attached files our
liability is limited to resupplying any affected attachments. Any
representations or opinions expressed are those of the individual sender,
and not necessarily those of Sesechial Software.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of tei
Sent: Tuesday, 25 November 2003 8:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Question about tga vgui images


0,0,1 is also black for human eyes

Kyle wrote:
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> In regards to these functions relating to the vgui:
>
>
>
> LoadTGAForRes(
>
> setImage(
>
>
>
> Is there any way to load a TGA file and draw it without a transparent blit
> of the RGB (0,0,0)
>
> In other words I want to draw black.
>
> --
>
>
> _______________________________________________
> 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




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to