Godot Xr logo

Godot Xr

Community
EL4CTEO
godot-xr

VR/AR/MR with Godot 4.7 and OpenXR - project setup (Mobile renderer, OpenXR enable, action map), XROrigin3D/XRCamera3D/XRController3D rig, input via actions, hand tracking, passthrough with environment blend modes, refresh rate and foveation, Android XR / Quest / Steam Frame / PCVR export via the vendors plugin, comfort and performance rules. Use for any VR, AR, mixed-reality or OpenXR task.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-xr
Stars
60
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by EL4CTEO on GitHub. Read the source before you install it.

Installation

Install the Godot Xr AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-xr
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-xr .claude/skills/godot-xr
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Xr in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Xr on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Xr is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

XR with OpenXR (4.7)

Headless runs can't start XR. Code paths still run (the interface reports not initialized), so headsets are needed for real tests.

Setup

  1. Renderer: Mobile (recommended for XR in 4.7, desktop and standalone). Compatibility works for low-end standalone. Forward+ works on PCVR but isn't optimized for it.
  2. Project Settings: xr/openxr/enabled = true and xr/shaders/enabled = true. The default action map (xr/openxr/default_action_map) has 4 profiles in 4.7: generic controller, touch controller, Pico 4 and hand interaction. Add profiles for other devices in the action map editor.
  3. Standalone Android headsets (Quest, Pico, Android XR, which is day-one in 4.7) need the Godot OpenXR Vendors plugin (Asset Store) and an Android export preset with XR mode = OpenXR plus the vendor's loader enabled. Steam Frame and PCVR go through SteamVR's OpenXR runtime.
  4. Scene rig: XROrigin3D → XRCamera3D + XRController3D (tracker = &"left_hand" / &"right_hand"). One origin per scene. Move the player by moving the origin, never the camera.

Startup (see the reference)

var xr := XRServer.find_interface("OpenXR") → xr.is_initialized() (auto-initialized when OpenXR is enabled) → get_viewport().use_xr = true. Turn VSync off (DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED)), because the headset paces frames. Match Engine.physics_ticks_per_second to the headset refresh rate (display_refresh_rate), so held objects don't jitter. Listen for the OpenXR session signals: session_begun, session_visible, session_focussed (resume), session_stopping, pose_recentered.

Input

  • Use actions from the action map: controller.is_button_pressed(&"trigger_click"), get_float(&"trigger"), get_vector2(&"primary") (thumbstick), plus the button_pressed/button_released signals. Action names come from the action map, not hardware buttons.
  • Haptics: controller.trigger_haptic_pulse(&"haptic", frequency, amplitude, duration_sec, delay_sec).
  • Hand tracking: XRHandModifier3D on a hand skeleton (OpenXR hand tracking extension). The hand interaction profile gives pinch and grasp as actions. Body tracking uses XRBodyModifier3D.
  • Desktop and UI interaction: render 2D UI in a SubViewport on a quad and raycast with the controller, or use Godot XR Tools' pointer and viewport-2D-in-3D (addon).

Passthrough and AR

Check xr.get_supported_environment_blend_modes() for XRInterface.XR_ENV_BLEND_MODE_ALPHA_BLEND. Set xr.environment_blend_mode = XR_ENV_BLEND_MODE_ALPHA_BLEND and get_viewport().transparent_bg = true, with an Environment background clear color alpha of 0. start_passthrough()/is_passthrough_enabled() are deprecated. Spatial anchors, planes and markers come from OpenXR spatial entities (4.6+, experimental classes OpenXR*Tracker, OpenXRSpatial*).

Performance and comfort (non-negotiable)

  • Hold the refresh rate (72/90/120 Hz). A missed frame causes nausea. Budget ~11 ms at 90 Hz, both eyes.
  • Mobile renderer, few dynamic lights, baked lighting, no SSR/SSAO/volumetrics, MSAA 2x/4x instead of post AA, and OpenXRInterface.foveation_level (0–3) + foveation_dynamic on standalone. 4.7's Vulkan subsampled images improve foveated rendering on Mobile.
  • Never move the camera without player input. Offer snap turn + teleport, a vignette during smooth locomotion, and seated/standing height calibration (XRServer.center_on_hmd).
  • Keep UI at 1–3 m and world-locked. Readable text needs a large MSDF font.
  • Godot XR Tools (addon) provides locomotion, grabbing, pointers and hands. Use it instead of reinventing them.

XR startup with session handling, controller input and haptics, passthrough toggle (compiled by the tests): references/patterns.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Xr AI skill do?

VR/AR/MR with Godot 4.7 and OpenXR - project setup (Mobile renderer, OpenXR enable, action map), XROrigin3D/XRCamera3D/XRController3D rig, input via actions, hand tracking, passthrough with environment blend modes, refresh rate and foveation, Android XR / Quest / Steam Frame / PCVR export via the vendors plugin, comfort and performance rules. Use for any VR, AR, mixed-reality or OpenXR task.

Why use Godot Xr on TypingMind?

Because you install it once and use it with any model. Godot Xr is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Xr in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-xr. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Xr?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Xr?

As many as you like. As long as a model supports skills, you can use Godot Xr with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Xr AI skill free?

Yes. It is published on GitHub by EL4CTEO under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇