Give a material 2 sources to loop through both

Create a VMT to play multiple animations alternately

By TheSpeedFreak 9 months ago

Hey. I would like to know, if it is possible to give a material 2 different material sources.

Say you have 2 animated materials. The files are known as ani_1.vtf and ani_2.vtf

The material should use ani_1.vtf and after the animation is finished it should change to ani_2.vtf When this animation ends it should change to ani_1.vtf again.

How would the vmt-file for the material look like ?

This would be the vmt-file for a standard animated material:

"UnlitGeneric" { "$basetexture" "folder/file" "$ignorez" 1 "$vertexcolor" 1 "$no_fullbright" 1

"Proxies" { "AnimatedTexture" { "animatedtexturevar" "$basetexture" "animatedtextureframenumvar" "$frame" "animatedtextureframerate" "20" } } }

Thanks

6 posts 334 views
  • You must be a member

Replies

  • Devieus's Levels
    • P3: Peasant
      Points: 23,316
    • E2: Guide
      EF: 26
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 3 years
    Username
    Devieus
    Posted 9 months ago

    If they are to remain in sequence, why not put them into one VTF file?

    User Title
    Sentinel of the TV remote
  • will2k's Levels
    • P3: Peasant
      Points: 10,663
    • E4: Teacher
      EF: 116
    • C3: Moderator
    • A4: Graduate
      Account Age: 2 years
    Username
    will2k
    Map Critic
    Posted 9 months ago

    Posted by Devieus

    If they are to remain in sequence, why not put them into one VTF file?

    you are truly devious :)

    I agree with your idea though. Since they are in sequence, put all the frames in one animated vtf and use your vmt with the animated proxy

    User Title
    cosa dici!
  • TheSpeedFreak's Levels
    • P2: Drudge
      Points: 1,154
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 9 months ago

    I want to use the files as an animated background. It's about 30sec long and nearly 1.500 frames. VTF-Edit crashes when I try to put that much frames into one file.

    Speedcore <3
  • will2k's Levels
    • P3: Peasant
      Points: 10,663
    • E4: Teacher
      EF: 116
    • C3: Moderator
    • A4: Graduate
      Account Age: 2 years
    Username
    will2k
    Map Critic
    Posted 9 months ago

    check my post here for animated .vtf limitations.

    Hope this helps

    User Title
    cosa dici!
  • Devieus's Levels
    • P3: Peasant
      Points: 23,316
    • E2: Guide
      EF: 26
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 3 years
    Username
    Devieus
    Posted 9 months ago

    Posted by will2k

    check my post here for animated .vtf limitations.

    Hope this helps

    Good thing I'm here now, too bad I wasn't 12 days ago; 512 kb is the filesize limit of sprays, VTF in general can be any size you like. It's clear this is an issue with the program, or the computer he's using.

    User Title
    Sentinel of the TV remote
  • TheSpeedFreak's Levels
    • P2: Drudge
      Points: 1,154
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 9 months ago

    When I try to import them into VTF Edit I get the message "VTF Edit has stopped working..." from windows after some minutes and the program closes.

    Speedcore <3
  • You must be a member