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.
| Stage | Input | Output | Key operation |
|---|---|---|---|
| Modeling | Artist or procedural input | Meshes in local space | Creating vertices and faces |
| Scene assembly | Meshes, lights, cameras | Objects in world space | Model transforms and hierarchy |
| Viewing and projection | World-space geometry | Clip-space coordinates | View and projection matrices |
| Rasterization or ray casting | Projected primitives | Fragments or ray hits | Pixel coverage and visibility |
| Shading | Fragments, materials, lights | Pixel colors | Evaluating lighting equations |
| Post-processing | Rendered image | Final frame | Tone mapping, anti-aliasing |
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.
| Representation | How it describes shape | Typical use | Main limitation |
|---|---|---|---|
| Polygon mesh | Vertices, edges and faces | Games, film, real-time apps | Curves are approximated by facets |
| NURBS surfaces | Weighted control points and knots | Industrial and automotive design | Complex topology is awkward |
| Subdivision surfaces | Coarse cage refined recursively | Characters and film assets | Higher render cost at fine levels |
| Voxels | Values on a 3D grid | Medical imaging, sculpting, simulation | Memory grows with resolution cubed |
| Point clouds | Unconnected sampled points | 3D scanning, photogrammetry | No explicit surface or topology |
| Implicit surfaces | Distance or density function | Procedural shapes, fluids | Harder to texture and edit directly |
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.
| Aspect | Rasterization | Path tracing |
|---|---|---|
| Typical frame time | About 4 to 33 ms per frame | Seconds to hours per frame |
| Global illumination | Approximated with probes or baking | Computed by simulation |
| Reflections and shadows | Screen-space or map-based tricks | Physically consistent |
| Noise | None from sampling | Requires many samples or denoising |
| Main users | Games, VR, interactive tools | Film, product visualization, archviz |
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.
| Symptom | Likely cause | Typical fix |
|---|---|---|
| Black or inverted shading | Flipped surface normals | Recalculate normals outward |
| Flickering overlapping surfaces | Z-fighting from depth precision | Raise near plane, separate faces |
| Object imported at wrong size | Unit mismatch between tools | Agree on meters or centimeters |
| Model lying on its side | Different up-axis conventions | Apply axis conversion on export |
| Slow viewport or long renders | Excessive polygon count | Use low poly proxies or LODs |
- 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.