Thanks to visit codestin.com
Credit goes to lib.rs

#ddnet #graphics #teeworlds

bin+lib twgpu-tools

Collection of tools about rendering Teeworlds and DDNet maps

4 releases (2 breaking)

0.4.0 Nov 4, 2025
0.3.1 Jul 18, 2024
0.3.0 Jun 5, 2024
0.2.0 Aug 2, 2022

#346 in Video

AGPL-3.0-only

370KB
9K SLoC

TwGpu Tools

Powered by the twgpu library!

Overview

All tools are command line argument based and explain their usage with --help.

  • twgpu-map-inspect: View rendered maps in a window
  • twgpu-map-photography: Snap pictures of maps via the command line
  • twgpu-demo-viewer: Demo player
  • twgpu-encode-demo: Encode demos to images or videos.
  • twgpu-benchmark: A silly and probably not trustworthy sprite rendering benchmark.
  • twgpu-mipmaps: Explore how mipmaps look in twgpu.

Installation

You need Rust installed on your system.

Simply do cargo install twgpu-tools --features ffmpeg

Manual Building

You need Rust installed on your system.

To compile the tools in release mode, execute the following command in this directory:

cargo build --release --features ffmpeg

The executable files will be located in the project/workspace root in target/release/.

To compile the debug build instead, omit the --release flag. Note that debug binaries will be significantly slower. The executable files of debug builds will be located in target/debug/.

Trouble Building: Build Errors with FFmpeg?

You need to install FFmpeg on your system. If you have trouble doing so, leave out the --features ffmpeg. Note that twgpu-encode-demo won't be able to encode videos in that case.

Dependencies

~25–49MB
~749K SLoC