SPR: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) m (Back button) |
SirYodaJedi (talk | contribs) m (→Image format types: additive format doesn't actually do anything) |
||
Line 14: | Line 14: | ||
| Normal || Opaque image with no transparency | | Normal || Opaque image with no transparency | ||
|- | |- | ||
| Additive || Additive translucency | | Additive || Same as Normal; Additive translucency can be achieved for any image format by changing the sprite's rendermode (either in a sprite entity, or via code) | ||
|- | |- | ||
| IndexAlpha || Single-color with 8-bit translucency | | IndexAlpha || Single-color with 8-bit translucency |
Revision as of 16:57, 7 June 2023
.SPR is a file format used to store 2D sprites in GoldSrc. It is a modified version of the SPR format used by
Quake, adding a dedicated color palette and additional translucency formats.
Limitations
Template:ModernWarning Template:ModernWarning Template:ModernBug
Image format types
Format | Explanation |
---|---|
Normal | Opaque image with no transparency |
Additive | Same as Normal; Additive translucency can be achieved for any image format by changing the sprite's rendermode (either in a sprite entity, or via code) |
IndexAlpha | Single-color with 8-bit translucency |
AlphaTest | Binary alpha-tested transparency; pixels using the last color in the palette will be transparent |
Orientation types
Orientation | Explaination |
---|---|
Parallel | Rotates to always face the camera |
Parallel Upright | Like parallel, but doesn't rotate around Z axis |
Oriented | Rotated in map editor to face a specific direction |
Parallel Oriented | Combination of parallel and oriented. |
Facing Upright | Like parallel upright, but rotated based on player origin, rather than camera. |