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

Image Subrect Editor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{source 2 topicon}}
{{source 2 topicon}}
{{Language subpage}}
{{Language subpage}}
[[File:image_subrect_editor_overview.png|512px|thumb|right|The new blank file view of the Subrect Editor.]]
[[File:image_subrect_editor_overview.png|512px|thumb|right|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.  
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.  
Line 11: Line 11:
* {{Key|LMB}} - Clicking on an existing rectangle will allow you to change it's properties.
* {{Key|LMB}} - Clicking on an existing rectangle will allow you to change it's properties.
* {{Key|[}} & {{Key|]}} - These change the size of the grid.
* {{Key|[}} & {{Key|]}} - These change the size of the grid.
<br>
<gallery>
Image_subrect_editor_drawing.gif|Drawing rectangles in the Subrect Editor (Click to See Gif!)
Image_subrect_editor_adjusting.gif|Adjusting rectangles in the Subrect Editor (Click to See Gif!)
</gallery>




== 2. Rectangle Properties ==
== 2. Rectangle Properties ==
This is where you draw the squares that make up where UV. There are two modes: Create and Adjust.
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.
* Create will allow you to draw new rectangles across the texture.
* Adjust lets you change the size of previously drawn rectangles.
* Adjust lets you change the size of previously drawn rectangles.
<gallery>
[[File:Image_subrect_editor_rectangle_properties.png|256px|frame|none]]
Image_subrect_editor_drawing.gif|Drawing rectangles in the Subrect Editor (Click to See Gif!)
Image_subrect_editor_adjusting.gif|Adjusting rectangles in the Subrect Editor (Click to See Gif!)
</gallery>
 


== 3. Active Material ==
== 3. Active Material ==
You can choose a material to reference when drawing rectangles. This is useful for actually creating rectangles for a trimsheet.
You can choose a material to reference when drawing rectangles. This is useful for actually creating rectangles for a trimsheet.
[[File:Image_subrect_editor_tex_preview.png|256px|thumb|none|With Image Reference]]


[[File:Image_subrect_editor_tex_preview.png|256px|thumb|left|With Image Reference]]
== TODO ==
Create section specifying use in Material Editor and Hammer

Revision as of 23:52, 19 August 2023

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 allow you to change it's properties.
  • [ & ] - These change the size of the grid.



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