Overview and Inspiration

4D Chess puts a four-dimensional chessboard on your real table on Meta Quest 3, accomplished by projecting a 4-dimensional hypercube into 3D space. It's inspired by a long-standing interest from childhood in 4D space, and MR lets you explore that in a way that 2D flatscreen can't imitate.

The app finds the table in your room scan and anchors the board there. If there’s no table, the board floats in front of you, still fixed in place. Play against a computer opponent, with sound effects and spoken feedback or locally with two people. Play by voice or touch. Say “knight”, then pick a numbered piece and a numbered destination, or tap the pieces with your finger. See the fourth dimension: Turn the board through 4D rotations (XW, YW, ZW and the 3D planes), morph between the nested and separated layouts, or press Trip for a full rotation through 4D and back. Squares and pieces shift from green to purple along the fourth axis, so you can always tell where you are along it.

How we built it

Unity 6 and OpenXR, using Meta’s passthrough, scene understanding (plane detection with semantic labels), spatial anchors and hand tracking, plus the Meta Voice SDK with Wit.ai for speech. The chess engine and rules were ported from the TypeScript version. The in-world menu, status board and explainer are built as prefabs pressed with the fingertip.

Challenges

Most of the time went to platform setup rather than gameplay. A build step silently stripped the microphone and hand-tracking permissions from the manifest, passthrough needed the composition-layers feature enabled, head tracking wasn’t bound, and the voice SDK crashed on a missing Android Looper. Eventually, each was traced to the source.

Built With

Share this project:

Updates

Submission history