Crescent Engine

ENGINE · RUNTIME ARCHITECTURE

The editor and runtime

Crescent Engine is a native macOS 3D editor and runtime. Author a scene, connect project-owned C++ gameplay and run it in Crescent Player. Use the same authoring tools to prepare a scene for a Spatial benchmark.

Native application host · C++17/20 runtime · Metal · Jolt Physics

Download Crescent Player

How you use the editor

First project walkthrough

  1. Start in Project Hub. Choose a game or spatial template. Each project owns its scenes, assets, settings and source.
  2. Author in World. Work with hierarchy, transforms and components in the Inspector. The scene can include materials, lighting, cameras, animation and physics.
  3. Run the project. Iterate on C++ modules in Source, inspect the game camera in Game view and open the project in Crescent Player.
  4. Run an experiment. Use Experiments to record and replay a physics task. Export a scene-backed benchmark pair for comparisons with synchronized Metal observations.
Crescent World editing a foggy Zero Alone industrial scene, with the selected prop's material open in the Inspector
Zero Alone in World. The hierarchy, scene viewport and material inspector stay visible while editing a prop.

Create a game module or follow the World-to-benchmark workflow.

Install the Editor Preview

Extract CrescentEngine.app and move it to Applications. It includes the Game SDK, Player and the Spatial Runtime. Open or create a project from Project Hub.

  • World and play. Open scenes, edit content and use Play to preview a project. Projects with C++ gameplay need their compiled module.
  • Gameplay builds. Install Python 3.10+, CMake 3.24+ and the Xcode Command Line Tools. Create, compile and package games through Source and Build.
  • Static lighting. Use Bake Lighting to save the result with the scene. Build Game includes saved lightmaps and probe data in the game archive. Run a fresh bake after editing lights or static geometry.
  • Spatial experiments. Python 3.10+ runs the included experiment tools. Local model runs require a compatible llama-server and separately obtained model weights. Remote runs use the configured provider.

The Editor Preview is signed with Apple Development. Apple has not notarized this build, so macOS may block a downloaded copy.

How the runtime is organized

The native C++ engine owns the scene and resource systems. Crescent Player is the macOS application host: it initializes the engine, provides the application surface and bridges platform work through the native host layer. Project C++ modules are loaded into a runtime world and use public services exposed by the engine.

APPLICATIONCrescent Player

macOS process, application lifetime and presentation surface

ENGINE HOSTC++ runtime + Metal

Worlds, scenes, components, physics, assets and renderer-owned resources

INTERFACEVersioned C ABI

Fixed-layout descriptors, checked handles and typed function tables

PROJECT CODEGame module · .dylib

Project behaviours, component schemas and explicitly declared module services

The module and host have separate build products. The C++ SDK is the project-facing layer; it does not give project code private engine headers or direct ownership of native renderer and physics objects.

Scene and entity runtime

A scene contains entities and components. Entities provide identity, hierarchy and transform state; components attach behavior or engine functionality to those entities. The runtime manages creation, activation, update scheduling and safe removal as the scene changes.

Project components are registered in a module catalog with stable namespaced IDs. Their fields are described explicitly, so authored project data can be serialized without depending on C++ type names or process-local RTTI. Typed SDK references point to entity or component identities and are checked against world ownership and lifetime.

Built-in engine components and project components share the scene's scheduling context, but they do not share C++ object ownership. A project module can access its own registered C++ types locally. Cross-module access uses a supported typed service rather than casting a pointer from one dylib into another.

Execution phases and lifetime

The scene runtime exposes lifecycle callbacks for creation, enabling, startup, regular and fixed-step updates, late and post-animation work, end-of-frame work, physics contacts, disabling and destruction. The host controls when each phase runs. Project callbacks execute in that scene context; the SDK is not a general-purpose thread pool.

PhaseRuntime responsibilityProject use
LifecycleAttach components, enable them, start them and safely tear them down.Initialize references and release module-owned transient state.
Frame updatesSchedule frame, fixed-step and late callbacks against the active scene.Run project logic using frame delta or fixed-step callbacks as appropriate.
Animation and contactsDispatch supported post-animation phases and copied physics contact events.Read pose/contact data and react without retaining native pointers.
Safe removalDefer storage reclamation until scene traversal reaches a safe boundary.Request removal and respect stale or pending handles.

When an entity or component is pending removal, the runtime rejects new operations that require a live owner and suppresses later ordinary callbacks where applicable. This keeps scene mutation inside defined boundaries rather than allowing project code to free storage during traversal.

Metal rendering architecture

The renderer is implemented against Apple's Metal API. It prepares and draws regular, skinned and instanced geometry, with native material and resource ownership. The renderer contains dedicated systems for clustered lighting, shadow rendering, frame resources, volume rendering and sorted transparency.

Geometry

Static meshes, skeletal meshes and instance groups feed host-managed draw paths. Skin and instance modes select their corresponding native vertex data and pipeline variants.

Lighting and shadows

Native lighting and shadow systems prepare scene data and render through dedicated Metal passes. Their resources stay owned by the renderer.

Materials

Native material pipelines cover engine rendering. Project material catalogs can add declared color-surface fragments to supported draw paths through the SDK.

Extensions

Optional Metal modules receive a frame context and owned render data. They must follow encoder and command-buffer lifetime rules and cannot retain live scene access through rendering callbacks.

The project shader interface is deliberately bounded: it supports declared programs and parameters on compatible native draw paths. Metal extensions provide an explicit Apple backend hook. Neither interface is a general cross-platform graphics API or an unrestricted replacement of the engine's render pipeline.

See the SDK rendering guide for module requirements, material catalogs, pipeline preparation and Metal callback constraints.

Space · Orbital Approach

A native Metal capture of an orbital station. The scene pairs an HDR environment with directional lighting to show the station’s metal surfaces against the sunlit edge of the planet.

An orbital station with turquoise lights and dark solar arrays, with the sun at upper left and the blue edge of a planet behind it
Orbital Approach Crescent Engine · Metal render

Station model by Dim Bagautdinov under CC BY 4.0. HDR environment by Space Spheremaps.

Jolt-backed physics

Crescent integrates Jolt Physics for rigid bodies, colliders, character movement and vehicle simulation. The engine owns the Jolt world, backend bodies, constraints and contact listener. Project code works through descriptions, handles and copied state exposed by the SDK.

The public project surface includes static, dynamic and kinematic primitive bodies; character motors; ray and shape casts; overlaps; selected motion and force operations; and collision or trigger lifecycle callbacks. Additional services cover explicit triangle and convex mesh-collider cooking, capsule-rig ragdolls, and wheeled or tracked vehicle setups.

Physics operations are scene- and lifetime-scoped. A configured body may not be materialized until a physics synchronization point. Vehicle constraints and ragdoll simulation state are runtime objects; projects must recreate or restore the state their gameplay needs after loading. See the SDK physics guide for exact current contracts and limitations.

Animation and skeletal data

The engine owns skeletons, clips, skinning data and evaluation. The SDK exposes clip and bone metadata, playback control, timed fades, local/global/skin-pose sampling and rendered bone transforms without exposing private animation classes.

Project modules can also configure supported Animator graphs with clip states, typed parameters, blend trees and transitions. Optional interfaces add animation events and inverse-kinematics targets. These services operate on a bound native rig; they do not replace the engine's skeletal evaluation or automatically map project-defined ragdoll state back into a pose.

Audio runtime

FMOD remains the current shared engine audio backend. The project-facing SDK does not expose FMOD types: it provides audio voice handles, supported mix and spatial controls, file one-shots, selected Studio event parameters, bank declarations and application output settings through typed services.

The lifetime depends on the service. An entity-owned voice follows the source and its documented scene lifetime; a mixer-owned one-shot has no controllable voice handle and can continue independently. Project values such as gain or pause state may be transient and should be saved by the project when required. The SDK does not imply complete Studio bank ownership or arbitrary DSP and snapshot controls.

Project content and resources

Project files define scenes, settings, module declarations and resource dependencies. The native engine loads source project data and prepared content; SDK handles let project code request supported assets and resource operations without taking ownership of the underlying renderer or importer objects.

Available asset-facing interfaces include contained file reads, typed model and prefab declarations, prepared instantiation, texture and render-resource handles, material bindings and declared audio or shader resources. Runtime references alone do not tell the package builder which arbitrary files to include. Dependencies referenced only in code must be declared.

Model imports, prefab construction, collision cooking and selected UI tree operations are synchronous content operations. The SDK does not currently provide general asynchronous or additive asset streaming, and the standalone module compiler is not an asset-cooking pipeline.

The project module boundary

The SDK builds a project's gameplay code into a macOS .dylib. The module exports a versioned C entry point and explicit component descriptors. The host checks the ABI and descriptor sizes, builds its registry for that world and creates project components through the module's own allocation functions.

Fixed-layout C records and versioned function tables form the boundary. Project C++ wrappers make those operations easier to call, but C++ objects, exceptions, STL containers and native engine pointers do not cross it. Service results use checked handles and copied values. Calls validate owner, world, thread and object lifetime according to each service.

Each project module owns its component instances. Same-named C++ types compiled into separate modules do not share pointers. Use registered type IDs and the cross-module component service when supported. Do not expose internal engine headers as a substitute for the public interface.

Project modules can also publish independent versioned C service contracts for other declared modules. The runtime brokers those contracts by ID and version without adding project-specific type names to the engine. Provider tables and module code stay pinned to the world that loaded them; a different project load does not rewrite that world's interfaces.

The SDK developer guide explains project creation, CMake integration, module builds, services and the exact boundary limits.

Build and delivery path

The Game SDK CLI can create a project, build its C++ modules and package it without the engine source tree. The packager cooks the project content, stages the compiled modules and declared resources inside Player, then signs the resulting app.

Build stepTool ownerOutput
Project generationExported SDK CLIProject file, scene/settings folders, source template and CMake target.
Module compilationExported SDK CLI + CMakeSigned project .dylib and module artifact manifest.
Game cooking and app packagingGame SDK and bundled PlayerA standalone app with the native engine, compiled gameplay and cooked project content.

Launch Player to run an existing project or follow the Game SDK guide to package it. The binary kit targets macOS on Apple silicon.

Current implementation scope

The downloadable Game SDK includes a compatible Player and packages saved Cycles lightmaps and probe data. Scenes without a saved bake use realtime lighting. Audio playback is disabled in this preview.

The public service set is broad across scene access, physics, input, audio, UI, animation, resources and rendering, but it is a selected interface over the native engine. Some built-in gameplay, older serialization paths and game-specific renderer, UI and audio policies remain engine-owned or are still moving toward project modules.

Project clips on the main page show engine demonstrations. They are presented as runtime footage, not as proof that every visible gameplay system has already moved into the standalone SDK.