Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (92,624 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

BobFromReboot

[SA]Creating Animated Textures with RW Animator.

Recommended Posts

BobFromReboot

Tutorial: Creating Animated Textures with RW Animator.

By BobFromReboot

 

**I will not get into the actual animation/creating of the textures in this tutorial as that is a more general subject and many tutorials can already be found online.

**Do not work with original files, always backup! Use modloader to test your mod non-destructively!

 

Things you will need:

*Photo editing software (photoshop, the gimp, etc)

*Med map editor

*Magic TXD

*RW Animator (GTAF Thread)

 

 

1.Find the model you would like to give an animated texture to.

 

a)I used med (map editor). You must open the gta.img file, load up the scene of the area you need, then double click the object to highlight it.

b)Once highlighted, you will be able to right click the object to extract it's dff file, and txd file. Both are needed. Move them into the RW Animator folder, you must do this, files can be deleted later.

 

2.Prepare your frames.

 

a)You have several options. You can animate an existing texture using your image editing software of choice like I did with my AnimatedAC mod. You could get an animated gif and break that down into frames. You could use a software like VirtualDubMod or other to extract frames from any video.

 

b)Once you have all your frames created, put them in a folder, and rename them in order from start to finish as 0, 1, 2, 3, etc. If you have 20 frames, they should be named from 0-19.

 

2.Compile into one large image.

 

a)Open the “Frames combining” exe file included with RW Animator.

 

b)Click Project → Options

 

c)Math time. Depending on the amount of frames your animation has, you will need to change these settings. For example, an 8 frame animation could be setup 4 wide, 2 high (4 horizontal divisors, 2 vertical.) You must then set the dimensions to match the total texture size. You can have blank frames at the end of the file, they will not be seen in the animation as long as they are unused in the dff.

 

d)Once you have the options set, drag and drop the folder containing the frames. Go to Project -> Save and a sheet with all the frames will be created as one image.

 

3.Replace image in TXD file.

 

a)Open MagicTXD, replace the original texture with the sheet of frames you have created.

b)Save the txd file.

 

c)Extract the contents of the TXD as TGA files in the RW animator directory.

 

4.Use RW Animator to define where and when each frame is played.

 

a)Open RW Animator.

 

b)Drag and drop the dff in the RW animator folder onto the RW Animator window. If the TXD was extracted as TGA files in the directory, you will see all the textures associated with the DFF in the bottom right, if you did not, they will be blank.

 

c)Select the texture you are going to animate, you should see it as a thumbnail of the sheet you created.

d)Click new animation, name it something appropriate (flashing lights, spinning fan, etc)

 

e)You can use the “Create TV Screen” option on top as a shortcut to creating your frames. If you get the settings correct to match how your sheet of frames is setup, it should line up automatically. The time increment setting is in seconds. The default is 0.1 seconds in between each frame.

 

f)You could also manually setup your frames. The readme file has the instructions. If you are on a keyframe, use backspace to modify the UV settings, if you use delete it will delete the frame.

 

You will need to make sure the UV scalling is correct, or you will see your entire sheet of frames on the texture instead of the individual frames. Each keyframe in the program needs to know which of the frames in the large image to use.

 

You use UV coordinates for this. The amount “tiles” you have used will determine the UV coordinates. For example, if you have four frames wide, and three frames high (12 frames total) The coordinates starting from top left would be (0,0) (0.25,0)(0.5,0)(0.75,0). The next row would be (0,0.33) (0.25,0.33)(0.5,0.33)(0.75,0.33). The bottom would be (0,0.66) (0.25,0.66)(0.5,0.66)(0.75,0.66). Much more info on UV mapping is available online.

 

g)When you have your keyframes setup, click on save changes to selected animation. I would suggest saving every step or two you modify as it is sort of a buggy/old program and info is lost if you click the wrong button.

 

h)After saving the animation, use the top left save button to commit the changes to the DFF file. The DFF/animation can still be modified after it has been saved, it is not encrypted or anything.

 

i)Testing time, use mod loader. Copy the dff and txd files you have changed into the folder where you put other textures/models. The one for gta3.img. Launch the game, and find the model(s) that you were working on. If you were lucky, you will see the texture animating. If you got your UV mapping wrong, you will see weird tiles acting as conveyer belts. If that is the case you can close out and fix the issue and try again.

 

Feel free to ask any questions.

Edited by BobFromReboot

Share this post


Link to post
Share on other sites
xelono

This does not work, I followed the instructions step by step and there is no animation!

Also that the .dff loses the night vertex. :c

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.