Studio › Manual › 3D rooms

Smooth shading

A model of few faces with flat shading looks faceted: each face is lit as one flat plane. Smooth shading blends the light across the faces so the surface looks round, while the edges that should stay sharp keep them.

  • Room > 3D View > Model > Smooth Shading (⌃⌥⇧⌘S), the inspector's Model Tools section, or Model ▸ Smooth Shading in the thing's right-click menu. Used again, it turns off: the normals the model was saved with, exactly.
  • Angle (60° at first): where two faces meet at a sharper angle than this the edge stays hard (a jaw line, a collar, a box's corners). Raise it (up to 180°: everything smooth) if creases still show; lower it to keep more edges crisp. Changing the angle turns smoothing on.
  • It's a setting of the model: every copy of it, in every room, changes with it, and GameMaker gets the smoothed normals in the model's vertex buffers (datafiles/room3d/<model>/surf*.vbuff), as Room 3D writes them. The normals are made as Room 3D's Smooth shading makes them: points at the same place are smoothed together across texture seams (never merged), each face weighted by its angle at the corner, faces back to back never mixed; with the model's file known (Import Model, Import Room 3D Project…), each of its meshes on its own.
  • The model's file isn't changed. The setting is kept in .studio/models.json and the normals it had in .studio/models/<model>/flat/. Each change is one undo step.

It changes how light falls, not the shape: the outline of a low-poly head stays angular.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.