Animated Background Maps
Is your feature request related to a problem? Please describe. Currently, animated image types or embedded video is not supported as a background image, drawing texture, or token image. The only 'animation' possible attached to the map canvas is through clever use of macros, and it is very limited.
These kinds of maps are increasingly popular. Here are some possibilities others have showcased:
- High speed train map
- Animated water
- Looped YouTube video as a cemetary background map with rodents, bird shadows, and atmospheric sound
Adding animation via animated image formats, embedded and streaming videos (including ambient sound), etc. attached to the map view over the base texture would give us this ability. For the non-coding alternatives, UI accessible options to stop/play/reverse/change the speed of animations/video would be very appreciated.
Describe the solution you'd like There are a few options I've thought of in order of complexity/flexibility. Each is good in its own way, so I want to start a discussion about which options make sense.
IDEA 1: Extend the 'Background Map' to support animation/video formats. This feature is often overlooked, but may be a good place to add this functionality with a preconfigured webview/mediaview to replace the existing background map implementation.
- Pros:
- Would be intuitive and easy for current MapTool users without scripting!
- Limits scope of an animated layer to a single map/image for now. (also a con?)
- Makes animated backgrounds an easy UI accessible option instead of forcing use of macro script
- Upgrades an existing feature instead of making a whole new thing
- Cons:
- Not a scriptable/flexible solution
- Won't solve other use cases for animated content like animated objects (sparkly treasure)/effects (rolling smoke)/token images (blinking tokens?)
- Comment: I would want to add an 'Auto-resize' type tool for the background map to go along with this addition to make it easier for people to size the background maps. Adjust Grid is great but doesn't work if a map's grid isn't quite square.
IDEA 2: Extend token/stamp image options to include video/animated formats. This option would add a new button to the top-right of the 'Token Image' to embed video/streaming video content, and would accept animated formats as token images.
- Pros:
- Would be intuitive and easy for current MapTool users without scripting!
- Would allow for many animated effects above and beyond animated maps.
- Cons:
- Might not be remotely possible with the current renderer, so would have to wait for the rewrite in the sky.
- Performance, possibly - depending on implementation, I'm sure.
IDEA 3 HTML5 'Underlays' which can be placed above or below any layer at specific map coordinates, defined either by cells or pixels relative to 0x, 0y.
- Pros:
- Super flexible. Could use an embed, use CSS background properties, whatever.
- Webview in particular may be relatively quick and easy to implement with recent work on webview/HTML5 and overlays.
- The sky is the limit for animated effects way beyond backgrounds.
- Cons:
- May be way too Complex for non-coders wanting to just add an animated map.
- Performance, probably (could limit underlay count, but.. still; imagine someone making a macro that places 'flame' overlays all around their map , gets bad fast)
- Adds a lot of functionality just for animated backgrounds and effects that without some thoughtful rails will end up being used in other ways that don't interact with tokens, VBL, MBL, tokens, etc. I predict this might generate a horrific slew of feature and support requests (and maybe amazing community creations).
Describe alternatives you've considered
- Rapidly switching out background stamps as frames with a macro.
- Depending on "imagination" and "description".
- Not having animated map images and feeling left out while other VTTs show their stuff.
Additional context I just want MapTool to have all the toys.
To add a resource that would immediately become useful to MapTool players, here is a library of dozens of animated maps in the form of YouTube videos:
https://dmge.net/library
Brainstorming around a streaming/video background map and how that would feel in the UI, perhaps with a 'Clapper' button that shows up on maps with a multi-media background set.
Possible features:
- Extra controls like playback speed & media volume (applied before the master 'Stream Volume' slider)
- Players could disable the streaming/video background to protect performance, instead viewing an alternate image (or maybe the first frame of the video). If they start playing again, they'd "jump" to where the playhead is for everybody else.
- GMs could configure whether players can watch the video independently or are locked to view the media synced all at once.

Just throwing ideas around to help imagine what this feature might look like!
A note for the future in case this idea gets traction - I just installed DungeonDraft and noticed that it has animated features in its maps (water). These are not currently in their export format, but it is a planned feature It would be wonderful if our new dd2vtt import feature worked with these down the line.
Once I have completed the campaign directory / campaign note book stuff I do want to spend some time on the renderer as it certainly needs some attemtion
I like the UI suggestion @melek Question, should the "sync" be more global? In otherwords should we sync any audio that isnt a "clip" as well?
We also should investigate "streaming" from server and/or external sources (most of these mp4's arent to bad in size but do we really want/need these as assets in the campaign?
All future work for sure and agree with @cwisniew that we should do a little renderer refactor first before adding this in.
This feature would really add to MapTool, especially considering the increasing number of high-quality animated maps being released. However, I see a major feature linked to this one: From my understanding all contents of a map currently are downloaded to the client. This is not feasible with video content. MapTool would require a way to stream content to clients to avoid that all clients would have to download hundreds of megabytes first.
This feature would really add to MapTool, especially considering the increasing number of high-quality animated maps being released. However, I see a major feature linked to this one: From my understanding all contents of a map currently are downloaded to the client. This is not feasible with video content. MapTool would require a way to stream content to clients to avoid that all clients would have to download hundreds of megabytes first.
Indeed, sounds already work this way in MapTool :) good thinking.