Not sure if this is a bug or if I'm just misunderstanding something here.
I'm trying to make use of LuaPlayer::set_controller type=cutscene to do a smooth zoom from fully zoomed-out map into fully zoomed-in normal view, using chart_mode_cutoff.
API description of waypoints table
It reads like chart_mode_cutoff should specify the point at which it goes from normal view to the map, and vice versa? But.. it doesn't. Here's an example I've tried:Code: Select all
/c game.player.set_controller { type = defines.controllers.cutscene,
waypoints = {
{ position = {0,0}, transition_time = 360, time_to_wait = 720, zoom = 0.01, chart_mode_cutoff = 0.5},
{ position = {0,0}, transition_time = 720, time_to_wait = 240, zoom = 1, chart_mode_cutoff = 0.5}
},
final_transition_time = 60 }
Am I misunderstanding "chart mode" here? I wondered if maybe it meant "map view" rather than the normal map, but I've tried testing it with lower zoom levels, and I honestly can't see any visual difference between specifying chart_mode_cutoff and not specifying it. I looked for the fuzzy static that appears on zoomed-in map view, and it's not apparent. Besides, it says "map zoomed-out", which doesn't sound like map view.
I was hoping to use the cutscene controller for some video footage I'm trying to make. I specifically want it to start in the map, then transition to normal zoom level as if I opened the map, zoomed out as far as I can, then then zoomed in with mouse wheel. If need be I will just do it manually with the mouse, but if I could get a cutscene to work it would be smoother, and would allow me to try different transition times.
Thanks