Studio › Manual › 3D rooms

The Room 3D kit

Room 3D's rooms run in GameMaker on Room 3D's kit: GML scripts (scr_r3d and twelve more: models, animation, collision, the player, cameras, lights, effects, grids, paths, pickups, riding, sound, text), shaders (sh_r3d and six more) and objects (o_r3d_scene, o_r3d_thing, o_r3d_player, o_r3d_camera, o_r3d_light, o_r3d_fx, o_r3d_grid, o_r3d_text, o_r3d_ui_text). Studio comes with the kit of Room 3D 1.6 and writes it into a project the way Room 3D does, in the Room3D folder.

File > Add or Update Room 3D Kit (⌃⌥⇧⌘U) adds the kit, or brings it up to date:

  • Files the project hasn't got are added, and listed in the project.
  • A file that is still one of Room 3D's own versions (from any Room 3D release) is brought up to date, as Room 3D does when it saves a room.
  • A file you edited (it matches no version Room 3D ever wrote) is never written over without asking. Studio lists those files and asks: Keep My Edits brings the rest up to date, Replace writes the kit's version over them.
  • An object's own settings (its sprite, folder, persistence) are kept; only its events and Variable Definitions follow the kit.
  • Running it again changes nothing. Edit > Undo puts back every file as it was.

The kit is also added by itself, in the same undo step, when Studio places something of the kit's in a room whose project hasn't got it (a model is an o_r3d_thing), and by New 3D Room: GameMaker can't load a room that uses an object the project doesn't have. Edited files are left alone then. Projects made with Studio's first 3D Room template had small stand-ins with the kit's names; when they are unchanged the kit takes their place, and scr_studio_r3d_compat keeps the template's obj_box drawing.

3D Output: BBMOD (⇧⌘7) writes the rooms for BBMOD instead (see Works with BBMOD).

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