Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

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

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

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. 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. 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. News

    2. Forum Support

    3. Site Suggestions

Please be aware that this is not a tutorial request forum! Use the appropriate topic for the effect.
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
Akiri
On 3/4/2018 at 10:59 AM, xelono said:

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

Bro

you maybe forget to apply the animation to texture,you can follow these steps

 

1:after setting up your animation ,click this button to save animation

https://imgur.com/CJU6u7O

 

2:then click the animation on the left list

https://imgur.com/Q9yIgyg

 

3:then double click the frames-merged texture icon on the right to apply the animation to texture,after this the icon will have a movie tape mini-icon

https://imgur.com/dTu6qVR

 

4:finally click the save dff button to save dff with animatin

https://imgur.com/WzI9t21

 

Edited by Akiri
for helping

Share this post


Link to post
Share on other sites
Akiri

I want to state the meaning of "point in the timeline",so let's make a example

 

the first keyframe:

https://imgur.com/XWJz9ps

 

the second keyframe:

https://imgur.com/zXinM99

 

from pictures above,the meaning of "point in the timeline" is similar to "the position of timeline"

 

and these two pictures mean:

from the first keyframe,the animation will take 1.5-0=1.5 seconds to play to the second keyframe

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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