Having trouble making custom textures with multiple layers.

Avatar
AD_79p2
103 Posts
Posted Aug 25, 2013
So, I'm trying to make some custom textures with more than one layer. I add another layer to the texture in Paint.NET, save it, and then exit. Later I decided to open Paint.NET to modify the texture a bit, but when I loaded the file there was only one layer.

So, how do I make it so both layers save?

Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Aug 25, 2013
Replied 29 minutes later
No standard image format supports multiple layers. Sorry.

Paint.NET, Gimp, Fireworks, and Photoshop all have custom ways to save textures with layers. I'm not sure what the Paint.NET one is called, but it should be the first option in the Save As dialog.

Avatar
josepezdj
2,386 Posts
Posted Aug 31, 2013
Replied 5 days later

FelixGriffin wrote:
No standard image format supports multiple layers. Sorry.

This.

If you want to save your multi-layer image to any format like .PNG, .JPG, etc., Paint.Net will warn you the layers will be flattened (turned into just one).

But I'm sure you mean a multi-layer .VTF file. In this case, Paint.Net will not ask or warn anything, it will just save your image, but it will still only save one layer, the sum of all the layers you had. This is not the right way to make your multi-layer .VTF files. If this is what you are trying to do (to later use the env_texturetoggle entity to switch amongst them) you need to:

  1. Save each of your drawings under a different file name followed by an order number, making each image number be the layer number you want in the .VTF file. For example:

- my_texture01
- my_texture02
- my_texture03

  1. Open VTFEdit and go to File > Import, and select all your different images. You can check that you imported all of your images correctly by using Frame +/- buttons, or even Play to watch all of your layers be displayed in a row in a loop.

img

  1. Save the file under your final desired name.
Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Aug 31, 2013
Replied 1 hour later
Having used Paint.NET now, the multi-layer format you want is called .PDN (for Paint Dot Net).

By the way, does anyone know how to open PDN files in Photoshop? I don't want to have to export each layer separately and import them one by one.