oxicuda-nerf
Neural Radiance Fields and neural rendering primitives for OxiCUDA — NeRF, Instant-NGP hash grid, Mip-NeRF, TensoRF, volume rendering.
Part of the OxiCUDA ecosystem — Pure Rust CUDA replacement.
Features
- Encodings: Multi-frequency positional encoding, Instant-NGP multi-level hash grid (trilinear interpolation), Mip-NeRF integrated positional encoding
- Fields: TensoRF low-rank tensor radiance field, Instant-NGP hash field for density and color queries
- Networks: NeRF MLP and TinyNeRF with configurable depth and width
- Rendering: Pinhole camera ray generation, stratified and importance sampling, occupancy grid, full volume rendering pipeline with alpha compositing
- Metrics: PSNR and MSE image quality evaluation
- PTX kernels: 7 GPU kernels (positional encoding, volume render, hash grid lookup, ray march, SH eval, occupancy update, importance resample) × 6 SM versions
Usage
use *;
let mut rng = new;
// Build a hash grid encoder
let cfg = HashGridConfig ;
let grid = new.unwrap;
let features = grid.query.unwrap;
// Volume render a ray
let sigma = vec!;
let color = vec!;
let t: = .map.collect;
let result = volume_render.unwrap;
println!;
Documentation
License
Apache-2.0 — Copyright 2026 COOLJAPAN OU (Team Kitasan)