This release is a pre-release and may not be stable for production use.
🚧 This project is in active beta development. This means the API is unstable, features may be added or removed, and breaking changes are likely to occur frequently and without notice as the design is refined.
Efficient Renderer for Natural and Interplanetary Environments (Ernie)
Ernie is a physically accurate, real-time, spectral renderer for interplanetary environments.
It is a Vulkan rasterizer for Linux, Windows and macOS (through MoltenVK), with C++ and Python APIs and a Hydra-like scene API. Ernie is designed around physical quantities, efficient batched rendering, and user experience.
Ernie is built to be customized and to work alongside other tools. You can add your own BRDFs, sensor filters and light patterns. Rendered outputs and scene attributes (transforms, mesh vertices, light parameters and more) are shared zero copy with any DLPack tensor (PyTorch, JAX, Warp, NumPy), which makes Ernie a good fit for real-time physics simulation and reinforcement learning. Support for OpenUSD and glTF scenes, and for MDL and MaterialX materials, is planned.
Its key features are aimed at planetary robotics and sensing:
- Cameras and sensors
- Exposure, aperture, motion blur, rolling shutter, lens distortion and vignetting.
- Perspective, fisheye and orthographic projections, and line-scan pushbroom cameras like LROC's.
- Quantum efficiency curves, full well, read noise, dark current, PRNU, DSNU, gain and ADC bit depth.
- USGS CSM camera models for non-standard instruments.
- Sensor filter chains (noise models, lens flare, vignetting), with your own filters written in Slang.
- Planetary environments
- Terrain as a built-in prim, with continuous level of detail through quadtrees, updated in place where its heights change.
- Whole planets and moons from a Terrain with a radius, drawn from orbit down to the ground.
- Earth and Mars atmospheres from physical models, seen from the ground or from orbit, with aerial perspective.
- Star fields from your own catalogs, with brightness from magnitudes and color from B-V indices.
- Light and materials
- Spectral rendering: light is carried in bands (16 across 380-780 nm by default) from the sources, through the materials, to the sensor.
- Distant lights with an angular size, for soft penumbrae from the sun's width in the sky.
- Illuminants (blackbody, CIE daylight, the measured solar spectrum) and custom spectral curves, for example Earthshine on the lunar surface.
- Hapke, Lommel-Seeliger, lunar-Lambert, Oren-Nayar and Lambert BRDFs built in, and your own for the surfaces you study.
- Simulation and learning
- Batch rendering: many worlds, each with its own camera, rendered in one step for RL and Monte Carlo workloads.
- Meshes, instances and points written from CUDA or Warp arrays without copies, for rover and particle simulations.
- A floating origin, so large scenes keep their precision.
- Tools
- A viewer with customizable panels, to drive your own simulations and workflows.
- Debug drawing for labels, trajectories and overlays in the scene.
For a more detailed overview of the features, see our documentation.
Future work:
- A fully USD- and glTF-compliant renderer, loading OpenUSD, glTF, OBJ, STL and 3D Tiles, with the glTF material system, UsdPreviewSurface shaders and MDL and MaterialX support
- Dust and other volumes from particle simulations through NanoVDB
- Differentiable rendering
- Global illumination
- OpenXR integrations
- WebGPU backend
- Gaussian splat and particle fields.
- Lidar and radar sensors
- A real-time ray-tracing renderer alongside the rasterizer
- Integrations into Newton Viewer, Chrono Sensor, and IsaacLab
- Compare benchmarks with RTX, Cycles, Newton Warp Raytrace, Madrona both in speed, throughput, and image quality
Getting Started
Python
pip install ernie-renderer
from PIL import Image
import ernie
from ernie import tokens
scene = ernie.Scene()
scene.define("/World/Ground", ernie.GroundPlane)
scene.define("/World/Rock", ernie.Sphere, translate=(0, 0, 1)) # 1 m up
scene.define("/World/Sun", ernie.DistantLight).set(
tokens.TRANSFORM, ernie.distant_light_transform((0.4, -0.6, 0.7))
)
scene.define("/World/Camera", ernie.Camera).set(
tokens.TRANSFORM, ernie.look_at_transform((0, -8, 3), (0, 0, 1))
)
scene.define(
"/Render/Settings", ernie.RenderSettings, camera="/World/Camera", resolution=(640, 480)
)
renderer = ernie.Renderer()
image = renderer.render(scene) # a (480, 640, 4) uint8 NumPy array
Image.fromarray(image).save("ernie.png")
C++
With Ernie installed (see Installation), find it with CMake:
find_package(Ernie REQUIRED)
target_link_libraries(my_app PRIVATE Ernie::ernie)
#include <ernie/scene/camera_schemas.h>
#include <ernie/scene/geometry_schemas.h>
#include <ernie/scene/light_schemas.h>
#include <ernie/scene/render_schemas.h>
#include <ernie/scene/schema.h>
#include <ernie/scene/tokens.h>
#include <ernie/scene/xform.h>
#include <ernie/session/renderer.h>
int main() {
using namespace ernie;
Scene scene;
GroundPlane::Define(scene, "/World/Ground");
Sphere::Define(scene, "/World/Rock");
SetXform(scene, "/World/Rock", {.translate = glm::dvec3(0.0, 0.0, 1.0)}); // 1 m up
DistantLight::Define(scene, "/World/Sun");
scene.Set("/World/Sun", tokens::kTransform, DistantLightTransform({0.4, -0.6, 0.7}));
Camera::Define(scene, "/World/Camera");
scene.Set("/World/Camera", tokens::kTransform,
LookAtTransform({0.0, -8.0, 3.0}, {0.0, 0.0, 1.0}, {0.0, 0.0, 1.0}));
RenderSettings::Define(scene, "/Render/Settings")
.SetCamera("/World/Camera")
.SetResolution({640, 480});
Renderer renderer;
Tensor image = renderer.Render(scene); // 480 x 640 x 4 bytes of LdrColor on the CPU
}
For the prim types and their attributes, transforms, relationships, arrays, validation, loading scenes from JSON and declaring your own types, see Describing scenes.
Examples
Planned future examples.
Demos
- Cornell box
Cameras
- Pinhole, fisheye, orthographic
- Distortion
- LRO NAC and WAC
- Shadowcam
- Mars2020 Navcam, Mastcam
- LWIR, NIR, UV
- Narrowband camera
Camera Filters and Noise
- Vignetting
- Lens flare
- Bloom
- Narrowband filter
Terrain
- SLDEM global and multiple tiles
- Mars terrains
- Asteroid shape files
- Saturn and its rings
- Pluto
Lighting
- Distant light
- Custom radiance curves to model Earthshine
- Dome light shadows
- Illuminants across the same scene
- Laser lines competing with sunlight
Lasers
- Lasers from 405 to 940 nm seen by RGB, narrowband, NIR and wideband cameras (
demo_lasers_wavelengths) - A projector's patterns: spot, line, grid, dots, fringes and rings written in Slang (
demo_lasers_patterns) - A pulsed line laser against long, in-step and between-pulse exposures (
demo_lasers_pulsed) - Gray-code structured light decoded to projector columns (
demo_lasers_structured_light)
Star Field
- Hipparcos star catalog
- Stars viewed from another galaxy
Atmosphere
- Earth atmosphere (from orbit and ground)
- Mars atmosphere (compare against existing images)
Volumes
- NanoVDB interop
- Clouds in Earth orbit
- Dust clouds on lunar surface
Batched and RL
- Batched camera rendering and setting poses
Viewer
- Adding a custom panel
- Hiding default panels and menus
- Extending HUD options
- Physics debug draw overlays
Installation
Precompiled binaries
The Python wheel is on PyPI as ernie-renderer (pip install ernie-renderer, then import ernie; Python 3.12+). It bundles everything, the viewer included, but a Vulkan driver.
Each GitHub release also has an ernie package for Ubuntu 22.04+, Debian 12+ and RHEL 9+ (and a tarball for other distributions), with the library, the viewer, and the headers and CMake package for building against it.
sudo apt install ./ernie_*.deb # Debian, Ubuntu
sudo dnf install ./ernie-*.rpm # RHEL, Rocky, Fedora
Both need a Vulkan 1.3 driver: your GPU vendor's, or Mesa's (mesa-vulkan-drivers, which includes the lavapipe software driver for machines without a GPU).
Build from source
Ernie needs CMake 3.24+, a C++20 compiler and a Vulkan 1.3 driver; it fetches its other dependencies (see third_party/README.md).
cmake -S . -B build -DERNIE_BUILD_TESTS=ON -DERNIE_INSTALL=ON -DERNIE_BUILD_PYTHON=ON -DERNIE_BUILD_APP=ON
cmake --build build
ctest --test-dir build -j4 # C++, GPU and Python tests
build/bin/ernie # the viewer
cmake --install build --prefix ~/.local # libernie, headers and the CMake package
A Python wheel bundles the module with the Slang runtime it loads:
uv build --wheel --out-dir dist .
uv pip install dist/ernie_renderer-*.whl
Packages are built with cmake --preset package-deb (or package-rpm), cmake --build --preset package-deb and cpack --preset package-deb.
See CONTRIBUTING.md for the build options, testing without a GPU on lavapipe, and benchmarks.
License
Ernie is licensed under the BSD 3-Clause License. The third-party libraries it bundles keep their own licenses, listed in third_party/README.md.
Metadata
Release files for ernie-renderer 0.1.0.dev309
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ernie_renderer-0.1.0.dev309.tar.gz | 1.8 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| ernie_renderer-0.1.0.dev309-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details |
| ernie_renderer-0.1.0.dev309-cp312-abi3-manylinux_2_34_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.34+ x86-64 | Details |
| ernie_renderer-0.1.0.dev309-cp312-abi3-manylinux_2_34_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.34+ ARM64 | Details |
| ernie_renderer-0.1.0.dev309-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 126.6 MB
Release files / ernie_renderer-0.1.0.dev309.tar.gz
| Download URL | ernie_renderer-0.1.0.dev309.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c9fab71e020d28b10d98e400e66a7f24a388e38f51f73157e566222d01a7111
|
|
BLAKE2b-256 checksum How to use checksums |
7a77bb26a8e9b6558768a3190a4b5ffff2338d0ab0eb42006f134329ff042f29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / ernie_renderer-0.1.0.dev309-cp312-abi3-win_amd64.whl
| Download URL | ernie_renderer-0.1.0.dev309-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 22.2 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
279f65329d50afbeb54502e7a0294f9ef6d83121c650b9ff579bfb3dfa0573f3
|
|
BLAKE2b-256 checksum How to use checksums |
20196c72b12697fd1f33d75c8a83babade8e5eac1859451c1abd4bc5840e9ac6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / ernie_renderer-0.1.0.dev309-cp312-abi3-manylinux_2_34_x86_64.whl
| Download URL | ernie_renderer-0.1.0.dev309-cp312-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 32.2 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
092a3bfac6b56c93afa9c06f9053cc1e0c3f3d3bbcade94a467c12295a6a767f
|
|
BLAKE2b-256 checksum How to use checksums |
f6880ab4d5eb2fc66b1f33cf944f631d057ef0069ca9c04eaeb32a265c51ed5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / ernie_renderer-0.1.0.dev309-cp312-abi3-manylinux_2_34_aarch64.whl
| Download URL | ernie_renderer-0.1.0.dev309-cp312-abi3-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 29.9 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
b7868ee05c829dc87e042304f8bad1b1cfaa609493820ee617fb9a2620afc1e3
|
|
BLAKE2b-256 checksum How to use checksums |
414f743af3e92ef0695a4d18af92e3365cc6a5f779e305c9dcc70dcf3bb2afbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / ernie_renderer-0.1.0.dev309-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | ernie_renderer-0.1.0.dev309-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 40.5 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
60c2628524b1983aac8df26efcfbe32877a6e9b135d71729b83b07bbd3289c75
|
|
BLAKE2b-256 checksum How to use checksums |
9de6f4f875575898ba2d1ef0d3f9733235bd8f7376a9d51394862c70374c5b47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency log