VTF Hotspot Resource
Strata Hammer supports Hotspot texturing , a technique which allows a single texture to contain many smaller rectangular regions which can then be automatically assigned to the faces of brushes. This allows for the rapid and detailed texturing of complex geometry.
The following specification introduces a standardized way of writing and reading hotspot textures, so that hotspot editing tools may be created that work seamlessly between Strata and other Source-based games.
Hotspot Resource Specification
This specification describes the HotSpot "HOT" resource for embedding in VTFs greater than version 7.2. All structs in this resource should be assumed to be byte-aligned without padding.
This resource does not include world texel-scaling information, and assumes that implementations will attempt to match rects with the default texture scale as defined in the user configuration.
Due to the need for compatibility across many games, this resource cannot rely on the VTF version for possible format changes, and instead contains its own version in the body.
Header
This resource uses the UTF-8 tag "HOT
" for identification.
No additional flags are defined in the resource header flags field.
Body
The resource body begins with the following header:
Following immediately after are a contiguous array of rect regions. These regions use the following structure:
Orientation randomization is defined within the flags of each rect. Although these are defined per-rect, it is recommended that editors implement batch editing for ease of use.
Regions with the alt_group
flag should be excluded from random selection by default, and be exclusively randomly selected when an implementation-specific modifier key is active. For consistency, the left-hand Alt key is recommended for this purpose.