Please or Register to create posts and topics.

How to create toggle textures?

Page 1 of 2Next

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. :-D

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??

Level designer, 3D modeler, texture artist ,environment artist.

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:

Code: Select all
ToggleTexture
{
toggleTextureVar $baseTexture
toggleTextureFrameNumVar $frame
toggleTextureShouldWrap 0
}
}
}

My whole vmt:

Code: Select all
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 :)

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:

Code: Select all
ToggleTexture
{
toggleTextureVar $baseTexture
toggleTextureFrameNumVar $frame
toggleTextureShouldWrap 0
}
}
}

My whole vmt:

Code: Select all
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 :)

Thanks for answering :), 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?

Level designer, 3D modeler, texture artist ,environment artist.

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 ;)
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.

2. 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.

Falsi sumus crusto!

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:

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
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.

ImageImage
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... =/

Level designer, 3D modeler, texture artist ,environment artist.

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.

Level designer, 3D modeler, texture artist ,environment artist.
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.

ImageImage
Page 1 of 2Next