A volumetric CT viewer using "real-time" backprojection.
  • Rust 88.3%
  • WGSL 11.1%
  • Just 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-07 12:24:40 +02:00
.vscode Upate iced 2026-10-01 15:38:34 +02:00
data Added example data and removed github workflow 2024-10-15 16:19:15 +02:00
src Render to texture and only rerender when necessary 2026-10-07 12:24:40 +02:00
.gitattributes Added example data and removed github workflow 2024-10-15 16:19:15 +02:00
.gitignore Added example data and removed github workflow 2024-10-15 16:19:15 +02:00
Cargo.lock Render to texture and only rerender when necessary 2026-10-07 12:24:40 +02:00
Cargo.toml Render to texture and only rerender when necessary 2026-10-07 12:24:40 +02:00
ctrs.cap Render to texture and only rerender when necessary 2026-10-07 12:24:40 +02:00
Justfile Render to texture and only rerender when necessary 2026-10-07 12:24:40 +02:00
README.md Added example data and removed github workflow 2024-10-15 16:19:15 +02:00
TODO.md Render to texture and only rerender when necessary 2026-10-07 12:24:40 +02:00

CT-RS

A "real-time" backprojection volumetric CT viewer written in Rust.

Using

Click the "open" button and select a scan descriptor .json file. Example datasets can be found in the data directory. Use threshold to only display samples above that value.

Building

Build using cargo:

cargo build --release

The executable can then be found in target/release/.

To build and run immediately, use:

cargo run --release

Environment variables

WGPU environment variables can be used to control the graphics backend used (Vulkan, OpenGL, etc.), which graphics adapter is used, etc. See the WGPU readme.

To control logging, use the RUST_LOG environment variable. See env_logger (you must run CTRS from the terminal to see logs).

As an example, run with Vulkan, high-power adapter and info logging:

WGPU_POWER_PREF=high WGPU_BACKEND=vulkan RUST_LOG=info ct-rs

Note: Iced does not seem to like low framerates when running with OpenGL, so Vulkan is recommended. The version of WGPU that iced 0.13.1 uses seems to crash when running Vulkan with Wayland (at least on NVIDIA) so when running NVIDIA on Linux it is recommended to use X11 for now. (Should be fixed in the next iced release, see this issue).