跳到正文
Godot News· Bastiaan Olij·· 5 天前精选AI 评分74

Godot 如何为 Apple Vision Pro 开发 XR 项目

Godot for Apple Vision Pro

AI 导读

Godot 4.8 支持 XR 项目原生运行于 Apple Vision Pro 的 M2 和 M5 设备。文章介绍了 visionOS 的沉浸式应用与共享空间体积窗口,以及 Godot Mobile renderer、RealityKit、空间事件、手部追踪和 PlayStation VR2 Sense 控制器等选项,并提供 GodotRealityKit 与 PHASE 插件的使用入口。

推荐理由

文章梳理了 Godot 4.8 面向 Apple Vision Pro 的运行方式、渲染模式与输入选项,便于开发者选择移植路径。

正文 · 原文

This blog post is the result of a collaboration.

Starting with Godot 4.8, projects built with Godot’s XR platform run natively on Apple Vision Pro (both M2 and M5).

Whether you are porting an existing project or starting a new one, you can make the most of Apple Vision Pro with Godot.

Immersive games

Godot XR projects that use the Mobile renderer can run as immersive apps on visionOS.

Godot supports all the immersion styles of visionOS: full, mixed, and progressive. If you are not yet familiar with visionOS, you can learn more about the design of Immersive experiences on Apple Vision Pro.

For more information about bringing your existing XR project to visionOS, see Exporting for visionOS.

Godot in a volume, alongside other apps

You can also present Godot games in a visionOS volume with the GodotRealityKit plug-in. On visionOS, volumetric windows allow your game to run alongside other apps in the shared-space.

You can port games such as DOGWALK from Blender Studios, rendering here using GodotRealityKit.

You can get started with GodotRealityKit on GitHub apple/plugins-for-godot. You can also try the DOGWALK project, modified to use GodotRealityKit.

The PHASE plugin also gives you immersive audio on visionOS and other Apple platforms.

Choose your renderer

You have the choice between two rendering modes with Godot on visionOS:

The table in the GodotRealityKit documentation can help you decide which mode to use. And don’t worry, you can always change mode during development; in either case, your game is running in the same Godot engine.

Rendering with Godot on visionOS is already included in Godot 4.8 and does not require any addon.

Choose your input

You can pick the input that best fits your game, on Apple Vision Pro:

Look, tap, and drag with spatial events

Godot supports spatial events, the standard input method on visionOS: look at an object and pinch or drag. It works great for UI interactions and puzzle games.

PlayStation VR2 Sense controllers

For games that need precise input, buttons, joysticks, and haptics, Godot supports the PlayStation VR2 Sense Controller.

Hand tracking

In games that run in a visionOS ImmersiveSpace, Godot supports hand tracking for playful and intuitive interactions.

Gamepads

Apple Vision Pro also supports Bluetooth gamepads, which works great when making XR versions of flatscreen games.

Get started

来源:Godot News · godotengine.org