Studio › Manual › 3D rooms

Grids and mesh libraries

A mesh library is a set of pieces to paint on grids: floors, walls, corners, stairs, props. Each piece has its model, a name, a category (the palette groups by it), a footprint (cells it covers), a pivot and nudge (where it sits in its cell), its collision for GameMaker (None, Box, Convex, Mesh or Custom from file), a variant tag and the template slots it fills. Libraries are Room 3D's .r3dlib files: Studio reads and writes them, and Room 3D opens Studio's.

  • Room > Grids > New Grid… (⌃⌥⇧B): a new, empty grid in the middle of the view with a library you pick, then Grid Paint comes on. It's an o_r3d_grid instance, saved as Room 3D saves one.
  • Pieces Palette… (⌃⌥⇧I, or Pieces… in the grid's inspector): every library's pieces with their pictures. Pick one and the brush paints it: any piece of the grid's library, not only those it has used (its vertices, collision and texture go into the project's shared store the first time).
  • The starter libraries come with Studio: Dungeon, Sci-fi base, Town, Nature, Roads & Streets, Bike Park and Retro Fortress (Guidry Games' own). A grid painted from one is the very bytes Room 3D 1.6 writes for the same cells.
  • The project's own libraries are kept in .studio/libraries/ beside the GameMaker files (not in the game): made with New Mesh Library, Import Pieces or Retro Blocks, opened with Open Mesh Library… (⌃⌥⇧X), or a starter one changed in the Mesh Library editor.
  • Re-theming: the grid's inspector Grid Library section picks another library (one undo step). Cells keep their slot, so a library of the same template shows its own piece for every slot (Dungeon to Sci-fi base swaps every wall and floor); a library of another template takes a slot of the same kind where it has one, else the slot's grey block. Solid in GameMaker there puts the grid's pieces in the kit's collision.
  • Templates: Building, Dungeon / Cave, Platformer blocks, Terrain / Nature, Retro Blocks and Empty, each a set of slots with a grey placeholder block, so a level works before its art is done. Export Template as GLB… (⌃⌥⌘Y) writes every slot's grey block in a row, named after its slot, to model over in any 3D app.

What's written (Save to GameMaker's layout): datafiles/room3d/grids/<room>/<grid>/grid.json and its chunks, the pieces' vertices and collision and the painted textures in datafiles/room3d/grid_shared/ (named by what's in them, listed in its files.json; files no grid uses any more taken out), the project's included files, and the room's sound areas from its first grid.

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