"Realistic" Muzzle Flashes

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Ligmatism
Posts: 21
Joined: Sat Feb 03, 2018 1:15 pm

"Realistic" Muzzle Flashes

Post by Ligmatism »

So, I'm working on coding a somewhat intimidating incarnation of the classic "Dual Uzis" for doom modding purposes, and I wanted to go for a kind of flashy Tarantino-esque asthetic, i.e. thunderous fire sounds, and large muzzle flashes. However, a problem I ran into when I was setting up the flash sprites, is that I can't get the actual flash to be consistently transparent ingame, let alone properly layered in front of the uzi sprites. Here's an image for reference.
ExampleCompressed.png
You do not have the required permissions to view the files attached to this post.
User avatar
Cherno
Posts: 1318
Joined: Tue Dec 06, 2016 11:25 am

Re: "Realistic" Muzzle Flashes

Post by Cherno »

I do not understand your problem. What do you mean by "consistently transparent"? What do you mean by "layered in front of the uzi sprites"? This doesn't make sense to me in the context of HUD weapon editing. :ugeek:
User avatar
Ligmatism
Posts: 21
Joined: Sat Feb 03, 2018 1:15 pm

Re: "Realistic" Muzzle Flashes

Post by Ligmatism »

I can't figure out how to set up the image so that the flash itself is positioned "in front of", as in behind in terms of image layers, the Uzi sprite, and simultaneously "cancel" out the black background for the flash layer. I've tried blend settings, re-positioning, messing with the alpha channel, but it's still this big ugly black square that obscures the player's vision ingame. Hopefully that makes a bit more sense.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: "Realistic" Muzzle Flashes

Post by Matt »

Translucent PNG?
User avatar
Cherno
Posts: 1318
Joined: Tue Dec 06, 2016 11:25 am

Re: "Realistic" Muzzle Flashes

Post by Cherno »

If the flash layer is behind the gun layer, there is no overlapping, period. I still can'T see the problem :P

As for the black background, read up on alpha channels.
User avatar
Ligmatism
Posts: 21
Joined: Sat Feb 03, 2018 1:15 pm

Re: "Realistic" Muzzle Flashes

Post by Ligmatism »

Problem solved, thanks guys.

Return to “Assets (and other stuff)”