l3d-egui

Crates.iol3d-egui
lib.rsl3d-egui
version0.2.3
created_at2025-12-08 19:49:31.595307+00
updated_at2025-12-16 14:30:44.247415+00
descriptionL3D 3D viewer - works on desktop and web (WASM) with three-d
homepagehttps://github.com/holg/l3d-rs
repositoryhttps://github.com/holg/l3d-rs
max_upload_size
id1974287
size4,315,323
Holger Trahe (holg)

documentation

README

l3d-egui

Crates.io License: GPL-3.0

A 3D viewer for L3D (Luminaire 3D) files, built with three-d and egui. Works on desktop (Windows, macOS, Linux) and in the browser via WebAssembly.

Features

  • Cross-platform: Native desktop and WASM/WebGL support
  • Multi-viewport: View multiple L3D files side-by-side in a grid layout
  • Interactive: Rotate, zoom, and pan with mouse controls
  • File loading: Open files via menu, drag-and-drop, or file picker

Installation

Pre-built binaries

Download from GitHub Releases.

From crates.io

cargo install l3d-egui

From source

# Native
cargo run -p l3d-egui --release

# WASM (requires trunk: cargo install trunk)
cd crates/l3d-egui
trunk serve --release

Usage

Desktop

# Run viewer
l3d-viewer

# Or with a file
l3d-viewer path/to/luminaire.l3d

Controls

  • Drag: Rotate camera
  • Scroll: Zoom
  • Shift+Drag: Pan
  • Click viewport: Select active viewer (multi-viewport mode)

Menu Options

  • File > Open...: Replace current model
  • File > Add to Scene...: Add model to current viewport
  • File > Open in New Viewer...: Create new viewport with model
  • File > Clear All: Remove all models

Building WASM

cd crates/l3d-egui
trunk build --release

The output will be in dist/ - serve with any static file server.

License

GPL-3.0-or-later

Related

Commit count: 0

cargo fmt