Skip to content

Add OptiX sphere primitive bindings#1

Merged
brendancol merged 1 commit into
masterfrom
feature/sphere-primitives
Feb 25, 2026
Merged

Add OptiX sphere primitive bindings#1
brendancol merged 1 commit into
masterfrom
feature/sphere-primitives

Conversation

@brendancol

Copy link
Copy Markdown
Owner

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

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 merged commit 8a80da3 into master Feb 25, 2026
@brendancol brendancol mentioned this pull request 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