← 返回命令列表

Linux command

3d-ascii-viewer 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

View an OBJ

3d-ascii-viewer [path/to/model.obj]

View an STL

3d-ascii-viewer [path/to/model.stl]

Enable color

3d-ascii-viewer --color [model.obj]

Show help

3d-ascii-viewer --help

说明

3d-ascii-viewer (by autopawn) is a minimal viewer that renders 3D models as animated ASCII art directly in the terminal, using ncurses and no graphics library. It continuously rotates the model, with characters of varying density representing surface shading and depth. The viewer supports Wavefront `.obj` and `.stl` files. For OBJ files, an accompanying `.mtl` material file can be used together with --color to tint each face by its diffuse material color. Because output is text in a standard terminal, the viewer is useful over SSH, in tmux panes, or in any environment where a full 3D GUI is not available.

参数

--color
Use the diffuse color of each material referenced in the companion MTL file. Requires a terminal supporting color redefinition and enough ncurses color pairs.
--help
Print usage information and exit.

FAQ

What is the 3d-ascii-viewer command used for?

3d-ascii-viewer (by autopawn) is a minimal viewer that renders 3D models as animated ASCII art directly in the terminal, using ncurses and no graphics library. It continuously rotates the model, with characters of varying density representing surface shading and depth. The viewer supports Wavefront `.obj` and `.stl` files. For OBJ files, an accompanying `.mtl` material file can be used together with --color to tint each face by its diffuse material color. Because output is text in a standard terminal, the viewer is useful over SSH, in tmux panes, or in any environment where a full 3D GUI is not available.

How do I run a basic 3d-ascii-viewer example?

Run `3d-ascii-viewer [path/to/model.obj]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --color do in 3d-ascii-viewer?

Use the diffuse color of each material referenced in the companion MTL file. Requires a terminal supporting color redefinition and enough ncurses color pairs.