DocsMOSAICBoards

Media

9 min read

On this page

Boards and pages show images, animated GIFs, videos and captures of the level, right next to your notes. This page covers the supported formats, how videos play inside MOSAIC (and what to do when one cannot), and viewport and camera captures that take you back to the captured view.

Where media files live

Every image, GIF, video and capture you add to a board or a page is copied into the workspace's media folder and named by the SHA-1 of its content (media/3f2a....png). The document only stores that relative path. So:

  • Moving or deleting the original file on your computer does not affect the document.
  • The same file added twice (or by two people) is stored once.
  • The workspace stays portable: copy or sync the folder and every board and page still finds its media.
  • With source control enabled, new media files are marked for add (see Workspace).

A file that is already inside the workspace folder is used where it is, without a copy.

The media/previews subfolder holds the downloaded link previews; it is a cache that MOSAIC can rebuild.

Right-click a media item on a board > Show in Explorer to see its file. In pages, media are media blocks.

Images

FormatsPNG, JPEG, BMP, TGA, EXR, HDR, TIFF
AddPaste an image (Ctrl+V), drop image files, the board's Media > Images, GIFs, Videos, Files..., the page's slash menu Image, GIF or Video, or paste the path of an image file on a board
Double-clickOpens the file in your system's default image app (boards)
Right-clickCopy Image, Open in Default App, Show in Explorer, Edit Caption (boards)
  • Images are decoded in the background: a document opens at once and pictures appear as they load.
  • On a board, a new image is placed at its pixel size, reduced to fit 480 x 400 board units (never enlarged). Resize it freely afterwards; it keeps its proportions unless you hold Shift or turn off Keep aspect ratio in the inspector. In a page, an image fills the column up to its natural size; the block menu's Width sets 25 % to 100 %.
  • For display, pictures larger than 2048 pixels are reduced (the original file is kept untouched) and drawn with mipmaps, so they stay crisp when the board is zoomed out.
  • EXR and HDR files are shown as a tone-mapped preview when they contain values brighter than white.
  • A caption is drawn in a strip at the bottom of a board picture (Edit Caption, or Caption in the inspector; dropped files take their file name) and under a page picture (Add a caption).
  • A missing or damaged file shows Missing or unreadable file in place of the picture.

Pasted images are stored as PNG. On Windows MOSAIC reads PNG images from the clipboard first (lossless, with transparency), then bitmaps, then a single copied image file; Copy Image puts the picture back as PNG and as a bitmap so any application can paste it.

Animated GIFs

GIFs play in place, looping.

  • MOSAIC has its own GIF decoder (GIF87a and GIF89a): global and local palettes, transparency, every disposal method, interlaced frames and per-frame delays. Delays of 0 or 10 ms play at 100 ms, like web browsers do; any other delay is at least 20 ms.
  • Very large animations are reduced (at most 1024 pixels per side, and a memory budget per animation) so a long GIF never exhausts memory.
  • A damaged GIF plays the frames that could be decoded; it never stops the editor.
  • Decoding happens in the background, and frames are uploaded once, a few at a time, so a 200-frame GIF does not freeze the editor.

The memory used by decoded images and GIF frames is capped by Media Memory Budget (768 MB by default, see Settings). The pictures shown least recently are released first and decoded again when you come back to them.

Videos

A video is either a local video file (copied into the media folder) or an online video link. On a board it is a video item; in a page, a video block. It shows a poster with a play button: click it (on a board you can also double-click the item, or right-click > Play Video) to play the video in place.

SourceHow to add itHow it plays
Local file: MP4, MOV, M4V, WebM, OGV, MKVDrop the file; board Media > Images, GIFs, Videos, Files...; page slash menu Image, GIF or VideoThe engine's media player, hardware decoded, drawn straight from a media texture
Link to a page of a common online video hostPaste the link (Ctrl+V; in a page, in an empty line); page slash menu Online Video; or set it as the URL of a link cardThe host's embeddable player, in the editor's web browser
Direct link to a video file (.mp4, .webm, .mov, .m4v, .ogv)Paste the linkA small player page in the editor's web browser

MOSAIC recognises links of five widespread online video hosts and turns them into their embeddable player (a start time in the link is kept where the host supports it). Other web addresses become link cards (boards) or bookmarks (pages).

Local videos

Local files play through the engine's media framework, the same players the engine uses for media in your game: decoded by the platform (with hardware acceleration where the system offers it), with no web browser and no per-frame copy on the CPU, so a playing video costs very little and does not slow the editor down.

  • Poster: before you play it, a local video shows a real frame from its first second, decoded once in the background and cached on disk (in the project's Intermediate/Mosaic/Posters folder), so it appears at once in later sessions. Turn Video Posters off in the settings to skip decoding new posters (posters already cached are still shown; the others show a plain poster with the file name).
  • Controls: hover a playing video for a minimal overlay: play / pause (or click the video), a scrub bar with the time, mute / unmute, loop on or off, open externally and stop (frees the decoder and shows the poster again).
  • Sound: plays through the system's audio output when the platform media player supports it; on some systems or formats a video plays without sound. Mute silences it.
  • Formats: what plays depends on the media player plugins enabled in your project (Edit > Plugins > Media Players) and on the codecs of the system. With the engine's default media players on Windows, MP4 and MOV with H.264 play in the engine player (H.265 where the system has the codec). A file the engine players cannot open, or that does not open within about ten seconds (some WebM and Ogg files, for example), automatically falls back to the web browser player below.

Online videos

Online videos (and local files that need the fallback) play in the editor's built-in web browser, which is much heavier than the engine player, so MOSAIC keeps it on a short leash:

  • The browser view is created only when you press play, and destroyed when you stop, scroll away or switch tabs.
  • Only one online video plays at a time in the whole editor: starting another one stops the first.
  • It renders at the item's size on screen, at most 1280 x 720, at 30 frames per second.
  • The poster shows the video's own picture (its thumbnail) with a soft shade at the bottom, the video's title and author, an Online video chip and a play button; a shimmer shows while the picture loads, and a clean card with the address when there is no picture (or Fetch Link Previews is off). The host's own player provides the controls.

When the browser cannot play a video, the player says so. Press Open externally (on the poster, or on the player while it plays) to play the video in your system's default video app; for online videos it opens your web browser. If the editor's web browser is not available at all, pressing play opens the video externally directly.

How many videos play at once

  • Max Live Video Players (3 by default, 1 to 8, see Settings) caps the videos decoding at the same time. Starting another video releases the oldest one (it returns to its poster).
  • A video that is not visible (scrolled away, behind another tab, the editor minimised) pauses at once and is released after a few seconds; when it comes back into view it resumes where it was.
  • On a board, a playing video also returns to its poster when the item is rotated or becomes too small on screen to watch.
  • Play when visible (inspector, board videos) starts the video by itself, muted, when it comes into view at a watchable size, within the player limit; unmute it with its controls.
  • Loop (inspector, on by default; also in the overlay) starts the video again at the end. Without loop, a finished video keeps its last frame with a play button.
  • A thin strip at the top of a playing board video stays free so you can still select and drag the item.
  • Links that open new windows from an online player open in your system's web browser.

Right-click a board video > Show in Explorer (local files) or Open in Browser (online videos).

Links get a picture, like in a chat application:

  • Online videos (boards and pages) show the video's poster picture, title and author.
  • Bookmarks in pages and link cards on boards show the page's picture, title, description and site name.

MOSAIC downloads them in the background the first time a link is shown (a few at a time, never blocking the editor), and keeps them in the workspace's media/previews folder, so they show at once next time, also offline. They are refreshed after two weeks. Text you write yourself on a link card (title, description) always wins over the page's own text.

Fetch Link Previews in the settings (on by default) turns the downloading off: MOSAIC then stays fully offline and link cards show the address only (previews already saved still show). Turning it on again fetches the missing ones.

Captures

A capture is a picture of the level that remembers where it was taken: the camera position and rotation, the field of view, the level, and the camera actor when there is one. Use captures for progress shots, lighting references, bug reports or "this is the view we want".

Open the board's Media menu (in the tool dock), or right-click the board > Add:

  • Capture Viewport: captures the active perspective level viewport as the game view (no gizmos, grid or editor icons), up to 1920 pixels wide. When you are piloting a camera actor, the capture remembers that camera.
  • Capture Camera...: lists the camera actors of the level (any actor with a camera component, cine cameras included) and captures what the chosen camera sees at 1920 x 1080. No cameras in the level when there are none.

The capture appears in the view, up to 560 units wide, titled with the camera name or "Viewport - Level". Its tooltip describes the camera ("Viewport - Level, FOV 90").

Captures are not available during Play In Editor; MOSAIC tells you to stop it first.

Go to Camera

Double-click a capture (or right-click > Go to Camera, or Go to Camera in the inspector) to move the level viewport to the captured view, with the captured field of view.

  • If the capture was taken in another level, MOSAIC asks whether to open that level first (you can cancel the save prompt of the current level, which keeps it open).
  • If you were piloting an actor, piloting stops first, so the actor does not move.

Refresh Capture

Right-click a capture > Refresh Capture to shoot it again in place (one undo step):

  • A camera capture uses the camera's current view (the camera may have moved since).
  • A viewport capture shoots the stored view again (also when its camera actor no longer exists).
  • The capture's level must be the level open in the editor.

The refreshed picture is a new media file; the previous one stays in the media folder (an undo brings it back).

Right-click a capture also offers Copy Image and Show in Explorer.