Giter VIP home page Giter VIP logo

quake-zero's Introduction

Quake Zero is a project out of curiosity about how 3D renderer was "hande made" in early days. To fully understand what's actually going on under the hood, I built a world renderer for Quake 1. Here is the result.

Thank you to Casey Muratori and Philip Buuck whose "handmade" projects inspired me to start this project, and James Gregory for putting together the ebook version of Michael Abrash's Graphics Programming Black Book which is the main resource for studying Quake 1 rendering code.

To Build

  • Create a folder with the name "assets" under the project root directory, and put the PAK file of the original Quake 1 in it.

  • Set up Visual C++ environment by typing the following line into your command prompt.

    "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

    If you intalled the Visual Studio somewhere else, you need to navigate there and run "vcvarsall.bat amd64". It has to be 64-bit environment otherwise the unit tests will fail.

  • In command prompt, go into folder "code", run "build.bat". You might get various warnings if you are not using Visual Studio Community 2015.

  • Then run "vs.bat" to debug.

Tests

If you run buil.bat under the "tests" folder, and run tests.exe, you can see, after unit tests finish, a demo program illustrating how Quake's Cache Allocator works.

Demo

Youtube Video

quake example 1 quake example 2 quake example 3 quake example 4

quake-zero's People

Contributors

linw789 avatar

Stargazers

Mikalai Chaliadzinau avatar Daniel Quast avatar Jesse Luna avatar Nilay avatar George Takumi Crary avatar Wynter Woods avatar  avatar Haipeng Wang avatar ifree avatar Jing Zhang avatar Eric Arnebäck avatar

Watchers

 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.