Metadata-Version: 2.4
Name: stagetui-3d
Version: 1.0.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Rust
Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering
Classifier: Topic :: Multimedia :: Graphics :: Viewers
Classifier: Topic :: Terminals
Requires-Dist: stagetui>=1.0.0
Summary: The 3D add-on for stagetui: look at glTF, OBJ and STL models in a pane and turn them with the mouse.
Keywords: tui,terminal,3d,gltf,obj,stl,viewer,stagetui,add-on
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://github.com/artisanv/stagetui/blob/main/docs/plugins.md
Project-URL: Homepage, https://github.com/artisanv/stagetui

# stagetui-3d

The 3D add-on for [stagetui](https://github.com/artisanv/stagetui): look at 3D
models in any pane and turn them with the mouse. It reads **glTF** (`.glb`,
`.gltf`), **OBJ** and **STL** files — with their colors and pictures — and draws
them on your computer's processor, so no graphics card or driver is needed.

```bash
pip install stagetui-3d      # also installs stagetui itself
```

```python
from stagetui import StageApp, StagePane


class Look(StageApp):
    def compose(self):
        return [StagePane("3d", path="robot.glb")]


Look().run()
```

Drag to turn it, right-drag to move it, and the mouse wheel zooms. With the pane
focused: **Space** spins or stops, **W** shows the wires, **G** the floor grid,
**R** starts over.

Models look best in a terminal with real pictures (Ghostty, Kitty, WezTerm, foot,
iTerm2, Windows Terminal); in other terminals stagetui can open the pane in one of
those for you.

See the [add-ons guide](https://github.com/artisanv/stagetui/blob/main/docs/plugins.md#3d).

