Muzzle Flash Textures

D2X-XL - Descent II update for modern systems with many new features and enhanced graphics. Home Page

Moderators: Grendel, Aus-RED-5

Post Reply
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Muzzle Flash Textures

Post by heftig »

Since descent2.de is down, I'm just gonna repost this here. I really want some comments.

http://wc3banlist.de/muzls.rar

These are my textures for the muzzle flashes. They were created by some Photoshop work on the original textures.

Diedel asked me for versions with more frames (9). However, I'm not that skilled yet. I'll try working on it nonetheless... making it expand outward will be tough.

Maybe someone else can create smoothly animated versions. The PSD file is included. You'll find I'm fond of non-destructive editing.
User avatar
MetalBeast
DBB Ace
DBB Ace
Posts: 151
Joined: Wed Sep 05, 2007 6:03 am
Location: http://3d-get.de/metalbeast
Contact:

Post by MetalBeast »

Looks very good, however the last frame is a little bit too dark, but anyway good job!

Btw. can any admin rename my account to MetalBeast please?
thx.

MB.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

heftig,

very nice flashes. Just rename them to muzl0X#0.tga (X=2,3,5,...), and muzl4 needs to be muzl05.
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

Thanks, I appreciate your comments. :)

Updated archive uploaded:
  • Brightened blue flash
  • Brightened last frame
  • Renamed files
User avatar
MetalBeast
DBB Ace
DBB Ace
Posts: 151
Joined: Wed Sep 05, 2007 6:03 am
Location: http://3d-get.de/metalbeast
Contact:

Post by MetalBeast »

Link doesn't work...
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

Yeah, sorry. :P

I uploaded the archive with a lower-case name. I was *about* to change the link.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Your muzzle flashes are very nice. :)
User avatar
MetalBeast
DBB Ace
DBB Ace
Posts: 151
Joined: Wed Sep 05, 2007 6:03 am
Location: http://3d-get.de/metalbeast
Contact:

Re:

Post by MetalBeast »

Diedel wrote:Your muzzle flashes are very nice. :)
Yes, they look great :D

We still have many high-res textures to be done ;)
So, it would be nice, if you can help us.
It seems, you are good with texture making. :D
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

X4!
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

Hmm, so it seems. Thanks for the invitation, I just can't draw for ★■◆●. :P

I let Photoshop do some arithmetic while keeping my cursor off those blasted drawing tools as much as possible. :)
User avatar
MetalBeast
DBB Ace
DBB Ace
Posts: 151
Joined: Wed Sep 05, 2007 6:03 am
Location: http://3d-get.de/metalbeast
Contact:

Post by MetalBeast »

I also can't really draw. Maybe a little bit.
But I found a way for making good textures without drawing them.

Especially for D2x-xl you can make good textures with resize the old ones and using spezial filters and other techniques for improving them, so they look like new. ;)

If our forum is back, I will show you all my tricks :D
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

An easy way to add frames is to split one animation into its 3 frames.

Then create frame 0-1 by computing the average of frames 0 and 1 and increase both brightness and contrast by 60 %.

Create frame 1-2 by multiplying frames 1 and 2, using a division factor of 18. Apply some gentle smoothing (remove image static) and then high pass sharpening again.

Finally combine all frames in the sequence 0, 0-1, 1, 1-2, 2. Adding an alpha channel is not a bad idea to avoid problems that can be caused by turning off explosion transparency in D2X-XL.

Worked pretty well here.

More than 5 frames do not make sense anyway, given how fast the flash has to appear and disappear.
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

I'll try adding more frames.

I noticed the flashes are off-center. Should I center them so the center of the flash is in the center of the texture?
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

Good that you are asking. Yes, please center them. That's what I did with the 5 frame flashes I created.
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

I'm done uploading an improved version.

6 frames. The only thing I'm not happy with is how quickly the sparks fade.

It was all done by additively blending the original frames together at different sizes, adjusting the brightness here and there.

Image
User avatar
MetalBeast
DBB Ace
DBB Ace
Posts: 151
Joined: Wed Sep 05, 2007 6:03 am
Location: http://3d-get.de/metalbeast
Contact:

Post by MetalBeast »

WOW!, looks great!
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

Thanks! :)

Next step will be adding an alpha channel.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

That should be simple. I don't have photoshop, but maybe the procedure is similar to Paintshop Pro:

Copy the entire image to a new image (mask)
Turn the mask into grayscales
Added the mask as new mask layer to the original image
Store the layer in an alpha channel
delete the layer (deny to merge it with the image)

That's it.
User avatar
Aus-RED-5
DBB Friend
DBB Friend
Posts: 1604
Joined: Fri Apr 23, 2004 7:27 am
Location: Adelaide, South Australia
Contact:

Post by Aus-RED-5 »

That is one awesome muzzle flash! :D
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Re:

Post by heftig »

Diedel wrote:That should be simple. I don't have photoshop, but maybe the procedure is similar to Paintshop Pro:

Copy the entire image to a new image (mask)
Turn the mask into grayscales
Added the mask as new mask layer to the original image
Store the layer in an alpha channel
delete the layer (deny to merge it with the image)

That's it.
The problem with this approach is that the image gains a dark fringe, and it doesn't look good on bright backgrounds.

I'll work something out. Maybe I'll make it mostly opaque. If the explosions are not transparent, this will fit in better IMO.

edit:

How's this? Pretty much Diedel's approach, but with an extreme decrease in alpha gamma (:lol:).

Image

The black fringe looks like a shadow.

Some questions:

D2X-XL does either normal or additive blending, yes?
I guess the alpha channel is taken into account with additive blending as well?

A suggestion:

Have you considered implementing screen blending as a third blending style alongside additive blending? It's not nearly as prone to oversaturation as additive blending is.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

What is screen blending - GL_ONE, GL_ONE_MINUS_DST_COLOR?

You could multiplay the mask with itself before using it als alpha channel.
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

I don't think OpenGL provides screen blending. You'd have do it with shaders.

Additive blending simply adds the color values together:

Code: Select all

result = a + b
The result is then capped to the range 0..1 .

Screen blending (or \"negatively multiply\", as the german Photoshop calls it) first inverts the source and destination, multiplies them, then finally inverts the result.

Code: Select all

result = 1 - (1 - a)*(1 - b)
The result will never leave the range 0..1 (no capping needed).

Maybe screen blending will be useful for the lighting, as well.
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

That would be glBlendFunc (GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_COLOR), which is available in OpenGL.

Btw, re your 6 frame flash: The sparks fading quickly is np - the effect comes and goes extremely fast when starting or ceasing to fire.
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

Uploaded alpha channel versions. :)

Comments? Suggestions?
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

New version under the above link?
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

As always. ;)

So, I'm really interested in how these look ingame.
Post Reply