Source 2/Docs/Level Design/Basic Construction/Mesh Texturing: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (clean up, added uncategorised, deadend tags)
Line 1: Line 1:
{{Dead end|date=January 2024}}
{{langsp}}
{{langsp}}


Line 32: Line 33:
=== Texture Lock Component Manipulations ===
=== Texture Lock Component Manipulations ===
[[File:Mesh-editing-5-4-texture-uv-lock-on.PNG|thumb|right|300px| ]]
[[File:Mesh-editing-5-4-texture-uv-lock-on.PNG|thumb|right|300px| ]]
In ''any'' selection mode, texture alignment will be maintained on faces - it locks the underlying UV representation so that you can significantly deform the mesh and still have it attempt to keep the same texture alignment.  
In ''any'' selection mode, texture alignment will be maintained on faces - it locks the underlying UV representation so that you can significantly deform the mesh and still have it attempt to keep the same texture alignment.


{{note|'''U''' and '''V'' refer to the coordinates on the texture map given to each vertex of a face; like ''X'' and ''Y''.}}
{{note|'''U''' and '''V'' refer to the coordinates on the texture map given to each vertex of a face; like ''X'' and ''Y''.}}
Line 50: Line 51:
In the '''Edges''' selection mode, at the bottom of the '''Tool Properties''' tab is the '''UV peel''' section. Select '''World Space''' to keep texture scaling and repetition relative to the world, select an edge loop that spans the length of the curve, then click the '''UV Peel''' button. The active texture should now "flow" around your mesh, maintaining alignment at all points.
In the '''Edges''' selection mode, at the bottom of the '''Tool Properties''' tab is the '''UV peel''' section. Select '''World Space''' to keep texture scaling and repetition relative to the world, select an edge loop that spans the length of the curve, then click the '''UV Peel''' button. The active texture should now "flow" around your mesh, maintaining alignment at all points.
{{clr}}
{{clr}}
{{Uncategorized|date=January 2024}}

Revision as of 08:52, 21 January 2024

Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)中文 (zh)Translate (Translate)

Texturing in Hammer is similar to previous iterations of Hammer except that it has a few more methods to apply textures due to the change in how geometry can be generated.

Basic Texturing

Mesh-editing-5-1-texturing-block.PNG

With some geometry created, click Browse on the Active Material pane located in the bottom left by default. It likely is currently still set to the default developer material. Type "reflect" and several shades of grey materials will show up. Selecting one of them will move it to the Active Material pane.

Switch to Faces mode and right-click on any of surfaces you want to apply the active material. To change scaling, rotation and so on, use the Align, Scale, Shift, Rotate, Fit and Justify buttons in the Face Editing tab. Select the appropriate faces and click a button to make changes.

To transfer the UVs from an existing face to a new face use Alt+RMB and the texture along with the alignment will be transferred to the new face.

Maintaining Texture Alignment

Added to Hammer are new forms of texture lock which are accessible through buttons to the right of the toolbar at the top. These can allow some advanced manipulations.

Texture Lock

Mesh-editing-5-2-texture-lock-off.PNG

With this mode active and Translate T meshes around in the Meshes, Objects or Groups selection modes, and texture alignment will be maintained. Disabled, texture alignment will not be maintained. Potentially useful if you're duplicating, say, chunks of brick wall or cliff face and you don't want the same texture alignment to appear in each segment.

Texture Lock Scale

Mesh-editing-5-3-texture-scale-lock-on.PNG

When active and Scale E meshes up and down in the Meshes, Objects or Groups selection modes, and again texture alignment will be maintained. As before, texture alignment will not be maintained when disabled - of use if scaling a section of wall and you don't want textures to be stretched.

Texture Lock Component Manipulations

Mesh-editing-5-4-texture-uv-lock-on.PNG

In any selection mode, texture alignment will be maintained on faces - it locks the underlying UV representation so that you can significantly deform the mesh and still have it attempt to keep the same texture alignment.

Note.pngNote:'U and V refer to the coordinates on the texture map given to each vertex of a face; like X and Y.

For example if texturing a bent or destroyed object - start with a correctly-textured undamaged version, switch on Texture lock component manipulations, then move vertices, edges and faces around to introduce some bends. If you're not careful, you can cause some serious texture-stretching.

UV Peel

Before UV Peel
Edge Selection Around Curve
After UV Peel

Useful for texturing around curvy arbitrarily-shaped meshes such as arches or road surfaces is the UV peel mode.

In the Edges selection mode, at the bottom of the Tool Properties tab is the UV peel section. Select World Space to keep texture scaling and repetition relative to the world, select an edge loop that spans the length of the curve, then click the UV Peel button. The active texture should now "flow" around your mesh, maintaining alignment at all points.

Wikipedia - Letter.png
This article has not been added to any content Wikipedia icon categories. Please help out by Wikipedia icon adding categories.
January 2024