8 releases

0.1.13 Feb 12, 2024
0.1.12 Feb 7, 2024
0.1.9 Jan 17, 2024

#12 in Data formats

Download history 47/week @ 2024-01-06 69/week @ 2024-01-13 9/week @ 2024-01-20 13/week @ 2024-01-27 147/week @ 2024-02-03 138/week @ 2024-02-10 78/week @ 2024-02-17 62/week @ 2024-02-24 26/week @ 2024-03-02 28/week @ 2024-03-09 11/week @ 2024-03-16 1/week @ 2024-03-23 40/week @ 2024-03-30 13/week @ 2024-04-06

55 downloads per month

MIT/Apache

48KB
440 lines

display3d

Crates.io Version

video example

A command line interface to display and animate 3D objects using ANSI escape codes, written using gemini-engine in the Rust programming language

For a basic guide on how to use the tool, run display3d --help

Supported formats

  • .obj (combined with .mtl for colours). If you're exporting from Blender, set the forward axis to +Z and the up axis to +Y
  • .stl

Please note that this form of rendering requires the terminal to support ANSI escape codes, support for which tends to be unreliable on Windows from installation to installation. If you are having issues getting an image on Linux or MacOS, please submit an issue request

Installing

Make sure you have rust and cargo installed before proceeding with either of these methods

Run cargo install display3d. This will download, compile and install the latest stable release of display3d. You can then simply run display3d to access it

Compile from source

Clone this repository with git clone https://github.com/redpenguinyt/display3d.git or download and extract this repository.

Build the project with cargo build --release. The binary will be saved to <project-repo>/target/release/display3d

Example

To run the example spinning shark, run display3d blahaj.obj -t 0,0,5.5. You can get the blahaj.obj and blahaj.mtl (for colours, should be stored together with blahaj.obj) files in the resource folder of this repository.

Dependencies

~4–12MB
~130K SLoC