animated texture...

animated texture...

Re: animated texture... Posted by johnsmith27 on Wed Jul 6th 2005 at 9:04pm
johnsmith27
10 posts
Posted 2005-07-06 9:04pm
10 posts 1 snarkmarks Registered: Mar 4th 2005
Hello!

I'm trying to make an animated texture...but i can't find out how it works with source and the VMT/VTF format..

If i remember well, with HL1 it was many textures with +1 +2 +3 +4 at the end of the name..

But for HL2 i dont know how it works :confused:

My animated texture has 7 images (All exported in tga format), so do i have to compile the 7 images into 1 texture or? If yes, how can i achieve this?

And what i have to write into the VMT?

Sorry for the questions, but i didnt find anything that help to make this kind of textures...

Thanks in advance if you can help me :smile: (and sorry for my english..)

PS: it's for Counter-Strike source
Re: animated texture... Posted by French Toast on Thu Jul 7th 2005 at 4:55am
French Toast
3043 posts
Posted 2005-07-07 4:55am
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Try one of the numerous other threads on this topic.

Hint: Use the search button
Re: animated texture... Posted by johnsmith27 on Thu Jul 7th 2005 at 11:12am
johnsmith27
10 posts
Posted 2005-07-07 11:12am
10 posts 1 snarkmarks Registered: Mar 4th 2005
Ahh? Where??

I did search this forum but found nothing about animated texture...so :confused:

EDIT: oops, finally i've found the answer in the SDK doc...my mistake :biggrin:
Re: animated texture... Posted by johnsmith27 on Thu Jul 7th 2005 at 3:07pm
johnsmith27
10 posts
Posted 2005-07-07 3:07pm
10 posts 1 snarkmarks Registered: Mar 4th 2005
Well finally i'm still having trouble to figure out how it works...

I have 9 textures (compiled in VTF) named: b_Rain001 to b_Rain009

And i have 9 VMT file for each textures.

B_rain001.VMT looks like:

"LightmappedGeneric"
{
"$translucent" 1
"$baseTexture" "bunk/B_rain001"
"$startframe" "1"
"$endframe" "9"
"$nodecal" 1
}


While B_rain002.vmt looks like:

"LightmappedGeneric"
{
"$translucent" 1
"$baseTexture" "bunk/B_rain002"
"$startframe" "1"
"$endframe" "9"
"$nodecal" 1
}


I see the texture ingame but it's not animated...

I've also tried with:

"LightmappedGeneric"
{
"$translucent" 1
"$baseTexture" "bunk/B_rain001"
"$startframe" "B_rain001"
"$endframe" "B_rain009"
"$nodecal" 1
}


But it's not working either...

What am i doing wrong? Can someone help?

EDIT: Problem solved, answer can be found here: http://www.hl2world.com/bbs/need-help-with-animated-textures-vt38127.html
Re: animated texture... Posted by poisonic on Tue Jul 12th 2005 at 1:11am
poisonic
78 posts
Posted 2005-07-12 1:11am
poisonic
member
78 posts 18 snarkmarks Registered: Jun 8th 2005
<div class="abouttext">Message submitted 5 minutes after original post:</b></div>
Search on inet for VTFEdit its a handy tool that makes things easyer cause you import the frames in 1 vtf

the script shoulf be like:

"LightMappedGeneric"

{

"$baseTexture" "youracount/yourvtf"

"Proxies"

{

"AnimatedTexture"

{

"animatedTextureVar" "$basetexture"

"animatedTextureFrameNumVar" "$frame"

"animatedTextureFrameRate" "2"

}

you can change the frame rate with the last command "animatedTextureFrameRate"

good luck