Applying Textures: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (minor formatting)
(consolidated steps into less images, moved images right.)
Line 1: Line 1:
{{merge|Applying Textures/v2draft}}
__NOTOC__{{merge|Applying Textures/v2draft}}
{{first room menu}}
{{first room menu}}
[[Image:hammer_texturebrowser1.jpg |thumb|left|200px| Click the Browse... button to open the Texture Browser.]]
[[Image:hammer_texturebrowser1.jpg|thumb|left|200px|Click the '''Browse...''' button to open the Texture Browser.]]
Now, we’ll change the brick walls of our room into something more appropriate.
Now, we’ll change the brick walls of our room into something more appropriate.


In order to find the texture we want, click the '''Browse...''' button in the '''Texture Bar''' on the right side of the Hammer window.
* Click the '''Browse...''' button in the '''Texture Bar''' on the right side of the Hammer window.


This will open the '''Texture Browser'''.{{clr}}
This will open the '''Texture Browser''' so we can find the texture we want.{{clr}}


[[Image:hammer_texturebrowser2.jpg |thumb|left|400px| You can change the size of the texture preview to make it easier to see more textures at once.]]
[[Image:hammer_texturebrowser2.jpg|thumb|right|400px|You can change the size of the texture preview to make it easier to see more textures at once.]]


The '''Texture Browser''' lets you view and select textures to apply to objects in your map.
=== The Texture Browser ===
The '''Texture Browser''' lets you view and select textures to apply to brushes in your map.


Currently you might see only a few large textures, which makes things a bit tedious to browse, so we’ll need to change that:
Currently you might see only a few large textures, which makes things a bit tedious to browse, so we’ll need to change that.


In the lower left corner of the '''Texture Browser''' window there is a drop-down list bar called '''Size:'''. If it doesn’t say '''128x128''' already, pick that option.
* In the lower left corner of the '''Texture Browser''' window there is a drop-down list bar called '''Size:'''. If it doesn’t say '''128x128''' already, pick that option.


This will reduce the size of the texture samples, so that we can see more at once.{{clr}}
This will reduce the size of the texture samples, so that we can see more at once.


[[Image:hammer_texturebrowser3.jpg |thumb|left|400px| Double-click a texture to select it.]]
<!--[[Image:hammer_texturebrowser3.jpg |thumb|right|400px| Double-click a texture to select it.]]-->
* Find the texture under-labeled <code>brick/brickwall017b</code> and ''double-click'' it. This will choose the texture for use and automatically close the Texture Browser.


Find the texture under-labeled ''brick/brickwall017b'' and double-click it. (It might be in another position than the position in the image, depending on your screen resolution.) This will choose the texture for use, and close the '''Texture Browser'''. The texture that you just chose is shown in the '''Texture Bar'''.{{clr}}
The texture that you just chose is now shown in the '''Texture Bar'''.{{clr}}


[[Image:hammer_applycurrenttexture1.jpg |thumb|left|200px| Use the Apply Current Texture icon to put textures on brushes.]]
[[Image:hammer_applycurrenttexture1.jpg|thumb|right|200px|Use the '''Apply Current Texture''' icon to put textures on brushes.]]
=== Applying the texture ===
Now we'll apply the brick texture to one of the walls.


Left-click one of the wall brushes inside the room to select it. (It's easier to select a brush in the 3D view.)
* Left-click one of the wall brushes inside the room to select it. It's easier to select a brush in the 3D view.


Then, to apply the texture we picked in the '''Texture Browser''' to this brush, click the '''Apply Current Texture''' icon from the left panel.{{clr}}
* To apply the texture onto the wall, click the '''Apply Current Texture''' icon from the left panel.


[[Image:hammer_selectwall2.jpg |thumb|left|200px| Click in the 3D View to select the next wall piece.]]
<!--[[Image:hammer_selectwall2.jpg|thumb|right|200px|Click in the 3D View to select the next wall piece.]]-->
The rest of the walls also need to be textured, so we'll do those next.


Rotate the camera in the 3D view with the methods you learned earlier, so that it faces another wall brush that hasn’t been textured yet.
* Rotate the camera in the 3D view with the methods you [[View Navigation|learned earlier]], so that it faces another wall brush that hasn’t been textured yet.


Select it and apply the current texture to it in the same manner: Left-click the brush in one of the views to select it, and then press '''Apply Current Texture''' to apply the texture to the brush.
* Select it and apply the current texture to it in the same manner: Left-click another wall in one of the views to select it, and then press '''Apply Current Texture''' to apply the texture to the brush.


Continue applying this texture to the other two walls, so that all the four walls look the same.{{clr}}
* Continue applying this texture to the other two walls, so that all the four walls look the same.{{clr}}


[[Image:hammer_texturebrowser5.jpg |thumb|left|400px| Type in a text to only show materials with that text in their name.]]
[[Image:hammer_texturebrowser5.jpg |thumb|right|400px|Type in a text to only show materials with that text in their name.]]
=== Filtering the list ===
Finally we will texture the ceiling so it looks more like a ceiling.
Finally we will texture the ceiling so it looks more like a ceiling.


Click the '''Browse...''' button once again to bring up the '''Texture Browser'''.
Click the '''Browse...''' button once again to bring up the '''Texture Browser'''.


If you look at the scroll bar to the right, you can see that that are a lot of textures to browse through to find just ''one'' ceiling texture, but don't worry: Most ceiling textures are called "ceiling", and there is a filter option to filter out what doesn't contain that word. You'll find the filter text box beneath the list of textures in this browser, named '''Filter'''. Type in "ceiling" there, as shown in the image. This will reduce the browser list to only textures with names containing the word "ceiling".{{clr}}
If you look at the scroll bar to the right, you can see that that are a lot of textures to browse through to find just ''one'' ceiling texture, but don't worry -- most ceiling textures are called "ceiling", and there is a filter option to show any textures with that text in their name. You'll find the filter text box beneath the list of textures in this browser, named '''Filter'''.


[[Image:hammer_texturebrowser6.jpg |thumb|left|400px| Double-click the ceiling texture to select it.]]
* Type in "ceiling" in the '''Filter''', as shown in the image. This will reduce the browser list to only textures with names containing the word "ceiling".


Double click the texture called "''concrete\concreteceiling002a''", as shown in this image. The texture will be selected and the browser will close.{{clr}}
<!--[[Image:hammer_texturebrowser6.jpg|thumb|left|400px| -Double-click the ceiling texture to select it.]]-->
Now the list is much shorter, so you can easily find a texture you're looking for.
* Pick a texture from the list by double-clicking it. The texture named <code>concrete/concreteceiling002a</code> makes a good choice. The texture will be selected and the browser will close.


[[Image:hammer_applycurrenttexture2.jpg |thumb|left|200px| Select the ceiling brush with the Selection Tool, then use the Apply Current Texture icon to put textures on the ceiling.]]
<!--[[Image:hammer_applycurrenttexture2.jpg|thumb|right|200px|Select the ceiling brush with the Selection Tool, then use the '''Apply Current Texture''' icon to put textures on the ceiling.]]-->
* Finally, click the ceiling brush in the '''3D View''' to select it, click the '''Apply Current Texture''' icon to assign the texture to the ceiling, and you're done.{{clr}}


Now, click the ceiling brush in the '''3D View''' to select it, click the '''Apply Current Texture''' icon to assign the texture to the ceiling, and you're done.{{clr}}
If you change your mind, you can simply bring up the Texture Browser again, choose a new texture, and reapply it to a brush.
 
{{tip|To show the entire list of textures again, open the Texture Browser, select the text in the '''filter''' field, and press <Backspace> or <Delete> to delete it.}}


{{NavBar|Creating a Room|Your First Map|Adding Entities}}
{{NavBar|Creating a Room|Your First Map|Adding Entities}}
[[Category:Level Design Tutorials]]
[[Category:Level Design Tutorials]]

Revision as of 13:27, 28 August 2006

Merge-arrows.png
It has been suggested that this article or section be merged with Applying Textures/v2draft. (Discuss)
Click the Browse... button to open the Texture Browser.

Now, we’ll change the brick walls of our room into something more appropriate.

  • Click the Browse... button in the Texture Bar on the right side of the Hammer window.

This will open the Texture Browser so we can find the texture we want.

You can change the size of the texture preview to make it easier to see more textures at once.

The Texture Browser

The Texture Browser lets you view and select textures to apply to brushes in your map.

Currently you might see only a few large textures, which makes things a bit tedious to browse, so we’ll need to change that.

  • In the lower left corner of the Texture Browser window there is a drop-down list bar called Size:. If it doesn’t say 128x128 already, pick that option.

This will reduce the size of the texture samples, so that we can see more at once.

  • Find the texture under-labeled brick/brickwall017b and double-click it. This will choose the texture for use and automatically close the Texture Browser.

The texture that you just chose is now shown in the Texture Bar.

Use the Apply Current Texture icon to put textures on brushes.

Applying the texture

Now we'll apply the brick texture to one of the walls.

  • Left-click one of the wall brushes inside the room to select it. It's easier to select a brush in the 3D view.
  • To apply the texture onto the wall, click the Apply Current Texture icon from the left panel.

The rest of the walls also need to be textured, so we'll do those next.

  • Rotate the camera in the 3D view with the methods you learned earlier, so that it faces another wall brush that hasn’t been textured yet.
  • Select it and apply the current texture to it in the same manner: Left-click another wall in one of the views to select it, and then press Apply Current Texture to apply the texture to the brush.
  • Continue applying this texture to the other two walls, so that all the four walls look the same.
Type in a text to only show materials with that text in their name.

Filtering the list

Finally we will texture the ceiling so it looks more like a ceiling.

Click the Browse... button once again to bring up the Texture Browser.

If you look at the scroll bar to the right, you can see that that are a lot of textures to browse through to find just one ceiling texture, but don't worry -- most ceiling textures are called "ceiling", and there is a filter option to show any textures with that text in their name. You'll find the filter text box beneath the list of textures in this browser, named Filter.

  • Type in "ceiling" in the Filter, as shown in the image. This will reduce the browser list to only textures with names containing the word "ceiling".

Now the list is much shorter, so you can easily find a texture you're looking for.

  • Pick a texture from the list by double-clicking it. The texture named concrete/concreteceiling002a makes a good choice. The texture will be selected and the browser will close.
  • Finally, click the ceiling brush in the 3D View to select it, click the Apply Current Texture icon to assign the texture to the ceiling, and you're done.

If you change your mind, you can simply bring up the Texture Browser again, choose a new texture, and reapply it to a brush.

Tip.pngTip:To show the entire list of textures again, open the Texture Browser, select the text in the filter field, and press <Backspace> or <Delete> to delete it.