Skip to content

SlowlyCoding/ascii-ray-tracing-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Ray Tracing in Rust

A simple ray tracer inspired by the "Ray Tracing in one weeked" book, which display the rendered scene using ascii. The camera can be moved around inside the scene.

I had already written something similar in C++, but now im learning Rust and thought I could rewritte that project to learn more about the Rust programming language.

Table of Contents

  1. Installation
  2. Usage
  3. Configuration

Installation

Make sure you have Rust installed

git clone https://github.com/SlowlyCoding/ascii-ray-tracing-rust
cd ascii-ray-tracing-rust
cargo run

Usage

The camera can be moved around

W A S D - forwards, left, backwards, right

Q E - up, down

← → ↑ ↓ - tilt camera

+ - - adjust camera FOV

Esc - quit

Configuration

You can make your own scene and change some options by adjusting the scene on line 24 inside src/main.rs

About

Simple Ray Tracer written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages