Code Monkey home page Code Monkey logo

console-graphics's Introduction

                                      Console-Graphics
                                      a.k.a Hello World
                                      =================

If you are having trouble building this, you can just download a build at https://www.dropbox.com/s/3y7zip9sef2k01d/cgbuild.zip?dl=0

A full blown 3D graphics engine that runs in the windows command prompt. 3D objects are rendered in real-time as monochromatic ASCII art.

Right now, you can only load one .obj file at a time.

Before running

Set the command prompt's font size to 6 pt. Lucida Console works well.

Features

  • 3D Wireframe/solid rendering. Solid rendering done with rasterizer. Z buffer for solid rendering, but it's messed up a little.

  • Load meshes from .obj files. Sample .obj is included.

  • Mesh transformations - rotations around x/y/z axis done.

  • Texture mapping. I used barycentric interpolation to do this. Multiple materials/mesh.

  • Lighting: Simple flat shading.

  • User input runs on another thread.

User Input

After the model has loaded, press Return (the model will start to flicker)

  • Use WASD translate meshes
  • Use R,T,Y to rotate them
  • Press Space to change the rendering mode

Bugs

  • Problems with using multiple materials per mesh
  • zBuffer isn't quite right

console-graphics's People

Contributors

interl0per avatar stegriff avatar

Watchers

 avatar  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.