Code Monkey home page Code Monkey logo

3d-ascii-viewer's Introduction

3d-ascii-viewer

Viewer of 3D models in ASCII, written in C.

Example usage capture.

Supported formats:

Compile an run the program

You need developer's libraries for ncurses (the libncurses-dev package on Debian).

Compile the program using the make command:

$ make

You can try it passing any of the models in the models folder as an argument:

$ ./3d-ascii-viewer models/fox.obj

For additional options pass the --help option.

$ ./3d-ascii-viewer --help

Color support

With the --color option, the program looks for the companion MTL files (referenced in the main OBJ file) for information about the materials used by the model.

Characters within faces that use a material will be displayed with the diffuse color of said material. Textures are not supported.

Example usage capture.

To use this option, the terminal must support color attributes and must be capable of redefining colors. Also, the number of colors is limited by the maximum number of color pairs supported by ncurses.

Models

ASCII luminescence idea by: a1k0n.net

Note: If you want to add a Public Domain (CC0) or MIT licenced model, you can send it as a Pull Request or open an Issue. Remember to add the proper credits in the list here.

Older version

There is also an older version, written in Haskell.

3d-ascii-viewer's People

Contributors

autopawn avatar dereckson avatar pascalgilbraith avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.