SPR: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) m (→Limitations: add section) |
SirYodaJedi (talk | contribs) (Add some actual information) |
||
Line 4: | Line 4: | ||
== Limitations == | == Limitations == | ||
{{modernWarning|All frames in a multi-frame sprite share the same palette.}} | {{modernWarning|All frames in a multi-frame sprite share the same palette.}} | ||
{{modernWarning|Oriented sprites are finicky; see [[#External links|The303's tutorials]] for more information.}} | |||
{{modernBug|Sprites being displayed via [[env_glow (GoldSrc)|{{mono|env_glow}}]] cannot be oriented in the map editor. If rotation is necessary, use [[env_sprite (GoldSrc)|{{mono|env_sprite}}]] instead.}} | |||
== Image format types == | |||
{| class="wikitable" | |||
|- | |||
! Format !! Explanation | |||
|- | |||
| Normal || Opaque image with no transparency | |||
|- | |||
| Additive || Additive translucency; dark areas are more translucent than light areas | |||
|- | |||
| 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 == | |||
{| class="wikitable" | |||
|- | |||
! 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. | |||
|} | |||
== External links == | == External links == |
Revision as of 11:28, 30 May 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 | Additive translucency; dark areas are more translucent than light areas |
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. |