What Are Chams? How Colored Player Models Work in Game Cheats
How chams work by hooking the graphics pipeline to render colored player models through walls, using material replacement and z-buffer manipulation.
By SensePublished
What Are Chams?
Chams, short for "chameleon" or "colored materials," is a type of game cheat that replaces player model textures and materials with bright, solid colors. Enemy players appear as vivid red, green, yellow, or any other color chosen by the cheater, making them instantly visible regardless of the environment, camouflage, or lighting conditions. When combined with depth buffer manipulation, chams can also make players visible through walls and solid surfaces.
Chams are one of the most visually dramatic cheats in gaming. Instead of drawing boxes or outlines like ESP, chams replace the actual rendering of player models with custom materials. The result is that enemy players glow with a solid color that stands out against any background.
How Chams Work Technically
Chams operate by hooking into the game's graphics rendering pipeline and modifying how player models are drawn. The implementation depends on which graphics API the game uses.
Direct3D Hooking
Most PC games use some version of Direct3D for rendering. Chams work by hooking the draw call functions in the Direct3D device:
DrawIndexed / DrawIndexedInstanced hooks: The cheat hooks these functions, which are called every time the game draws geometry. When the game issues a draw call for a player model, the cheat detects this and modifies the rendering state before the model is drawn.
The cheat identifies player model draw calls through several methods:
- Stride value: Player models typically have a specific vertex buffer stride (the size of each vertex in bytes). By checking the stride of the current draw call, the cheat can distinguish player models from world geometry.
- Vertex count: Player models have a characteristic number of vertices that differs from environmental objects.
- Texture identification: The textures bound during the draw call can be checked against known player model textures.
Material Replacement
Once a player model draw call is identified, the cheat replaces the bound textures and shaders with custom ones:
Solid color shader: A simple pixel shader that outputs a single solid color (e.g., pure red with RGB 255,0,0) regardless of lighting, shadows, or the original texture. This creates the characteristic bright, flat-colored player models.
Custom materials: More advanced chams use custom materials that can include emissive properties (the material glows as if lit from within), transparency, or even animated effects.
Z-Buffer Manipulation for Through-Wall Visibility
The most powerful feature of chams is showing players through walls. This is achieved by manipulating the depth buffer:
First pass (behind walls): Disable the depth test (
DepthEnable = FALSEorDepthFunc = D3D11_COMPARISON_ALWAYS). Draw the player model with one color (typically a darker shade or different color like blue). Because the depth test is disabled, the model renders on top of everything, including walls.Second pass (visible normally): Re-enable the depth test with normal settings. Draw the player model again with a different color (typically bright red or green). This pass renders normally, only showing where the player is not behind a wall.
The result is a two-color system: you see enemy players in one color when they are behind cover and another color when they are in the open. This instantly communicates both position and visibility status.
Vulkan Implementation
Games using Vulkan require a different hooking approach. Vulkan's pipeline state objects are immutable once created, so chams implementations need to create alternative pipeline states with modified depth and shader settings, then swap the pipeline during player model rendering.
Chams vs Other Visual Cheats
| Feature | Chams | ESP Boxes | Wallhack |
|---|---|---|---|
| Rendering | Replaces player materials | Draws overlay boxes | Makes walls transparent |
| Precision | Exact player silhouette | Approximate bounding box | Varies |
| Information | Position + visibility | Position + optional data | Position only |
| Implementation | Graphics API hooks | Memory read + overlay | Graphics API modification |
| Visual quality | Seamless in-game look | Overlay on top of game | Can cause artifacts |
| Detection | Hook detection | Memory access detection | Hook detection |
Games Where Chams Are Popular
CS2 / CS:GO: Chams have been a staple of Counter-Strike cheating for over two decades. The game's competitive nature and importance of spotting enemies quickly make chams extremely valuable. CS2's Source 2 engine uses DirectX 11, making it compatible with standard D3D11 hooking techniques.
Valorant: Chams provide a significant advantage in Valorant's tactical gameplay. However, Vanguard's aggressive hook detection makes implementing chams more challenging than in many other games.
Escape from Tarkov: In a dark, visually complex game where player models can blend into the environment, chams eliminate any possibility of missing an enemy due to camouflage or poor lighting.
Apex Legends: The fast-paced gameplay benefits from instant player identification. Chams in Apex use the DirectX 11 pipeline and are often combined with other features like aimbot.
PUBG: The large maps and varied environments in PUBG make chams valuable for spotting enemies at distance or in cluttered areas.
How Anti-Cheats Detect Chams
Hook Detection
Anti-cheat systems monitor the DirectX or Vulkan function tables for unauthorized modifications. If the function pointer for DrawIndexed has been changed to point at an address outside of legitimate DirectX DLLs, the anti-cheat detects the hook.
VMT integrity checks: The anti-cheat takes a snapshot of the virtual method table (VMT) of DirectX interfaces at initialization and periodically compares it against the current state. Any change indicates hooking.
Inline hook detection: Some chams use inline hooks (patching the first bytes of a function with a jump instruction) rather than VMT hooks. Anti-cheats detect these by checking the first bytes of graphics functions against their expected values.
Shader Validation
Anti-cheat systems can monitor which shaders are bound during rendering. Custom solid-color shaders that are not part of the game's legitimate shader library are flagged.
Rendering State Monitoring
The anti-cheat can monitor depth-stencil state changes. Disabling depth testing specifically during player model rendering is a suspicious pattern that indicates chams with through-wall visibility.
Screenshot Analysis
Some anti-cheat systems capture random screenshots during gameplay. Chams are immediately obvious in screenshots because player models appear as solid bright colors rather than their normal textures.
After Getting Caught
Chams bans follow the same pattern as other cheat bans: permanent account ban with hardware restrictions. The graphics hooks required for chams provide a clear detection surface for anti-cheat systems.
For players dealing with hardware bans after a chams detection, Sense AC's HWID spoofer changes the hardware identifiers that the anti-cheat reads, allowing a fresh start on the same hardware.