Skip to content

Tessellation

Kevin Mallinson edited this page Nov 14, 2026 · 1 revision

Tessellation (smooth curves)

The game's curves are built from few polygons: quarter pipes, rails, pipes, car bodies and round props are visibly faceted. rt_tessellation=1 rounds them off as a level loads - more triangles that follow the curve - while flat walls, hard edges, see-through and cut-out surfaces, skaters and peds stay as they are.

The skater still rides the original surfaces. The drawn ones never move more than rt_tess_max_deviation (2 units - about two inches by default) from them, so the wheels stay on what you see.

Turning it on

Works on both renderers. Takes effect from the next level loaded.

Where Setting
Options > Graphics Smooth curves, Curve smoothing
thug2-decomp.ini [Graphics] rt_tessellation=1
Key Default What it does
rt_tess_level 3 The most pieces a curved edge is cut into (2-8)
rt_tess_max_deviation 2 How far (world units) a smoothed surface may move from the original
rt_displacement 0 How far a surface's height map raises and lowers it, within the deviation; no height maps ship yet (rt_tess_test_heights=1 shows a test pattern)

Tips

  • [debug] tess_log=1 writes a line for every mesh smoothed at load.
  • node tools/game/tess_gap.ts measures the gap between the drawn surfaces and the collision in a test workspace.

Clone this wiki locally