Translucency in weapon sprites.

Need help with your project? Ask here.
User avatar
ZDave
Posts: 33
Joined: Wed Jul 29, 2009 19:55
Location: Aus

Translucency in weapon sprites.

Post by ZDave »

I tried applying translucency to a weapon sprite, but the higher the alpha the darker the sprite gets and doesn't apear translucent.

Code: Select all

sprite FIRAA0, 1440, 900
{
 XScale 3.0
 YScale 3.25
 Patch FIRAA0, 460, 277
 {
  Alpha 0.8
  Style Add
 }
}
Is there any way to make it appear translucent against the game background?
User avatar
ZDave
Posts: 33
Joined: Wed Jul 29, 2009 19:55
Location: Aus

Re: Translucency in weapon sprites.

Post by ZDave »

Come on guys is there anyone, this is the last thing thats stopping me from creating my weapon, I've put so much work into it.
All I'm trying to do is to make a weapon sprite with additive translucency.

The first one is original and also looks the same with "Style Add" by itself and 0.1 translucency by itself.
The second is with 0.1 translucency and "Style Add" together.
It seems to me that the patches only appear translucent against other patches in the composite image.
All I want to know is if its possible to make them appear translucent against the game background and if so, how can this be done.

Code: Select all

sprite TNT1A0, 2000, 2000
{
  XScale 2.0
  YScale 2.25
  Patch 9FSPO0, 200, 5
  {
    Alpha 0.1 // first image.
  } 
} 
Attachments
01.png
01.png (213.56 KiB) Viewed 1261 times
02.png
02.png (204.52 KiB) Viewed 1261 times
User avatar
Enjay
Developer
Developer
Posts: 4723
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Translucency in weapon sprites.

Post by Enjay »

I have used translucency in the original graphic rather than via setting it in GZdoom. It works but I did come up with some minor issues:

http://forum.drdteam.org/viewtopic.php?f=24&t=4052
User avatar
Remmirath
DRD Team Admin (Inactive)
Posts: 528
Joined: Fri Feb 15, 2008 19:43
Location: Somewhere...
Contact:

Re: Translucency in weapon sprites.

Post by Remmirath »

This is better to be sticking here in Editing question, since it's not a proper bug report.
SoulPriestess wrote:Good job, Morpheus! You are teh awesum!
User avatar
Rachael
Developer
Developer
Posts: 3646
Joined: Sat May 13, 2006 10:30

Re: Translucency in weapon sprites.

Post by Rachael »

I agree. Thanks for taking care of that Morpheus. :)
User avatar
ZDave
Posts: 33
Joined: Wed Jul 29, 2009 19:55
Location: Aus

Re: Translucency in weapon sprites.

Post by ZDave »

Your right, I've added like 90% translucency to the original image and it doesn't show, whats worse is that "CopyAlpha" is meant to respect the png's alpha chanel, but it makes no difference to the image. :?
Post Reply

Return to “Editing Help”