Skip to content

mrhrzg/term3d_rs

Repository files navigation

term3d_rs

View 3D models in the terminal.

Turntable demo Terminal recording done with t-rec-rs

> cargo run --release [OBJ-file-name]

3D models will be rendered with only gemetry taken into account

The idea is to have a representation of the gemometry of a 3D model in the terminal. The resolution is limited, but might be sub-character with the use of baile characters. 24-bit color characters are necessary to represent the orientation of the surfaces of the model.

Status

The aspect ratio of the terminal characters are not taken into account. This is currently set in code.

Currently also writes into a PPM file. Example output: 3D models will be rendered with only gemetry taken into account

Why

This is intended to provide previews of 3D files in the terminal. Having the wonderful fzf call term3d_rs encapulates the use case quite nicely:

fzf --preview 'cargo run --release  0 {}' --preview-window=right,80%

Term3d_rs in action in fzf

To export from blender as OBJ use these settings

Under Transform:

  • Forward: -Z Forward
  • Up: -X Up

Under Geometry:

  • Triangulate Faces

About

View 3D models in the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages