spear-sim/spear

SPEAR: A Simulator for Photorealistic Embodied AI Research

What it solves

SPEAR addresses the limitations of existing photorealistic simulators, which often struggle with restricted programmability, slow rendering speeds, and a lack of generality. It provides a high-performance bridge between Python and Unreal Engine (UE), allowing researchers to control complex 3D environments and embodied agents with significantly more flexibility and speed than previous tools.

How it works

SPEAR acts as a Python library that connects to any Unreal Engine application via a modular plugin. It exposes over 14,000 unique UE functions directly to Python, treating them as native objects. Users define their simulation logic using a transaction-based programming model (begin_frame and end_frame), which ensures that complex sequences of actions and data dependencies are executed deterministically within a single simulation frame. It also includes a high-speed camera sensor that renders photorealistic images and ground truth data (like depth, surface normals, and material IDs) directly into NumPy arrays.

Who it’s for

This tool is designed for researchers and developers working on Embodied AI, synthetic data generation, and interactive simulation. It is ideal for those who need to train agents (such as robots, cars, or digital humans) in photorealistic environments or who require precise, programmatic control over complex 3D scenes.

Highlights

  • Exposes over 14,000 Unreal Engine functions to Python.
  • Renders 1920x1080 photorealistic images at 73 frames per second.
  • Supports advanced ground truth modalities like non-diffuse intrinsic image decomposition and physically based shading parameters.
  • Enables deterministic execution of complex work graphs within a single simulation frame.
  • Facilitates co-simulation with external physics engines like MuJoCo.
  • Allows for natural language scene editing via AI coding assistants.

Related

  • Project
  • Project
  • Project
  • Project
  • Project