Skip to content
A 3D software rasterizer... for the terminal!
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
models Browser demo May 18, 2019
src-webify Changed demo a bit May 18, 2019
src materials>0 != materials.is_empty May 24, 2019
.gitignore Inibal Combnit Mar 10, 2019
Cargo.lock Merge with master Apr 29, 2019
Cargo.toml Merge with master Apr 29, 2019
LICENSE.md Create LICENSE.md Apr 5, 2019
README.md Broken promises May 17, 2019
preview.gif Cleaned up models, added demo folder Apr 20, 2019

README.md

sloth - A one-of-a-kind Rust 3D Renderer for the CLI

pikachu

A one-of-a-kind command line 3D software rasterizer made with termion, tobj, and nalgebra. Currently it supports OBJ file formats without textures.

Javascript Export Demonstration

Getting Started / Uses


Here's a few really simple commands for you to get started.

You can replace sloth <args> with cargo run --release -- <args> anywhere

Render pikachu

sloth models/Pikachu.obj

For multiple models:

sloth "models/suzy.obj models/suzy.obj"

You can also generate a static image:

sloth models/Pikachu.obj image -w <width_in_pixels> -h <height_in_pixels>

You can also generate a portable Javascript render like this:

sloth models/Pikachu.obj image -j <number_of_frames> -w <width_in_pixels> -h <height_in_pixels> > src-webify/data.js

Thank you, contributors!

Maxgy – Rustfmt lint donbright – STL model loading added, Rustfmt lint jonathandturner – Crossterm port

You can’t perform that action at this time.