OverviewsVisuals and 3D art
Visuals and 3D art for games
Contents
This is the short version of what I would tell another engineer who has to own a game’s look in code. A strong look comes from a few controlled decisions, and most broken looks come from losing control of one of them. These are the eight things I track on every project, in the order I check them when a frame looks wrong.
The frame is a pipeline
Every frame passes through the same stages. Geometry sets the shapes. Materials decide how each surface responds to light. Lights and shadows add form. Post-processing runs full-screen passes such as bloom, grading and outlines. The last step converts the result for the screen.
Most visual effects can live in more than one stage. An outline can be extra geometry, called an inverted hull, or a post pass that finds edges in the depth buffer. A soft glow can be an emissive material plus bloom, or a transparent sprite. Each placement has its own cost and its own artifacts.
I track which stage owns each effect because that decides where a fix goes. When a model reports “outlines flicker at a distance”, the fix for a hull outline is a width scaled by distance. For an edge-detection outline, the fix is a depth threshold. The wrong stage gets you a fix that changes nothing.
Value carries readability
Value is how light or dark something is, with hue and saturation ignored. Players read a scene by value first. Valve’s Team Fortress 2 art talk sets a read order of team by color, class by silhouette and weapon by the highest contrast, and each of those works in grayscale.
I plan a scene in three to five value bands before I pick any hue. The check is a desaturated view of the frame. If the player, the threats and the exit don’t separate in grayscale, more color won’t separate them either.
Value matters more than hue because players with color vision deficiency still see value differences. A value plan also survives a later change of palette.
Each light has a job
Film lighting gives three named jobs. The key light gives the main direction and shadow. The fill is a softer light that lifts the shadow side. The rim or back light draws a bright edge that separates the subject from the background.
The number I track is the key-to-fill ratio. Near 1:1 is high-key, bright and flat, for hubs and menus. Around 8:1 is low-key and dramatic. Most gameplay sits near 4:1.
I also track color temperature. James Gurney points out that outdoor shadows are lit by the blue sky, so warm light with cool shadow reads as daylight. Black shadows read as a rendering default. Valve’s half-Lambert lighting from Half-Life 2 is worth knowing here. It wraps diffuse light past 90 degrees, so the shadow side of a character keeps its shape. Team Fortress 2 feeds the same value through a painted color ramp.
Lighting is the cheapest way to change mood. A light color and a ratio cost nothing per frame, and they change the whole image.
Pick one shading model on purpose
The shading model is the math that turns light into color on a surface. Three families cover most games. Physically based rendering, or PBR, describes a surface with base color, metalness and roughness. Toon shading cuts light into hard bands. Unlit shading draws flat color and leaves depth to outlines and fog.
PBR only looks right inside plausible values. Adobe’s PBR guide keeps non-metal base colors between sRGB 50 and 240, glTF fixes non-metal reflectance at 4%, and metalness is 0 or 1. Toon shading needs a ramp of two or three bands and usually a rim and an outline. Unlit looks need strong line work and fog. Shedworks used both on Sable because flat color alone made depth hard to read.
I check that every material in a scene uses the same model. A PBR prop in a toon scene, or a toon character under PBR lights, is the most common reason a look reads as assembled from parts.
Color management decides whether any of it is right
Lighting math only works in linear space, where doubling a number doubles the light. Screens expect sRGB, a curved encoding. Between the two, tone mapping squeezes bright HDR values into the range a screen can show.
In three.js this comes down to a few settings. Color textures are marked as sRGB. Data textures such as normal and roughness maps are left alone. The renderer outputs sRGB. With post-processing, an OutputPass at the end applies tone mapping and the sRGB conversion once.
The tone mapping operator is a style choice. ACES gives punchy contrast with hue shifts. AgX is flatter and grades well. Neutral keeps authored colors close to their values, which suits a strict palette.
I track this because the failures are subtle. A double conversion makes everything washed out. A missing flag shifts the palette, so the hex values in the design never match the screen. The three.js manual warns that two errors can cancel overall and still shift individual colors.
Silhouettes and edges
The silhouette is the outline of a shape against what is behind it. It reads before any interior detail, so I design and check it first. A debug view that draws every mesh solid black shows whether each enemy type is still recognizable.
Line work makes silhouettes explicit. The inverted hull method draws a slightly larger copy of the mesh with only its back faces, which shows as a line around the shape. Guilty Gear Xrd uses it with per-vertex width control. Screen-space edge detection runs a filter such as Sobel over the depth and normal buffers, which also catches interior creases.
Lines cost readability at a distance. Sable fades its outlines out with distance to stop flicker and pop-in. Rim light is the other tool, and it gives a light edge with no line at all.
Detail is a frequency you budget
Detail frequency is how small and how dense the repeated detail is relative to an object. Artists group shapes as big, medium and small, and leave rest areas with no detail so the busy areas read.
In code-built scenes the risk is noise, because noise functions make detail everywhere at no cost. I track texel density, the number of texture pixels per world unit, so neighboring objects don’t differ in sharpness. Environment artists often aim for about 512 pixels per meter on props and 1024 on hero assets.
Detail smaller than a pixel also turns into shimmer. Thin railings, grass and fine noise flicker as the camera moves, because each pixel flips between the detail and the background. The fixes are larger shapes, mipmaps and anti-aliasing, in that order.
Every effect costs milliseconds
At 60 frames per second each frame has 16.7 milliseconds for everything, including game logic. A look that holds 60 fps on a desktop GPU often misses that budget on a phone.
I track four numbers. Draw calls count separate mesh and material submissions, and instancing or merging cuts them. Overdraw counts how many times a pixel is drawn, which climbs fast with layered transparent particles. Fill rate grows with resolution, so I cap the device pixel ratio near 1.5 on phones. Each full-screen post pass costs fill rate as well.
The practical answer is quality tiers. The look is designed at the high tier, and the low tier drops depth of field, ambient occlusion and volumetric effects in a fixed order. The style survives when the palette, value plan and silhouettes carry it, because those cost nothing.
Write the style down
All eight of these come together in an art bible, a short document of rules every asset follows. Studios use one so that people who missed the early creative talks still make work that fits. For a solo developer prompting an AI model, the prompt has to carry those rules. I write the palette with a meaning for each color, the value plan, the lighting ratio and colors, the shading model, the edge treatment and the post stack. Then I ask for every value in one config object with a live tuning panel.
The prompting guide has about 225 named terms with prompt lines for each of these areas.