Skip to content

zyugyzarc/Ascii-Render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ascii-Render

A 3d rasterizer that runs on the terminal.

Installation / Usage

  • clone the repo: $ git clone https://github.com/zyugyzarc/Ascii-Render.git
  • install cython $ pip3 install cython
  • compile and run main.pyx:
    • $ cythonize main.pyx -3 --inplace && rm -rf build main.c
    • $ python3 -c "import main" [path/to/obj/file] or run python3 compile.py [path/to/obj/file]
  • the framerate can be set using the FPS env variable
  • color can be disabled by setting the NOCOLOR env variable to any value [Note: this increases speed]

Note: if your model contains textures, the texture size must be set manually in main.pyx at line 31.

Example footage

About

A 3d rasterizer that runs on the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published