Welcome, Guest! Login | Register

Animated textures [Print this Article]
Posted by: NOmad
Date posted: May 14 2003
User Rating: 3 out of 5.0
Number of views: 4507
Number of comments: 1
Description: Making them, and getting them to work
Animated Textures in Half-Life


This is just a simple tutorial on how to make animated textures for Half-Life, and how to get them to work correctly. It’s not perfectly obvious how to work them, as I found out myself, so I decided to write this as to help others who may encounter the same problem.

First, you’ll need a couple tools, for making the textures:
  • A graphics program, for making the frames of the animation. (Paint Shop Pro, Photoshop, Corel Draw/Photopaint, etc.)
    If you don't have a graphics program, or can't afford one at the moment, you can download a free trial version of Paint Shop Pro (the current version is 8) at the developer's website, http://www.jasc.com. Also, if you want to test if your animation runs properly, considor downlading Jasc's Animation Shop while you are at it.
  • Wally, or a similar program for making and editing the Half-Life package (.wad) files.
    You can snag yourself a free copy of wally at http://www.telefragged.com/wally/


You can use Wally to make the textures as well, but I wouldn't reccomend it; there just aren't as many features as what you may find in the "big" graphics programs. However, you can use Wally to "finalise" the texture, by adding decals/bullet holes/rivets/etc.

Anyway, back on topic. You are going to want to open up your graphics program, and make the seperate frames for the texture. Actually making the textures is beyond the scope of my tutorial, you'll have to learn that yourself, and/or take a class. Also, keep in mind that the demensions (Length and Height) must be divisible by 16.

Now that you've made the textures, I suggest you should make sure that they "run" well together, by testing them in an actual animation (i.e. an animated .gif image). When you finish, save the images into seperate .jpg files (or .bmp, .tga, .pcx, etc. Whatever floats your boat. Just be sure that Wally can open the file.).

Open the images in Wally. Now, either create a new .wad file, or open the halflife.wad WARNING! Do not overwite, or delete any of the existing images in this wad! If you did, it would be incredibly stupid. Plus, you'd have to reinstall Half-Life to get the textures back user posted image. I suggest creating your own wad. :-) Now, take the image that you wish to be first in the animation, and copy it, and then paste it into the wad. a dialogue box will pop up that looks like this:

user posted image


This is the most important step: In the little space where you put the name of the file, stick a "+0" in front of the name; let's say it the name of the animation will be "animat." So, the first frame will be named "+0_animat" (you don't have to use an underscore, but it helps to make it look better.)

This tells Wally, Hammer, and Half-Life that this is the first frame in an animation (or "zeroth" if you want to be picky about it user posted image) called "animat". From there, you do the same thing with each frame, except you add "+1" to the beginning of the second frame, and "+2" to the third, etc. Just remember that the word part (In this case "_animat") will be the same for all frames in the animation. Only the numbers change (Editors Note: There is a limit of 10 frames in any one animated texture, so the numbers can only go from +0 to +9).

When you get all the frames in the wad, save it, and you've got yourself an animated texture!


Well, thanks for reading my tutorial! I hope it helps and/or clears anything up for you. If you need any additional help, either E-mail me, or IM me if I'm online (). Good luck!

Rate This Article
This article is currently rated: 3 out of 5.0 (1 Votes)

You have to register to rate this article.
User Comments Showing comments 1-1

Posted By: worldspawn on May 31 2004 at 15:10:53
Ah, thanks man! I finally got it working...


You must register to post a comment. If you have already registered, you must login.

Latest Articles
3rd person View in Multiplayer
Half-Life 2 | Coding | Client Side Tutorials
How to enable it in HL2DM

By: cct | Nov 13 2006

Making a Camera
Half-Life 2 | Level Design
This camera is good for when you join a map, it gives you a view of the map before you join a team

By: slackiller | Mar 04 2006

Making a camera , Part 2
Half-Life 2 | Level Design
these cameras are working monitors that turn on when a button is pushed.

By: slackiller | Mar 04 2006

Storing weapons on ladder
Half-Life 2 | Coding | Snippets
like Raven Sheild or BF2

By: British_Bomber | Dec 24 2005

Implementation of a string lookup table
Half-Life 2 | Coding | Snippets
A string lookup table is a set of functions that is used to convert strings to pre-defined values

By: deathz0rz | Nov 13 2005


Latest Comments
Spinning Corpses Simple Fix
Half-Life | Coding | Snippets
By: darkPhoenix | Sep 05 2008
 
Where do we go from here
General | News
By: MIFUNE | Jun 09 2008
 
The Input/Output system
Half-Life 2 | Level Design
By: nazitaco | Dec 23 2007
 
Where do we go from here
General | News
By: Rob_F | Nov 22 2007
 
Rescaling Half-Life
Half-Life | Coding | Shared Tutorials
By: christoph | Nov 12 2007
 
GameUI
Half-Life 2 | Coding | Client Side Tutorials
By: Evil_j | Oct 29 2007
 
3 State Zoom For Any Weapon
Half-Life 2 | Coding | Server Side Tutorials
By: Ennuified | Oct 18 2007
 
Storing weapons on ladder
Half-Life 2 | Coding | Snippets
By: cct | Sep 07 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: DarkNight | Aug 28 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: deedok | Aug 20 2007
 

Site Info
296 Approved Articless
5 Pending Articles
3940 Registered Members
2 People Online (34 guests)
About - Credits - Contact Us

Wavelength version: 3.0.0.9
Valid XHTML 1.0! Valid CSS!