Skip to main content

HelideGPU

This is an in-progress implementation of an SDL_gpu device based on libhelium.

SDL3 is loaded at runtime on Linux, macOS, and Windows. SDL3 development files are still required at build time. The Python wheel depends on PySDL3 and imports it first; the trampoline uses the SDL3 library loaded by PySDL3, then checks SDL3_ROOT and PySDL3's binary directory. Native users can set HELIDE_GPU_SDL3_LIBRARY to the library path before device initialization.

On macOS, the Python trampoline preloads SDL3 with global symbol visibility before loading the device library so its dynamic-lookup references can bind. Native macOS applications must likewise preload SDL3 with RTLD_GLOBAL before loading the ANARI device library; setting the runtime path alone is not enough.

The Python trampoline configures SDL automatically on import. To observe device status messages, call helide_gpu.set_status_callback(callback) before creating a device; the callback receives the standard ANARI status arguments.

Geometry attributes

Triangles take color and attribute0..3 per vertex (vertex.*), per primitive (primitive.*) or per triangle corner (faceVarying.*, indexed by 3 * primitive + corner), and faceVarying.normal overrides vertex.normal. When a slot has more than one, faceVarying wins over per-vertex, which wins over per-primitive. faceVarying.tangent is accepted and ignored.

Camera clip planes

As VisGL does, each frame fits the camera's near and far clip planes to the bounds of what it draws (the world's surfaces and volumes, and its visible quad lights) projected on the view direction, so the depth buffer's precision isn't spread over empty space. Without a near, a perspective camera's near plane stays at least 1/1000 of its far, which clips the foreground of a world much larger than the view; set near to see it. A near or far the application sets narrows the fitted range (0 < near < far, 0 <= near for an orthographic camera; invalid values are ignored with a warning). The depth channel is the depth buffer's, so its values depend on the fitted range.

Shading

Surfaces are shaded with the lighting model of OpenUSD Storm's UsdPreviewSurface (shaders/shading.glsl): Lambert diffuse plus a GGX specular lobe with Schlick Fresnel, in the metallic workflow. matte is metallic 0 and roughness 1; physicallyBased takes metallic and roughness (a value, a geometry attribute or a sampler, whose first output component is used), ior and emissive (a value or a sampler). opacity on both may be a value or a sampler (its first output component). physicallyBased's normal is a tangent-space normal map from an image1D/2D/3D sampler, its output used as is (outTransform/outOffset decode it to [-1,1]). As in Storm, its tangent frame comes from the screen-space derivatives of the position and of the sampler's texture coordinate, not from vertex.tangent; it maps only triangles, as a sphere's attributes are constant across it, and the normal frame channel and ambient occlusion keep the unperturbed normal.

Lights are directional, point, spot and quad (up to 16 in a frame, counting instanced ones), and hdri (any number). The renderer's light (ambientRadiance times ambientColor, or white 1 with ignoreAmbientLighting) is split by eyeLightBlendRatio: that share drives a headlight, which lights every world, with lights or without, and reflects only diffusely (no highlight or reflection on glossy or metallic surfaces), and the rest is a uniform ambient fill. Screen-space ambient occlusion darkens only the ambient fill.

Ambient occlusion is a port of halcyon's preview renderer's, with the same parameters (see its README): ambientOcclusion, ambientOcclusionRadius, ambientOcclusionIntensity, ambientOcclusionEstimator ("g3d", the default, "sao", or the experimental "cortao", CORTAO's circular occluders, github.com/theagentd/CORTAO), ambientOcclusionBlurPasses (default 2: the second pass removes most of the blotches "cortao" leaves near occluders and smooths bands near contacts) and cortaoSamples (default 16, 1 to 64: more remove more of those blotches at a higher cost). "cortao" is ported from halcyon's port in shaders/cortao.glsl, which carries CORTAO's MIT license; unlike halcyon it keeps no mip chain of the hit buffer but reads, for a tap of a coarse level, the pixel that level's texel would hold, so the two give the same occlusion.

A quad light is shaded the way Storm shades a UsdLux rect light: as a point light at the quad's center. Unlike Storm, it falls off with the cosine away from the quad's normal, as a flat Lambertian emitter does, and it honors side; the front faces along cross(edge2, edge1). Its brightness is the first of intensity (W/sr along the normal), power (W; a side emits pi times its intensity) and radiance (W/sr/m^2, times the quad's area after the instance transform). Far from the quad this is accurate; up close it lacks the soft, quad-shaped light and highlights of a real area light.

With visible (KHR_LIGHT_PRIMARY_VISIBILITY, default true) the camera sees a quad light as its rectangle, showing the radiance of an emitting side and nothing of a side that doesn't emit; Storm doesn't draw lights. Surfaces in front hide it. Where it is seen, the ID channels report no hit, the albedo and normal channels are 0, and ambient occlusion ignores it. Point, spot and directional lights have no area to see.

An hdri light is treated as halcyon's preview renderer treats it, so the two agree. It doesn't light surfaces directly: its mean radiance over the sphere (each texel weighed by its solid angle), times scale and color, adds to the uniform ambient fill, which Storm's dome-light term then shades (Storm itself uses prefiltered irradiance and specular maps). Where camera rays miss, the visible hdris (default true) show in place of the background, summed and opaque, looked up unfiltered (nearest texel), and the ID, albedo and normal channels report no surface. The map's mapping is halcyon's and VisRTX's: the image's center column faces direction (made perpendicular to up), a quarter turn before it faces up x direction, and the array's last row faces up. An instance transform turns up and direction. Only the equirectangular layout exists. With ambient occlusion the ambient light a surface reflects passes through a buffer that clips it at 4, which a bright hdri can reach.

Potential improvements: area lights

  • Analytic area light, no lookup tables. Diffuse light from the exact irradiance of a polygon (Lambert's form factor, a sum over the quad's 4 edges), and specular from the point on the quad nearest the reflection ray (Karis' "representative point", Real Shading in Unreal Engine 4, 2013). It needs the quad's 4 corners in LightData. Soft, correctly shaped diffuse light up close; specular highlights are approximate.
  • Linearly transformed cosines (Heitz et al., Real-Time Polygonal-Light Shading with Linearly Transformed Cosines, 2016). The most accurate for a GGX BRDF, but it needs two 64x64 lookup textures bound to both surface fragment shaders, which changes their sampler bindings (and the MSL binding flags).

CI notes

PySDL3 downloads its runtime from GitHub on first import. On shared CI runners, set SDL_GITHUB_TOKEN to a read-only GitHub token to avoid unauthenticated API rate limits. Set SDL_DOC_GENERATOR=0 to disable its unrelated documentation downloads and generation.

The Linux wheel validation job renders with Mesa's Lavapipe software Vulkan driver under Xvfb, so it needs no physical GPU. It sets HELIDE_GPU_REQUIRE_GPU=1 to fail rather than skip if no SDL GPU backend can be created. Without that setting, the wheel test skips when no backend is available, but still fails if the SDL runtime cannot be loaded.

Metadata

Release files for helide-gpu 0.17.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for helide-gpu 0.17.0
File Actions
helide_gpu-0.17.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for helide_gpu-0.17.0-cp310-cp310-win_amd64.whl
helide_gpu-0.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for helide_gpu-0.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
helide_gpu-0.17.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for helide_gpu-0.17.0-cp310-cp310-macosx_11_0_arm64.whl
helide_gpu-0.17.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for helide_gpu-0.17.0-cp310-cp310-macosx_10_9_x86_64.whl

Total release size: 5.7 MB

Release files / helide_gpu-0.17.0-cp310-cp310-win_amd64.whl

Download URL helide_gpu-0.17.0-cp310-cp310-win_amd64.whl
Size 420.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
047d82fab9c61f8bf9c56e2120621eaf41b7ef29dd99e92dd67e8f80d27fe398
BLAKE2b-256 checksum
How to use checksums
abcc64c024f7a79d891568e2e880787ba8cb7315c080f4e2778ed80fb1fde282
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / helide_gpu-0.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL helide_gpu-0.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 4.7 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b548cd1df5b74658e5e54e4d5983309e8d34f513c7a252e4eab95ebf0e6f5389
BLAKE2b-256 checksum
How to use checksums
e04e5f307d7bb6453acc96be3f25543b7a40e10ff2422e84f169a2f03a88565f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / helide_gpu-0.17.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL helide_gpu-0.17.0-cp310-cp310-macosx_11_0_arm64.whl
Size 294.9 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b09d7479ce521b15eea5fc6bbb7483d4fcbf1edd80dcefd16d402479b17805c8
BLAKE2b-256 checksum
How to use checksums
01446a903de222fdb5709ea7136d629e9e36b7f0439d29e13fc65c03b0be96ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / helide_gpu-0.17.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL helide_gpu-0.17.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 304.6 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
a5ed02da1b8c9e4b654037f62402cfef4f539697e8fdd82ee86f14cb73f2e8de
BLAKE2b-256 checksum
How to use checksums
700914471094f4818f09cb167e4aca3448db97df798918cff1eb0651940152f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for helide-gpu 0.17.0

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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for helide_gpu-0.17.0-cp310-cp310-win_amd64.whl

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 Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17.0 This release

4 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page