Skip to content

creotiv/cli3dviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli3dviewer

Example render

Minimal terminal 3D OBJ viewer with textured, shaded ASCII output.

Features

  • OBJ loading with optional UVs
  • Textured shading using 256-color terminal palette
  • Real-time rotation and zoom
  • Auto-resize to terminal window
  • Debug image dump to out.png

Usage

cargo run -- path/to/model.obj --scale 1.0

The viewer looks for a texture named shaded.png in the same directory as the OBJ file. If it is missing, the program will fail to load the texture.

Controls

  • Left / Right: rotate around Y axis
  • Up / Down: rotate around X axis
  • + / =: zoom in
  • - / _: zoom out
  • q / Esc: quit

Notes

  • Requires a terminal that supports 256 colors.
  • out.png is written on each redraw for debugging.

About

Small tool to view OBJ 3d models in the console written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages