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

Render 3D models in your terminal or app. Sloth is a software rasterizer that turns triangles into charxels (a character + a colour). It does this via a simple triangle-grid intersection method to determine if a triangle is in a character. It then uses a really simple shading scale to determine which character to use based on brightness. Colour is determined by the Vertex color for OBJ and the model color for STL.
Getting Started
As a library
cargo add rendersloth
use *;
let mut context = new;
// Convert your OBJ to a simpler format for rendering
let mut meshes: = vec!;
let obj_model = load_obj;
let obj_mesh = obj_model.0;
let obj_materials = obj_model.1.expect;
for model in
// Scale the camera to the model
context.update?;
let transform = IDENTITY;
// Draw the meshes to the context's built-in framebuffer
context.draw_all?;
// Print the screen's contents
context.flush?;
Using as a CLI App
Render pikachu
Thank you, contributors!
Maxgy – Rustfmt lint donbright – STL model loading added, Rustfmt lint jonathandturner – Crossterm port