Skip to content

Add OptiX sphere primitive bindings#8

Closed
brendancol wants to merge 12 commits intoNVIDIA:masterfrom
brendancol:feature/sphere-primitives
Closed

Add OptiX sphere primitive bindings#8
brendancol wants to merge 12 commits intoNVIDIA:masterfrom
brendancol:feature/sphere-primitives

Conversation

@brendancol
Copy link
Copy Markdown

Summary

  • Adds Python bindings for OptixBuildInputSphereArray, enabling hardware-accelerated ray-sphere intersection
  • New BuildInputSphereArray class with full property access (vertex buffers, radius buffers, flags, SBT records)
  • PRIMITIVE_TYPE_SPHERE and PRIMITIVE_TYPE_FLAGS_SPHERE enum values for pipeline configuration
  • BUILD_INPUT_TYPE_SPHERES for GAS build input type selection
  • Sphere case in convertBuildInputs() for automatic GAS construction
  • All additions gated behind OPTIX_VERSION >= 70600

Motivation

Sphere primitives provide efficient point cloud rendering — each point becomes a hardware-intersected sphere, avoiding the need to tessellate splats into triangles. This is used by rtxpy for lidar point cloud visualization (see makepath/rtxpy#58).

Test plan

  • Verified single sphere hit and normal computation
  • Per-point radii support
  • Primitive index identification via optixGetPrimitiveIndex()
  • 1M sphere GAS build performance (~22ms)
  • Integration with rtxpy place_pointcloud() pipeline

…e vectors

- Add IF_OPTIX91 version macro for conditional compilation
- Expose allowClusteredGeometry in PipelineCompileOptions
- Add cluster accel device properties (COOP_VEC, CLUSTER_ACCEL, etc.)
- Bind new primitive types and flags for ROCAPS curves
- Add ClusterAccel build enums, structs, and host functions
  (clusterAccelComputeMemoryUsage, clusterAccelBuild)
- Add CoopVec enums, matrix layout, and description structs
- Add modern pyproject.toml with package metadata for PyPI distribution
- Package name: pyoptix-contrib (to avoid conflicts with any future NVIDIA package)
- Remove duplicated metadata from setup.py (now sourced from pyproject.toml)
- Add MANIFEST.in to include main.cpp, CMakeLists.txt, and CMake modules in sdist
- Remove license classifier conflicting with PEP 639 license expression
- Add explicit setuptools package discovery to avoid flat-layout error
- Add README.md with installation, usage, and feature overview
- Reference README from pyproject.toml for PyPI rendering
- Build wheels for Python 3.9-3.13 on Linux x86_64 via cibuildwheel
- Build sdist for source distribution
- Auto-publish to PyPI on version tags using trusted publishing
- OptiX SDK headers provided via OPTIX_HEADERS_B64 repository secret
- Upgrade cibuildwheel v2.22 to v3.1 for Python 3.14 support
- Install CUDA toolkit inside manylinux container instead of host
- Add OptiX SDK headers to repo, removing secret dependency
- Exclude libcuda.so.1 from auditwheel repair (driver-provided)
- Build wheels for Python 3.9-3.14
Adds Python bindings for OptiX sphere primitives, enabling hardware-
accelerated ray-sphere intersection for point cloud rendering:

- BuildInputSphereArray struct and Python class binding
- BUILD_INPUT_TYPE_SPHERES enum value
- PRIMITIVE_TYPE_SPHERE and PRIMITIVE_TYPE_FLAGS_SPHERE enums
- Sphere case in convertBuildInputs() for GAS construction
- Gated behind OPTIX_VERSION >= 70600
@brendancol brendancol closed this Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant