This article's documentation is for Source 2. Click here for more information.

Image Subrect Editor

From Valve Developer Community
Revision as of 00:06, 20 August 2023 by SethTooQuick (talk | contribs)
Jump to navigation Jump to search

English (en)Translate (Translate)
The new blank file view of the Image Subrect Editor.

The Image Subrect Editor is a tool in Source 2 used for making Hotspots. Hotspots are predefined sections of a texture used to apply materials to Hammer geometry fast and easy.

1. Viewport

The viewport is where rectangles are drawn to specify what parts of the texture will get applied to geometry.

  • LMB - In Create mode, click dragging in the viewport will draw a rectangle.
  • LMB - In Adjust mode, click dragging on an existing rectangle will move it.
  • LMB - Clicking on an existing rectangle will select that rectangle allow you to change it's properties. You can hold Shift to select multiple rectangles.
  • [ & ] - These change the size of the grid.
  • Holding Alt will let you adjust the rectangles as you were in Adjust mode.



2. Rectangle Properties

This is where you draw the squares that make up where UV. There are two modes: Create and Adjust.

  • Create will allow you to draw new rectangles across the texture.
  • Adjust lets you change the size of previously drawn rectangles.

The "Allow Rotation" checkbox allows that rectangle to be rotated when applying the hotspot in Hammer. "Allow Tiling" allows that rectangle to be tileable instead of being applied to a face in hammer as is, which could result in stretching.

Image subrect editor rectangle properties.png

3. Active Material

You can choose a material to reference when drawing rectangles. This is useful for actually creating rectangles for a trimsheet.

With Image Reference

TODO

Create section specifying use in Material Editor and Hammer