mujoco-showcase-shot

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

MuJoCo Filament Showcase Shot Turntable Video Generator

MuJoCo Filament 展示镜头转台视频生成器

Use this skill whenever you want to generate a polished, studio-lit 360° turntable showcase video (
.mp4
)
for a MuJoCo MJCF asset (
model.xml
) using MuJoCo's Filament PBR renderer (
mjrf
)
.
需要为 MuJoCo MJCF 资产(
model.xml
)生成精致的、带工作室灯光的 360° 转台展示视频(
.mp4
)
时,请使用此 skill,渲染器为 MuJoCo 的 Filament PBR 渲染器(
mjrf
)
。

What It Showcases

展示内容

  1. Filament Studio Softbox IBL, Gradient Skybox & Reflective Turntable Plinth:
    • Automatically wraps the asset in a studio scene with a procedural 6-face studio softbox cubemap IBL (
      studio_ibl_tex
      ) paired with a balanced 4-point physical studio lighting rig (shadow-casting key spotlight, cool fill, warm rim, and upward floor-bounce directional light), ACES tone mapping, high-quality SSAO, and subtle bloom.
    • Places the asset on a smooth 96-slice two-tier chamfered turntable plinth with a brushed metallic accent ring resting on an infinite reflective studio checker floor (
      reflectance="0.08"
      ).
  2. 2-Orbit 360° Turntable Sequence + Articulation Playback:
    • Completes Orbit 1 (
      0%–50%
      , full 360°)
      showing pure textured visual meshes so users can inspect every side uninterrupted, followed by Orbit 2 (
      50%–100%
      , second 360°)
      cycling through physics collision verification while smoothly sweeping all
      <joint type="hinge"/>
      and
      <joint type="slide"/>
      degrees of freedom via a cosine trajectory.
  3. Cross-Dissolved Physics Collision Geometry Inspection:
    • Transitions via a smooth alpha cross-fade (~8–10 frames, avoiding hard 1-frame pop-ins) across three plain-English chapters:
      • 0%–50%
        (Orbit 1 — Full 360°)
        : Textured Visual (
        group="2"
        )
      • 50%–78%
        (Orbit 2a)
        : Visual + Translucent Ghost Collider Overlay (uniform mint-cyan ghost shell over the textured mesh)
      • 78%–100%
        (Orbit 2b)
        : Physics Collision Hulls Only (visual mesh hidden; per-hull color-coded convex shapes)
  4. Self-Explanatory HUD Overlay:
    • Top-left translucent card showing Asset Name, Bounding Box Size (
      L × W × H
      in
      mm
      /
      cm
      )
      , Total Mass (
      g
      /
      kg
      )
      , Visual / Collider counts, and Live Joint Angles/Positions.
    • Top-right chapter badge (
      1/3 · TEXTURED VISUAL (360°)
      /
      2/3 · VISUAL + COLLIDER OVERLAY
      /
      3/3 · COLLISION HULLS ONLY
      ) and orbit angle readout (
      Orbit 1/2
      /
      Orbit 2/2
      ).
    • Bottom-center plain-English mode callout banner and 3-segment chapter timeline bar showing all three phases at a glance.

  1. Filament 工作室柔光箱 IBL、渐变天空盒与反射式转台底座:
    • 自动将资产置于工作室场景中,使用程序化生成的六面工作室柔光箱 cubemap IBL(
      studio_ibl_tex
      ),并搭配均衡的四点式物理工作室灯光配置(可投射阴影的主聚光灯、冷色补光、暖色轮廓光和地面反弹向上方向光)、ACES 色调映射、高质量 SSAO 以及轻微 Bloom。
    • 将资产放置在平滑的 96 分段双层倒角转台底座上;底座带有拉丝金属装饰环,并坐落于无限延展的反射式工作室棋盘格地面上(
      reflectance="0.08"
      )。
  2. 双次环绕 360° 转台序列 + 关节运动回放:
    • 完成 环绕 1(
      0%–50%
      ,完整 360°)
      ,仅显示带纹理的可视网格,让用户不间断地检查每个侧面;随后进入 环绕 2(
      50%–100%
      ,第二个 360°)
      ,在以余弦轨迹平滑扫动所有
      <joint type="hinge"/>
      和
      <joint type="slide"/>
      自由度的同时,循环展示物理碰撞验证效果。
  3. 通过交叉淡化进行物理碰撞几何检查:
    • 使用平滑 Alpha 交叉淡化(约 8–10 帧,避免单帧硬切式跳变)在三个通俗易懂的章节之间过渡:
      • 0%–50%
        (环绕 1 — 完整 360°)
        :带纹理的可视模型(
        group="2"
        )
      • 50%–78%
        (环绕 2a)
        :可视模型 + 半透明幽灵碰撞体叠加层(在带纹理网格上覆盖统一的薄荷青色幽灵外壳)
      • 78%–100%
        (环绕 2b)
        :仅物理碰撞凸包(隐藏可视网格;显示按凸包进行颜色编码的凸形状)
  4. 自解释 HUD 叠加层:
    • 左上角半透明卡片显示 资产名称、边界框尺寸(
      L × W × H
      ,单位为
      mm
      /
      cm
      )、总质量(
      g
      /
      kg
      )、可视模型/碰撞体数量以及实时关节角度/位置。
    • 右上角章节徽标(
      1/3 · 带纹理的可视模型(360°)
      /
      2/3 · 可视模型 + 碰撞体叠加层
      /
      3/3 · 仅碰撞凸包
      )和环绕状态读数(
      环绕 1/2
      /
      环绕 2/2
      )。
    • 底部居中的通俗易懂模式提示横幅,以及用于概览全部三个阶段的 3 段式章节时间线进度条。

Command-Line Usage

命令行用法

Resolve
SKILL_DIR
to the directory containing this
SKILL.md
file. Bundled
scripts/render_showcase_shot.py
includes a PEP 723
# /// script
header (
mujoco
,
av
,
numpy
,
Pillow
,
absl-py
), so
uv run
automatically resolves and caches an isolated environment on first use (ensure
ffmpeg
is also installed when passing
--before_xml
). Always write output videos and images to
<ArtifactDir>/
(never inside a source repository):
bash
SKILL_DIR="/path/to/skills/mujoco-showcase-shot"
uv run "$SKILL_DIR/scripts/render_showcase_shot.py" \
  --asset=/path/to/model.xml \
  --output=<ArtifactDir>/showcase_shots/<asset_name>_turntable.mp4 \
  --width=960 \
  --height=720 \
  --fps=30 \
  --duration=8.0
This produces both:
  • <ArtifactDir>/showcase_shots/<asset_name>_turntable.mp4
    (H.264 turntable video)
  • <ArtifactDir>/showcase_shots/<asset_name>_turntable_keyframes.png
    (2×2 keyframe summary image across the 4 showcase phases)
When imported from Python (
import render_showcase_shot
after adding
$SKILL_DIR/scripts
to
sys.path
), this module also provides:
  • render_6view_inspection_sheet
    : Renders a
    4×7
    multi-view inspection sheet (
    Front (+X)
    ,
    Back (-X)
    ,
    Right (-Y)
    ,
    Left (+Y)
    ,
    Top (+Z)
    ,
    Bottom (-Z)
    , and
    3/4 Front-Right
    ) across PBR Visual (
    group="2"
    ), Untextured Clay 3D Form (
    group="4"
    ), Visual + Collision Overlay (
    group="2" + "3"
    ), and Per-Hull Collision (
    group="3"
    ) modes.
  • render_side_by_side_comparison
    : Renders Reference vs. Filament PBR vs. Untextured Clay comparison sheets (including
    clay_only=True
    for fast early geometry iteration,
    detail_crops_out_png
    for 1:1 high-resolution zoom crops, and
    six_view_out_png
    for single-pass multi-view output).
  • render_wireframe_and_uv_sheet
    : Renders a
    2×3
    raw
    .obj
    quad/triangle topology wireframe and per-material UV layout inspection sheet.
  • render_filament_still
    : Renders batched Filament PBR, Clay, Overlay, or Collision still views.
将
SKILL_DIR
解析为包含此
SKILL.md
文件的目录。随附的
scripts/render_showcase_shot.py
包含 PEP 723
# /// script
标头(
mujoco
、
av
、
numpy
、
Pillow
、
absl-py
),因此
uv run
会在首次使用时自动解析依赖并缓存隔离环境(传入
--before_xml
时还需确保已安装
ffmpeg
)。始终将输出视频和图像写入
<ArtifactDir>/
(切勿写入源仓库内部):
bash
SKILL_DIR="/path/to/skills/mujoco-showcase-shot"
uv run "$SKILL_DIR/scripts/render_showcase_shot.py" \
  --asset=/path/to/model.xml \
  --output=<ArtifactDir>/showcase_shots/<asset_name>_turntable.mp4 \
  --width=960 \
  --height=720 \
  --fps=30 \
  --duration=8.0
这将生成:
  • <ArtifactDir>/showcase_shots/<asset_name>_turntable.mp4
    (H.264 转台视频)
  • <ArtifactDir>/showcase_shots/<asset_name>_turntable_keyframes.png
    (跨 4 个展示阶段的 2×2 关键帧摘要图)
从 Python 导入时(将
$SKILL_DIR/scripts
添加到
sys.path
后执行
import render_showcase_shot
),该模块还提供:
  • render_6view_inspection_sheet
    :渲染
    4×7
    多视图检查图集(
    Front (+X)
    、
    Back (-X)
    、
    Right (-Y)
    、
    Left (+Y)
    、
    Top (+Z)
    、
    Bottom (-Z)
    和
    3/4 Front-Right
    ),包含 PBR 可视模型(
    group="2"
    )、无纹理 Clay 3D 模型(
    group="4"
    )、可视模型 + 碰撞体叠加层(
    group="2"
    +
    group="3"
    )和逐凸包碰撞(
    group="3"
    )模式。
  • render_side_by_side_comparison
    :渲染参考图、Filament PBR 和无纹理 Clay 的并排对比图集,支持通过
    clay_only=True
    快速进行早期几何迭代,通过
    detail_crops_out_png
    输出 1:1 高分辨率缩放裁剪图,以及通过
    six_view_out_png
    输出单次渲染的多视图结果。
  • render_wireframe_and_uv_sheet
    :渲染
    2×3
    原始
    .obj
    四边形/三角形拓扑线框,以及按材质划分的 UV 布局检查图集。
  • render_filament_still
    :渲染批量 Filament PBR、Clay、Overlay 或 Collision 静帧视图。