Studio › Manual › 3D rooms

Panorama skies

A 3D room's sky can be a panorama picture: an equirectangular picture (twice as wide as it is high: all the way round across, straight up at the top, straight down at the bottom), as Room 3D draws it. Room > 3D View > Environment > Panorama Picture… (⌃⌥⇧⌘8), or Choose… beside Picture in the inspector's Environment section (choosing Panorama as the sky asks for one), takes a PNG or JPG picture:

  • It's kept in the project as GameMaker gets it: datafiles/room3d/env/sky_<key>.png (at most 4096 pixels wide; the key comes from the picture file's contents, so the same picture is kept once), an included file.
  • The sky is that picture; Turn (panorama_turn) turns it round the room. The 3D view draws it as the game does, with Room Lighting (⇧L) on.
  • Its colours are worked out from the picture as Room 3D works them out: round the horizon for fog in the sky's colour, and the light it gives surfaces facing up and down for ambient light from the sky (sky_fog_colours, sky_ambient_up, sky_ambient_down in the environment file).

Each change is one undo step; undo takes the picture's file out again.

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