How to: Create Opaque Fade Filters

1337Elite

New Member
Reaction score
14
Creating Opaque Fade Filters
The Basics of Alpha Masking
----------------------------​

Introduction
I've noticed that many has posted question-threads about transparent fade filters. That's the reason that I wrote this.

So, welcome to my (short) tutorial! This will show how to use the following things:
  • Create Transparent textures. Such as: Skins and Fade Filters
  • Basics of Photoshop
  • Wc3 Image Extractor II. How to save textures as *.blp's
And, with tutorials, there are almost always some tools of the trade. So you need to following programs:
  • Photoshop, or other photo editing tool.
  • Wc3 Image Extractor II, or other MPQ import/export application.
    Download here
  • Warcraft 3: The Frozen Throne
There's what's needed for some basic, maybe advanced, texture editing.
I will go through everything, as throughly as possible. If I missed anything, or just made something wrong, that you want to have changed, just post a complain. :p

Shall we get started?

I. Creating the Texture
Open up Photoshop, then create a new texture, preferably with the dimensions 1024 x 768 px. If you want real high quality, and a huge space-waster, you could go with 1600 x 1200 px. Select the Magic Wand tool[W], then select the background, then press delete. Now you should have a transparent background. But! This will not be transparent in-game! We will have to make an alpha map!

Now you should have a blank and transparent image. Think the image as the screen in-game. If you want something that will be shown in the upper-right corner of the screen, you could do something like this:

A sample Fade Filter

Now we have our base-texture, but how will we make it transparent? If you would convert this to a *.blp texture now, you would get the: "Now approaching[...]"-thing, and a black background. Read the next chapter, or step, to read about Alpha Masks.

II. Alpha Masks

Alpha Masks are very useful, when it comes to texturing. They handle the transparencies, by checking the darkness/brightness of the pixel. They can only be made in Grayscale/Black & White. The brighter the pixel is, the less transparency it has, and vice versa.
So, black is fully transparent; white is not transparent, at all.

Let's make a simple alpha mask. So we'll go back to our editing program.

Go to the Channels tab. There you'll find three Channels: RGB, Red, Blue, and Green. Create the Alpha mask, by pressing the second button from the right, at the bottom, to create a new channel. This will have the name "Alpha 1", and it will be fully black; fully transparent. This is the stuff we want!

This shows the Channel Tab,
and where the 'New channel" button, is located


III. Editing The Alpha Channel

The editing of the Alpha Channel is pretty simple. As I said before: White is not transparent, and black is transparent.
So we'll check my example's Alpha Channel, that I showed before:

Shows the Alpha Map and the Base texture, respectively.

Here, I have made an alpha mask, by selecting everything that's on my main layer, by Ctrl-clicking on the Display Image. (Keep the selection)
Then, I navigated to the Channels tab again, to select the Alpha 1(You maybe renamed it). The selection is still there, so I just inverted the selection(Ctrl - Shift - I), then I pressed delete.

If you did like me, you should have a simple Alpha Map! (Optional: Before you save it, resize the image to the dimensions: 512 x 512 px. Just to save some space)
Now, save the texture as a Targa(*.tga) image. Pick 32 Bit/pixel compression, it saves the Alpha Map correctly.

IV. Saving to a Blizzard Image Map(*.blp)

This is the final step! This should be the easiest step in this tutorial, except the importing step. :p

Open up Wc3 Image Extractor II, or your Image Extractor of choice.
Now open your texture, that you recently saved. (In the menu: Open -> Open Image.) The application should look something like below:


Don't worry, if you can't see the whole texture of your's, just press the "More..."-button, to see the whole texture. To be able to import the Fade Filter to the map, and use it, you need to save it as a *.blp. Press the "Save" button in the menu, and press the one and only button that's there. Click the
"Save as type" roll down bar. From there, select BLizzard image Map. Then save. ^^
Choose the wanted quality level; now you're done! :D

V. Importing it in your map

If you know how to import it, and use it in the game, you could skip this step.

Now that you have your nice Fade Filter, with an Alpha Map and all, it would be nice to see it in action, wouldn't it? :rolleyes:
Open up your World Editor, and open up the Import Editor. Click the Import button, then choose to open your custom Fade Filter. Rename it, if you like. ^^

Create a simple testing trigger, that shows your Fade Filter. A simple example:
Code:
Test Trigger
    Events
        Player - Player 1 (Red) Presses the Up Arrow key
    Conditions
    Actions
        Cinematic - Fade out and back in over 2.00 seconds using texture war3mapImported\fade_filter.blp and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
Remember: You need to have 100%, as the RGB(Red, Green, Blue) values, or it'll be black!

VI. Examples


The quality of the sample to the left, wasn't that good, because I didn't save it in quality.
Now you have something to play around with! And I hope people use this in their maps, as it's very decorative. :D

VII. Possible Uses
If you use your creativity, you could end up with some nice results. You could use this for, as I showed with my example fade filter, entering Region pop-up. You could use this for help menus, command windows.. Whatever that's static, and is not animated. :p

Hope that all of you have fun, playing around with this!

~1337Elite
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Haven't seen a reasonable and easy-to-follow tutorial in awhile. This is rather
good and useful. Good job!:)

Only thing that bothers me, is that the images are formatted to the right. They
would be better on left or in extreme cases, in the middle.
 

n[u]ll

You can change this now in User CP.
Reaction score
93
I've noticed that many has posted question-threads about transparent fade filters.
yup thats me! xD
well great tutorial 5/5
it will be useful in the future when i forget how to do it =)
 

1337Elite

New Member
Reaction score
14
Haven't seen a reasonable and easy-to-follow tutorial in awhile. This is rather
good and useful. Good job!:)

Only thing that bothers me, is that the images are formatted to the right. They
would be better on left or in extreme cases, in the middle.

Thanks for the kind words. :)

Yeah, it bothers me too, kinda. I think I clicked the "Align Right" button. Fixing that right now. :p

yup thats me! xD
well great tutorial 5/5
it will be useful in the future when i forget how to do it =)

Thanks for the nice rating. ^^
It's great for people to know these things. :p
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
Nice one (+Rep :p) thats kinda good even though i don't believe i will use it in my map but it's always good to learn something new :D
 

1337Elite

New Member
Reaction score
14
Knowledge is power. :p

Being creative with this, you could make all sorts of things. Like a static menu, or a window of sorts. :)
 

Cilla

is watching you! Ahh, fresh meat!
Reaction score
39
Do you have control even if a filter is active?
If yes, this is AWESOME!
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
now when i think of it it might be useful :p

Edit: would u be able to pass the Topic Lines with Fade filter?
 

1337Elite

New Member
Reaction score
14
You have control. That's the awesome thing about them. ^^,

Edit: I'll add some possible uses for this, in the main post. :p
 

elmstfreddie

The Finglonger
Reaction score
203
I just realized something, you could use an ever lasting filter like this of a crosshair to make an FPS game.. :rolleyes: *ponders*
 

Chocobo

White-Flower
Reaction score
409
For the moment (yet), it's not really a total Transparent Fade Filter tutorial, since we can not see over the filter.

"Tutorial - Creating Fade Filters and using them" should be a more right title. (because there is only one part about it there, and you didn't wrote we can change the whole transparency with the trigger (the with 0.00% transparency on the trigger))
Only the Alpha Channel (black) is transparent. :p
 

1337Elite

New Member
Reaction score
14
For the moment (yet), it's not really a total Transparent Fade Filter tutorial, since we can not see over the filter.

"Tutorial - Creating Fade Filters and using them" should be a more right title. (because there is only one part about it there, and you didn't wrote we can change the whole transparency with the trigger (the with 0.00% transparency on the trigger))
Only the Alpha Channel (black) is transparent. :p

Now that I think about it, "Creating Transparent Fade filters", isn't that great of a title. It's partially transparent, not fully. I'll come up with a better name.

And, the whole gray scale is transparent. If you make a light gray pixel, that certain pixel, will get partially transparent. You can see that in action in the "BOOM!" fade filter, at the bottom. You can see partially through the edges.

nice tut :D

Why do you keep bumping this?

Because it gets on the fifth page, and I think this is great stuff to know.
 
U

Ur-Quan

Guest
This should get approved because it's usefull and unique tutorial on site.
I will use it as commercials in my map :D.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/
  • The Helper The Helper:
    Here is another comfort food favorite - Million Dollar Casserole - https://www.thehelper.net/threads/recipe-million-dollar-casserole.193614/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top