in

sinclairzx81 / zero, Hacker News

sinclairzx81 / zero, Hacker News


        

    

  

                  

      

        

                    Join GitHub today          

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

          

Sign up        

      

    

      

          3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal.           

            

TypeScript            JavaScript        

      

    

     

  

Permalink

        

        

        

      

        

      

          

          

          

        

          

          

          

        

          

          

          

        

          

          

          

        

          

          

          

        

          

          

          

        

          

          

          

        

          

          

          

        

          

          

          

        

          

          

          

        

Type Name Latest commit message Commit time
Failed to load latest commit information.
                         .Vscode                                         publish | v2                                   (Oct) , 2019          
                         scene                                         update loader | build                                   (Oct) , 2019          
                         src                                         update | render loop                                   (Oct) , 2019          
                         .Gitignore                                         publish | v2                                   (Oct) , 2019          
                         license                                         publish | v2                                   (Oct) , 2019          
                         package-lock.json                                         update | render loop                                   (Oct) , 2019          
                         package.json                                         update | render loop                                   (Oct) , 2019          
                         readme.md                                         update | render loop                                   (Oct) , 2019          
                         tasks.js                                         update loader | build                                   (Oct) , 2019          
                         terminal.gif                                         publish | v2                                   (Oct) , 2019          

  

                    

        

A graphics pipeline implemented in JavaScript and rendered to the terminal. No GPU required.

NPM package

#start the demo with npx$ npx zero-demo

Overview

Zero is a small graphics demo that uses JavaScript to replicate the functionality of a GPU and uses the terminal to display its rendered output via nodejs’ stdout. Zero was written for fun as well as to see how far one could reasonably push JavaScript performance. Rendering has been tested on Windows, OSX and Linux terminals.

This project and associative materials are offered as is to anyone who may find them of use.

Zero implements:

  • Programmable Vertex and Fragment shaders (in JavaScript)
  • Perspective Z-Correct Texture Mapping
  • Pixel Depth Buffering
  • Adaptive Resolution on Terminal resize (TTY only)
  • Matrix and Vector math libraries.
  • A Scene Graph

  • Support for Windows Command Prompt, Powershell and Linux Terminals

License MIT

Building Locally

Clone this project and run the following from the terminal.

$ npm install $ npm run build#run it$ node index

  

  

    

     

Brave Browser
Read More
Payeer

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

Antonio Brown Costumes Are All the Rage This Halloween, Crypto Coins News

Antonio Brown Costumes Are All the Rage This Halloween, Crypto Coins News

Facebook’s new political-ad policy already showing cracks, loopholes, Ars Technica

Facebook’s new political-ad policy already showing cracks, loopholes, Ars Technica