Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Godot VR

БесплатноЗапускает вложенные скриптыНе проверен

Build & headless-verify Godot 4.7 OpenXR/VR apps — room-scale workflow, Pimax Crystal tested in-visor, controller-binding pitfalls covered.

blueboyzxот blueboyzx313 установок в других каталогах

Об этом скилле

Build a Godot 4 (OpenXR) VR app and verify it headlessly on a Windows host (no editor, no headset needed during the build/verify loop). Deliver a real, running project verified by execution — not a description. (Sibling of blender-headless; different engine, same headless-verify discipline.)

When to Use

  • The user wants a Godot 4 VR/AR or OpenXR app (headset target like Pimax Crystal — works on either Pimax runtime once the action-map/tracker binding is right; see the reference).
  • You must headless-verify a Godot 4 scene without the editor: import → headless run → non-headless screenshot.
  • You hit Godot 4.7 parse/runtime errors on render / particles / physics / XR APIs — the reference holds the working forms.

Environment (Windows)

  • Godot 4.7.x win64 standard build (standard, not .NET — it has OpenXR compiled in) from the godotengine releases page; use the _console exe for scriptable runs. Reuse an existing install (confirm with --version) before downloading.
  • Headless build/verify needs no OpenXR runtime installed. For in-visor testing on a Pimax Crystal: the first-party runtime ships inside Pimax Play (C:\Program Files\Pimax\, Pimax OpenXR 0.1.0). **Pimax Crystal controllers work in Godot on BOTH Pimax OpenXR 0.1.0 and PimaxXR (Unofficial) 0.4.4** once the action map + tracker binding are correct (see references/xr-controller-troubleshooting.md); SteamVR unverified.
  • Put the project on a local drive with room to grow (assets + import cache).
  • In Hermes's bash terminal on Windows, argument path conversion is off: pass drive-letter paths (C:/...) to native binaries (Godot, Blender, python) — MSYS /c/... forms work for bash builtins (cd, ls) only.

Workflow (in order)

  1. Scaffold project.godot: config/features=PackedStringArray("4.7","Forward Plus") (do NOT include "OpenXR" — it triggers a false-positive editor warning; runtime OpenXR is driven by [xr] openxr/enabled=true, not the feature tag), [rendering] renderer/rendering_method="forward_plus", an [xr] block with openxr/enabled=true, openxr/always_in_xr=true, shaders/enabled=true, and a 1600x900 viewport.
  2. Build the scene procedurally in code — primitives only, no external assets (that is the default here). One main.gd on the root node builds: Environment (glow/bloom + fog), a directional "moon" light, OmniLight3D point lights for the glow, and the geometry (trees, props, a focal glowing centerpiece).
  3. XR root: XROrigin3D → children XRCamera3D + two XRController3D, each tracker="left_hand" / "right_hand" (the tracker names OpenXRInterface::find_tracker() registers with XRServer), pose="grip" (or "aim"), show_when_tracked=true. ⚠️ XRController3D has NO auto-detect: an empty tracker → get_tracker("") → null → the node never binds (frozen pose, hand=0, invisible hands). Set tracker explicitly to "left_hand"/"right_hand". Never pose="default" (unreliably bound → controllers silently stop tracking). See references/xr-controller-troubleshooting.md.
  4. Grab without a plugin: native XRController3D + a world-space ray (get_world_3d().direct_space_state.intersect_ray(PhysicsRayQueryParameters3D.create(from,to))). The GodotVR XR-Interaction plugin is unavailable (no such repo exists in the GodotVR org — its maintained grab toolkit is godot-xr-tools, but the native ray grab avoids the dependency) — do not block on it.
  5. Fallback camera + self-screenshot so the scene is checkable without a headset: in _ready, if no XR session, add a Camera3D pointed at the scene; if the run was given a marker arg (e.g. --preview), wait ~12 frames then get_viewport().get_texture().get_image().save_png(path) and get_tree().quit().
  6. Headless-verify (OpenXR OFF — see gate below) until 0 script errors; confirm the startup self-test print shows the XROrigin3D with its XRCamera3D + both controllers.
  7. GPU screenshot: run NON-headless with the marker arg and --xr-mode off (on any machine with an OpenXR runtime installed, the runtime may init without a headset and silently blank the window) → PNG, then vision-check it (real geometry/lighting, not a blank/solid-color frame). Confirm the run exited and left no orphan godot process (see the reference's process-hygiene note).
  8. Re-enable OpenXR for delivery (openxr/enabled=true; leave "OpenXR" out of config/features). The in-visor feel is the user's final check.

Pitfalls

  • OpenXR + --headless stalls in the main loop, AFTER _ready — scene load and every _ready run and print normally, then the engine enters the main loop, detects the HMD, and hangs to timeout (no display/form factor). So a short-timeout headless run IS a valid no-headset check that a code edit landed: timeout 20 <bin> --headless --path <proj> 2>&1 | grep -iE "Parse Error|SCRIPT ERROR|not found in base|ready" surfaces scene-load parse errors and your `
Полный SKILL.md на ClawHub

Установить Godot VR в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Godot VR?

Build & headless-verify Godot 4.7 OpenXR/VR apps — room-scale workflow, Pimax Crystal tested in-visor, controller-binding pitfalls covered.

Как установить скилл Godot VR?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Godot VR запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Godot VR с