BobFromReboot Posted May 10, 2016 Share Posted May 10, 2016 (edited) 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 May 10, 2016 by BobFromReboot Reyks, Aymunz, _onyx_ and 3 others 6 Link to comment Share on other sites More sharing options...
xelono Posted March 4, 2018 Share Posted March 4, 2018 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 Link to comment Share on other sites More sharing options...
Akiri Posted September 10, 2019 Share Posted September 10, 2019 (edited) 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 September 10, 2019 by Akiri for helping Murdagank 1 Link to comment Share on other sites More sharing options...
Akiri Posted September 10, 2019 Share Posted September 10, 2019 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 Link to comment Share on other sites More sharing options...
Aymunz Posted January 28, 2020 Share Posted January 28, 2020 Can this be applied to a book? Like instead of making the texture animate automatically, I can switch between keyframes by a defined key press, thus, it'll be like turning book pages. Is that possible? Help is appreciated. Link to comment Share on other sites More sharing options...
Murdagank Posted March 29, 2020 Share Posted March 29, 2020 (edited) i appreciate you bro. Edited March 29, 2020 by Murdagank Aymunz 1 Link to comment Share on other sites More sharing options...
id74110 Posted August 26, 2020 Share Posted August 26, 2020 Night environment color will be lost Akiri 1 Link to comment Share on other sites More sharing options...
HackMan128 Posted September 16, 2020 Share Posted September 16, 2020 (edited) most likely game engine limitations. applying animation data prevents nvc from work. The NVC data is still there ! It has just nulled datatype in the header because NVC does not allow animation to play. If you want to bring back NVC, just run RW Analyze and give a proper type to the header which contains Night Vertex Color data. Edited September 17, 2020 by HackMan128 Link to comment Share on other sites More sharing options...
jurist Posted October 25, 2020 Share Posted October 25, 2020 On 9/17/2020 at 1:13 AM, HackMan128 said: most likely game engine limitations. applying animation data prevents nvc from work. The NVC data is still there ! It has just nulled datatype in the header because NVC does not allow animation to play. If you want to bring back NVC, just run RW Analyze and give a proper type to the header which contains Night Vertex Color data. Could you please give me the password to unpack the archive of your masterpiece RW Animator? I will be very appreciate for your help. Thx. Link to comment Share on other sites More sharing options...
The End- Posted April 29, 2021 Share Posted April 29, 2021 Can someone do an explanation that I do not understand, for videos that do not have an accurate explanation. I hope for an explanation that clarifies that, and thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now