Skip to content

Repository files navigation

Rust-Terrain-Voxel

Simple voxel-space terrain renderer in Rust (minifb + image).


About

This project renders a heightmap-based landscape in real time with a classic voxel-space approach.

Inspired by: s-macke/VoxelSpace


Screenshot

Terrain Renderer Screenshot


Features

  • Heightmap + colormap terrain rendering
  • First-person camera movement
  • Keyboard controls for navigation
  • Build script that copies non-.rs files from src/ near the executable

Controls

  • W / S - move forward / backward
  • A / D - rotate left / right
  • Space / LeftShift - move up / down
  • Esc - close window

Quick Start

cargo run

Build debug binary:

cargo build

After build, runtime assets are available near the binary in target/debug/src/... (copied automatically by build.rs).

Performance note: non---release builds can be significantly slower, because rendering is CPU-bound.

For better FPS, use:

cargo run --release

Tech Stack

  • Rust 2024 edition
  • minifb
  • image
  • lerp

License

This project is dual-licensed under open-source licenses:

  • Apache License 2.0
  • MIT License

You may choose either license for use, modification, and distribution.

About

Small Voxel Terrain test on Rust

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages