Parametric and 3D Graphing

3D Graph Resolution: Smooth Surfaces Without Lag

A 3D grapher samples z = f(x, y) on an n × n grid and joins the points into patches, so the resolution n controls the detail. Low resolution (about 10–15) is fast but blocky and can miss narrow peaks; higher resolution (30–60) is smoother but has n² patches to draw. Increase resolution for waves and sharp features, and shrink the domain before pushing resolution very high.

The surface z = sin x · cos y over −4 ≤ x, y ≤ 4 drawn on a fine 40 × 40 grid, showing smooth repeating peaks and pits.

Check it yourself: every example here can be loaded into the 3D Graphing Calculator.

Open the 3D Graphing Calculator

What resolution means

A 3D grapher cannot evaluate z = f(x, y) at every point. It divides the x-range and y-range into n equal steps each, evaluates z at the (n + 1)² grid corners and draws n² small patches. That number n is the resolution.

  • Grid spacing in x: (x-max − x-min) ⁄ n.
  • Doubling n gives four times as many patches.
Try it in the calculator

Symptoms of too-low resolution

  • Faceted, angular look on surfaces that should be smooth.
  • Missing peaks: a narrow bump that falls between grid points disappears.
  • Aliasing: a fast wave can appear as a slower, wrong wave because the grid is too coarse to follow it.

A rule of thumb: you want at least 8–10 grid steps per cycle of any wave. sin x over −6 to 6 has about two cycles, so n ≥ 20 works; sin(5x) over the same range needs n ≥ 100 — better to shrink the domain.

z = sin x · cos y over −4 ≤ x, y ≤ 4 at grid sizes 8, 16 and 36: faceted, acceptable, smooth.
More grid squares means more detail — and more work for the device.
Text description of this figure

z = sin x · cos y over −4 ≤ x, y ≤ 4 at grid sizes 8, 16 and 36: faceted, acceptable, smooth.

  1. Low n: fast, faceted, may miss narrow features.
  2. Medium n: good default for most surfaces.
  3. High n: smooth waves and peaks, slower to rotate.
Try it in the calculator

Symptoms of too-high resolution

  • Slow rotation or a laggy page, especially on phones.
  • Very dark, dense mesh lines that hide the shading.

The 3D graphing calculator allows 8 to 60, which keeps the patch count at most 3,600.

Domain and resolution work together

Resolution is spread over the whole domain. If the interesting feature is small, a smaller domain at the same n gives far more detail than a huge n over a wide domain.

Try it in the calculator

Poles and undefined regions

  • Where f is undefined (√ of a negative, division by zero), the calculator skips those patches, leaving gaps.
  • Near a pole, values shoot up. Extreme values are clipped so the rest of the surface remains readable — the clipped region is a sign to zoom in.

Checklist

  1. Start with n = 30 and a symmetric domain.
  2. Waves look jagged? Raise n or narrow the domain.
  3. Page slow? Lower n.
  4. Need exact values? Use the cross-section graph, not the surface.

Questions

What resolution should I use?

Start around 30. Raise it for waves with many cycles or narrow peaks; lower it if rotating feels slow on your device.

Why does my surface have a huge spike?

The function probably has a pole, such as 1/(x² + y²) at the origin. The calculator clips extreme values so the rest of the surface stays visible; shrink the domain to study the pole.

Does resolution change the actual function?

No. It only changes how many sample points are used to draw it. The cross-section graph samples much more finely, so use it for exact readings.

Graph your own example with the 3D Graphing Calculator — free, in your browser.

Try it now

Sources and further reading

Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.

Related guides

More in Parametric and 3D Graphing · All guides