Communitygithub.com

night-globe-route

Generate cinematic 3D dark-space night-earth flight route animations (1080x1920 vertical 30fps MP4) for any global cities — ideal for concert tour recaps, idol chasing footprints, and travel vlogs. Includes 5 built-in aesthetic color themes, cross-platform Chrome auto-detection, NASA night earth textures, atmospheric glow shaders, spherical slerp camera transitions, and editorial serif typography.

What is night-globe-route?

night-globe-route is a Claude Code agent skill that generate cinematic 3D dark-space night-earth flight route animations (1080x1920 vertical 30fps MP4) for any global cities — ideal for concert tour recaps, idol chasing footprints, and travel vlogs. Includes 5 built-in aesthetic color themes, cross-platform Chrome auto-detection, NASA night earth textures, atmospheric glow shaders, spherical slerp camera transitions, and editorial serif typography.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/xiguadan/night-globe-route-skill/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Night Globe Route — 3D 深空夜光地球航线动画 Skill

把任意全球城市列表(无论是亚洲巡演、欧洲旅行还是跨大洲环球航线),一键生成 电影级 3D 深空夜光地球 + 立体发光飞线 + 优雅衬线排版 的竖屏 1080×1920 高清 MP4 视频(30fps 柔和运镜,纯本地免费渲染,无需申请任何地图 API Key)。

Agent 交互导览规范(重要)

当用户刚触发本 Skill,且尚未提供完整路线或未指定配色时,AI 必须先用以下简洁友好的导览语引导用户选择(如果用户首句已经给齐了城市与配色,则跳过导览直接执行):

欢迎使用 Night Globe Route(3D 夜光地球航线动画)!✨ 请告诉我下面 3 个信息,我来帮你一键生成高清视频:

  1. 你的全球城市路线(按顺序写城市名即可,支持全球任意城市,经纬度由我自动补全,如:北京 → 首尔 → 东京 → 巴黎)
  2. 选择一套氛围配色(或直接报你想要的自定义应援色):
    • rose-gold:玫瑰暖金(默认,浪漫百搭)
    • aurora-purple:极光星紫(梦幻夜场/紫色应援)
    • ocean-cyan:深海冰蓝(清冷冰川/蓝色应援)
    • champagne:香槟鎏金(高定杂志/年度回顾)
    • crimson:炽烈绯红(燃向巡演/红色应援)
  3. 视频主标题(可选,如:《2026 追星与旅行足迹》)

收到用户回复后,AI 应自动完成:

  1. 自动补齐每个城市的准确经纬度(lng/lat)、英文名(en)与简短节点文案(tag);若存在往返重复城市,自动设置不同的 arcBias 分离双弧线;
  2. 写入 route.json(若用户指定了自定义应援色,自动转换为十六进制色值写入 accentColor);
  3. 若首次运行尚未安装依赖,先执行 npm install,再执行 npm run render 导出 out/night-globe.mp4,完成后将视频路径交给用户。

内置 5 套高审美主题预设(theme)

在 route.json 中设置 theme 字段即可一键切换航线、文字与大气层光晕配色(也支持继续用 accentColor / goldColor 自定义应援色):

theme 值风格氛围适用场景
rose-gold(默认)玫瑰暖金 + 蓝紫星海大气通用追星 / 浪漫旅行
aurora-purple极光星紫 + 银蓝星芒紫色应援色 / 梦幻夜场
ocean-cyan深海冰蓝 + 霜白微光蓝色应援色 / 海岛与冰川
champagne香槟鎏金 + 珍珠暖白高定杂志感 / 年度回顾
crimson炽烈绯红 + 暮色暖橙红色应援色 / 燃向巡演

快速使用步骤

  1. 编辑路线配置:修改项目根目录下的 route.json:
    • title:视频主标题
    • subtitle:英文副标题
    • theme:从上面 5 套预设里选一个(或额外写 accentColor / goldColor 覆盖)
    • stops:按顺序填入任意全球城市的 name(中文)、en(英文)、lng(经度)、lat(纬度)、tag(短文案)、holdSec(停留秒数)、arcBias(往返航线微弧分离系数,可选)、labelOffset(文字微调偏移,可选)
  2. 首次安装依赖(仅第一次需要):
    npm install
    
  3. 预览单帧检查构图(可选,约 1 秒出图):
    npx remotion still NightGlobe out/preview.png --frame=360
    
  4. 渲染导出 30fps 高清 MP4 成片:
    npm run render
    
    成品输出至 out/night-globe.mp4。如使用自定义 JSON 文件,可运行:
    npx remotion render NightGlobe out/custom.mp4 --props=./route-world-test.json
    

技术特性

  • 真正全球通用:采用真 3D 球面线性插值(slerp),跨洲、跨南北半球及日界线均按最短球面柔和飞跃;多于 7 站自动切换紧凑进度条,结尾自动计算全球重心并拉远展示完整发光地球。
  • 跨平台零配置:remotion.config.ts 自动检测 macOS / Windows / Linux 本机已安装的 Chrome 或 Edge,找不到时自动回退至 Remotion 内置浏览器。
  • 离线免费:内置 NASA 全球夜光地球纹理与地形凹凸贴图,无需 Mapbox / Google Maps API Key。

Related Skills