How to create toggle textures?

Avatar
Sejievan
232 Posts
Posted Jan 10, 2013
I've been searching for almost one week and i've found nothing about it, (just how to create regular ones), i was needing help in creating that toggle textures like the indicator lights, i was testing an idea that i have, and with multiple toggle brushes it's very complex and a little confuse toggle textures will really helpful. :biggrin:

i will be very gratefully for anyone that be able to help =)

ps: also did anyone have recivied a 6.6gb update to the authoring tools too??

Advertisement
Registered users don’t see ads! Register now!
Avatar
Lpfreaky90
2,842 Posts
Posted Jan 10, 2013
Replied 1 hour later
I'm using GIMP with the gimp-vtf plugin to make an image with two layers and export it to a vtf. In the export options choose "Use Layers as: Animation Frames".

Then make sure that there's the following in your vmt:

ToggleTexture
{
toggleTextureVar $baseTexture
toggleTextureFrameNumVar $frame
toggleTextureShouldWrap 0
}
}
}

My whole vmt:

UnlitGeneric
{
$baseTexture "Lp/signage/indicator_lights_corner_floor_invisible"
$surfaceprop glass
$translucent 1
"%keywords" portal
$decal 1
Proxies
{
ToggleTexture
{
toggleTextureVar $baseTexture
toggleTextureFrameNumVar $frame
toggleTextureShouldWrap 0
}
}
}

Hope that helps :smile:

Avatar
Sejievan
232 Posts
Posted Jan 10, 2013
Replied 29 minutes later

Lpfreaky90 wrote:
I'm using GIMP with the gimp-vtf plugin to make an image with two layers and export it to a vtf. In the export options choose "Use Layers as: Animation Frames".

Then make sure that there's the following in your vmt:
```
ToggleTexture
{
toggleTextureVar $baseTexture
toggleTextureFrameNumVar $frame
toggleTextureShouldWrap 0
}
}
}

>
> My whole vmt:
> ```
UnlitGeneric
> {
> $baseTexture "Lp/signage/indicator_lights_corner_floor_invisible"
> $surfaceprop glass
> $translucent 1
> "%keywords" portal
> $decal 1
> Proxies
> {
> ToggleTexture
> {
> toggleTextureVar $baseTexture
> toggleTextureFrameNumVar $frame
> toggleTextureShouldWrap 0
> }
> }
> }

Hope that helps :smile:

Thanks for answering :smile:, that really hepled, just a few questions to finish ..

1.they are just two common layers, or i need to do something specific on them ?
2.This method is applicable in the adobbe photoshop?
3.The .vmf is generated automatically for editing, or I have to create from scratch?

Avatar
Lpfreaky90
2,842 Posts
Posted Jan 10, 2013
Replied 53 minutes later
  1. yeah, they're just two normal layers, saved as animation frames.
  2. I don't know, I've never used photoshop to create vtf's :wink:
  3. You need to make the .vmt yourself; probably the only thing you've got to do is take my vmt and change the $basetexture to the path to your texture. That should do it.
Avatar
FelixGriffin
2,680 Posts
Posted Jan 10, 2013
Replied 10 minutes later
  1. No, the VTF writer is broken (at least with CS3, CS4, and CS5). Make TGAs of the layers and use VTFEdit to convert them all at once, then choose Animation Frames.
Avatar
josepezdj
2,386 Posts
Posted Jan 10, 2013
Replied 31 minutes later
Sejievan, this example should help you.

There you'll find how to make the .vtf. You have to import all layers/frames in VTFEdit. :wink:

Avatar
srs bsnss
552 Posts
Posted Jan 11, 2013
Replied 23 hours later

Sejievan wrote:
also did anyone have recivied a 6.6gb update to the authoring tools too??

That happened to me once. I had to wait it out. I think what happened is Steam/the Steam Cloud got confused. Try pausing the download and uninstalling the Authoring Tools. I know that sounds crazy, but try it and see what happens. Hopefully, it'll fix it.

If it doesn't, worst case scenario, re-install takes <15 mins tops.

Avatar
Sejievan
232 Posts
Posted Jan 11, 2013
Replied 43 minutes later

srs bsnss wrote:
Sejievan wrote:

also did anyone have recivied a 6.6gb update to the authoring tools too??

That happened to me once. I had to wait it out. I think what happened is Steam/the Steam Cloud got confused. Try pausing the download and uninstalling the Authoring Tools. I know that sounds crazy, but try it and see what happens. Hopefully, it'll fix it.

If it doesn't, worst case scenario, re-install takes <15 mins tops.

I've think in that too, but it says that Portal 2 is using the files and don't let me unistall... =/

Avatar
Sejievan
232 Posts
Posted Jan 11, 2013
Replied 1 minute later
For the guys who helped me thanks =) i will solve this problem with the SDK, and after i will test one custom toggle texture that i created for see if i works.
Avatar
srs bsnss
552 Posts
Posted Jan 12, 2013
Replied 15 hours later

Sejievan wrote:

I've think in that too, but it says that Portal 2 is using the files and don't let me unistall... =/

Oh yeah, I forgot about that happening.
Well, what I did was just leave it overnight to download the 6.6gb. So if it's still going now maybe that's all that you'll be able to do.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Sejievan
232 Posts
Posted Jan 13, 2013
Replied 1 day later
Well after downloaded 6.6gb, and absolutely no changes at all... i managed to test one custom TT and Success =), thanks again YOU GUYS ROCK!