Add OptiX sphere primitive bindings#8
Closed
brendancol wants to merge 12 commits intoNVIDIA:masterfrom
Closed
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OptixBuildInputSphereArray, enabling hardware-accelerated ray-sphere intersectionBuildInputSphereArrayclass with full property access (vertex buffers, radius buffers, flags, SBT records)PRIMITIVE_TYPE_SPHEREandPRIMITIVE_TYPE_FLAGS_SPHEREenum values for pipeline configurationBUILD_INPUT_TYPE_SPHERESfor GAS build input type selectionconvertBuildInputs()for automatic GAS constructionOPTIX_VERSION >= 70600Motivation
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
optixGetPrimitiveIndex()place_pointcloud()pipeline