3D computer graphics

Also known as: 3D graphics

On this page 7

3D computer graphics is the discipline of representing objects as mathematical geometry in three-dimensional space and computing two-dimensional images of that geometry as seen from a virtual camera. Within 3D graphics & animation, it is the foundation on which modeling, materials, lighting, rendering and rigging all rest, and its core ideas belong to the 3D fundamentals every artist and engineer must master.

Unlike 2D graphics, where an image is stored directly as pixels or vector shapes, 3D graphics stores a scene description: vertices, polygons, surface properties, lights and cameras. The final picture is a derived result, so the same scene can be re-rendered from any angle, at any resolution and in any style without rebuilding the content.

How 3D computer graphics turns geometry into images

3D computer graphics works by passing a scene through a sequence of coordinate transformations and then deciding the color of every pixel. Each object starts in its own local space, is placed into world space by a model transform, is expressed relative to the camera by a view transform, and is flattened onto the image plane by a projection transform.

These steps are implemented as 4×4 matrix multiplications on homogeneous coordinates, which lets translation, rotation, scaling and projection combine into a single matrix. After projection, the renderer clips geometry against the view frustum, converts the result to screen pixels and resolves visibility, usually with a depth buffer that keeps only the nearest surface at each pixel.

The table below summarizes the main stages of this 3D pipeline and what each one produces.

StageInputOutputKey operation
ModelingArtist or procedural inputMeshes in local spaceCreating vertices and faces
Scene assemblyMeshes, lights, camerasObjects in world spaceModel transforms and hierarchy
Viewing and projectionWorld-space geometryClip-space coordinatesView and projection matrices
Rasterization or ray castingProjected primitivesFragments or ray hitsPixel coverage and visibility
ShadingFragments, materials, lightsPixel colorsEvaluating lighting equations
Post-processingRendered imageFinal frameTone mapping, anti-aliasing
Main stages of the 3D graphics pipeline

Building blocks of a 3D scene

A 3D scene is built from a small set of geometric primitives and scene objects. The most common surface representation is the polygon mesh, a set of vertices connected by edges into faces, usually triangles or quads. A surface normal stored per face or per vertex tells the shader which way a surface points, which drives lighting and the difference between flat and smooth shading.

Meshes are not the only option. The following table compares the main geometry representations used in production.

RepresentationHow it describes shapeTypical useMain limitation
Polygon meshVertices, edges and facesGames, film, real-time appsCurves are approximated by facets
NURBS surfacesWeighted control points and knotsIndustrial and automotive designComplex topology is awkward
Subdivision surfacesCoarse cage refined recursivelyCharacters and film assetsHigher render cost at fine levels
VoxelsValues on a 3D gridMedical imaging, sculpting, simulationMemory grows with resolution cubed
Point cloudsUnconnected sampled points3D scanning, photogrammetryNo explicit surface or topology
Implicit surfacesDistance or density functionProcedural shapes, fluidsHarder to texture and edit directly
Common geometry representations

Around the geometry sit the other scene elements: materials that define how surfaces respond to light, light sources, at least one virtual camera, and an object hierarchy in which children inherit the transforms of their parents.

Real-time and offline rendering approaches

The two dominant strategies for producing images differ mainly in how visibility and light transport are computed. Rasterization projects each triangle onto the screen and fills the pixels it covers, which modern GPUs do billions of times per second. Ray tracing follows rays from the camera into the scene and, in path tracing, bounces them repeatedly to simulate indirect light physically.

The choice is a trade-off between speed and physical accuracy, although hybrid renderers now mix both. The table below contrasts the typical profiles.

AspectRasterizationPath tracing
Typical frame timeAbout 4 to 33 ms per frameSeconds to hours per frame
Global illuminationApproximated with probes or bakingComputed by simulation
Reflections and shadowsScreen-space or map-based tricksPhysically consistent
NoiseNone from samplingRequires many samples or denoising
Main usersGames, VR, interactive toolsFilm, product visualization, archviz
Rasterization compared with path tracing

Real-time targets are usually 30, 60 or 90 frames per second, the last being common for VR headsets, while offline renders are judged by image quality per render hour rather than by a fixed frame rate.

Projection, cameras and coordinate conventions

The virtual camera defines what part of the scene becomes the image. Perspective projection makes distant objects appear smaller and mimics human vision, while orthographic projection keeps parallel lines parallel and preserves measurements, which is why technical drawings and many modeling views use it.

A camera also has a near and far clipping plane. Setting the near plane too close, for example 0.001 units with a far plane at 10,000 units, wastes depth buffer precision and causes z-fighting, the flicker of overlapping surfaces. A further source of confusion is the up axis: some applications treat Y as up and others treat Z as up, and coordinate systems may be right-handed or left-handed, so assets exchanged between tools can arrive rotated or mirrored.

Common misconceptions and practical limits

Several recurring mistakes come from treating a 3D scene as if it were a photograph or a solid object. The table pairs typical problems with their causes and fixes.

SymptomLikely causeTypical fix
Black or inverted shadingFlipped surface normalsRecalculate normals outward
Flickering overlapping surfacesZ-fighting from depth precisionRaise near plane, separate faces
Object imported at wrong sizeUnit mismatch between toolsAgree on meters or centimeters
Model lying on its sideDifferent up-axis conventionsApply axis conversion on export
Slow viewport or long rendersExcessive polygon countUse low poly proxies or LODs
Frequent problems and their causes
  • A mesh is a hollow surface, not a solid volume, unless it is closed and manifold.
  • More polygons do not guarantee realism; lighting and materials usually matter more.
  • A render is only as accurate as its light and material model, so physically based settings still require plausible real-world values.

In simple terms

3D computer graphics means building a virtual world inside the computer and then taking pictures of it. Instead of painting a picture directly, an artist describes the shapes, colors and lights, and the computer works out what a camera would see.

Think of it like a digital model railway with a camera. Once the set is built, you can move the camera anywhere and take a new photo at any moment. That is the key advantage: build once, view from anywhere.

A practical example

A furniture manufacturer needs catalog images of a new sofa in twelve fabric colors before the first physical sample exists. A 3D artist models the sofa as a subdivision mesh of about 60,000 polygons, assigns physically based fabric materials, and places it in a virtual living room lit by an HDR environment and two area lights.

A path tracer renders each color at 4000 x 3000 pixels in roughly 20 minutes per image on a workstation GPU. Changing the fabric only means swapping a material, so all twelve variants are produced overnight. The result is photorealistic catalog imagery without a photo shoot, and the same scene later feeds an interactive real-time configurator on the company website.