How jibufilm/point_motion_lidar_importer works
Purpose and Entry Points
Point Motion LiDAR Importer is a Blender 4.2+ extension that converts Ouster LiDAR recordings into frame-addressable point-cloud animation. Blender users access it through the N-panel’s LiDAR tab, principally via “Import PCAP + JSON” and “Load PLY Sequence.” The extension package root is __init__.py; Blender extension metadata and bundled dependency declarations are in blender_manifest.toml.
Input and Decode Boundary
The primary ingest contract is a matched Ouster .pcap and .json metadata pair with the same basename and directory. Ouster-specific packet decoding and sensor metadata interpretation are delegated to the bundled Ouster SDK wheel, wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl. This is the key vendor-format boundary: non-Ouster sensors require a separate decoder integration.
Conversion Pipeline
The core flow is: PCAP + JSON → Ouster SDK decode → per-frame PLY export → Blender animated point-cloud sequence. Decoding produces discrete frame files rather than retaining packet streams in Blender, creating a durable intermediate boundary that supports later sequence loading without re-decoding. Example recording material is under Test_Logs/drive0800-1160.mp4; generated/intermediate output locations appear as Test_Logs/temp and sample output/temp.
Blender Sequence Integration
The extension maps exported PLY frames into Blender’s timeline and configures playback duration to recording length. It supports multi-sensor recordings and imports point attributes including reflectivity, near-IR, and range. Blender remains responsible for scene navigation, lighting, and rendering; the add-on’s responsibility ends at scene/sequence construction. Relevant package integration points are __init__.py and blender_manifest.toml.
Runtime and Dependency Packaging
The intended runtime is Blender’s embedded Python 3.11 environment on macOS ARM64, evidenced by platform-specific wheels such as wheels/numpy-2.4.2-cp311-cp311-macosx_11_0_arm64.whl and wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl. Dependencies are vendored in wheels/, allowing installation as a self-contained Blender extension rather than relying on system Python. Supporting packages include NumPy, laspy, compression libraries, networking/discovery packages, and Ouster SDK transitive dependencies.
Operational Constraints
The add-on is architected around local files and Blender, with no required remote service or web application. Platform portability is constrained by native wheels and Ouster SDK availability; the repository currently packages macOS ARM64 artifacts. The GPL-licensed extension is distributed as a zipped folder installed through Blender’s Extensions UI.
Main entry points: __init__.py Extension Package · ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl Ouster SDK · wheels/temp Vendored Wheels · Test_Logs/temp PLY Frame Sequence
Components 14
Blender Extension
- LiDAR N-Panel · Provides PCAP import and PLY sequence loading actions.
__init__.py - Extension Package · Builds frame-addressable point-cloud scenes and timeline playback.
__init__.py - Sequence Loader · Maps PLY frames and attributes into timeline-addressable point clouds.
__init__.py - Animated Point-Cloud Scene · Supports multi-sensor frames with reflectivity, near-IR, and range attributes.
Local Conversion Pipeline
- Matched PCAP + JSON · Input files must share a basename and directory.
- Ouster SDK · Decodes packets and interprets Ouster sensor metadata.
wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl - Per-Frame PLY Export · Converts decoded scans into durable discrete frame files.
- PLY Frame Sequence · Enables later loading without PCAP re-decoding.
Test_Logs/temp
Runtime Packaging
- Extension Manifest · Declares Blender extension metadata and bundled dependencies.
blender_manifest.toml - Blender Python 3.11 · Target runtime is macOS ARM64 Blender 4.2+.
- NumPy Native Wheel
wheels/numpy-2.4.2-cp311-cp311-macosx_11_0_arm64.whl - Vendored Wheels · Includes laspy, compression, networking, discovery, and SDK transitive packages.
wheels/temp - Extension ZIP · Installed locally through Blender’s Extensions UI.
Other components
- Blender User
Connections 18
- Blender User → LiDAR N-Panel: uses
- LiDAR N-Panel → Extension Package: invokes
- Matched PCAP + JSON → Ouster SDK: decode input
- Ouster SDK → Per-Frame PLY Export: decoded frames
- Per-Frame PLY Export → PLY Frame Sequence: writes PLY
- Extension Package → Ouster SDK: imports decoder
- Extension Package → Per-Frame PLY Export: runs conversion
- LiDAR N-Panel → Sequence Loader: load PLY sequence
- PLY Frame Sequence → Sequence Loader: reads frames
- Sequence Loader → Animated Point-Cloud Scene: creates animated sequence
- Extension Manifest → Extension Package: declares
- Extension ZIP → Extension Manifest: packages
- Blender Python 3.11 → Extension Package: runs
- Blender Python 3.11 → Ouster SDK: loads native wheel
- Blender Python 3.11 → NumPy Native Wheel: loads native wheel
- Vendored Wheels → Extension ZIP: bundled in
- Ouster SDK → Vendored Wheels: included as
- NumPy Native Wheel → Vendored Wheels: included as