Add OptiX sphere primitive bindings#1
Merged
Conversation
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
Merged
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