GithubHelp home page GithubHelp logo

jonike / dos3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kondrak/dos3d

0.0 3.0 0.0 929 KB

Software renderer for DOS (mode 13h)

License: MIT License

Objective-C 9.16% C 81.83% C++ 9.02%

dos3d's Introduction

Software renderer for DOS (mode 13h)

This is a triangle based renderer which utilizes the neat property of mode 13h allowing the programmer to access video memory in the same way one would write to an array of bytes. It is also an attempt to provide working DOS code to the public, since finding it on the Internet is getting increasingly more difficult. The idea behind this project is to use as much "platform independent" code as possible on a now forgotten OS. As such, there's little to no DOS-specific assembly present and the rendering code can be fairly quickly ported to any contemporary platform.

The project can be built out of the box using the Open Watcom compiler. This was chosen, since Watcom comes with easy to use memory extender for DOS.

Minimum specs: 75MHz CPU, 4MB RAM, MS-DOS 5.0 or higher

Recommended specs: 100MHz CPU, 8MB RAM, MS-DOS 5.0 or higher

Features

  • triangle rasterization
  • front/back face culling (CCW surfaces are considered "back")
  • affine and perspective corrected texture mapping
  • multiple render targets
  • depth testing (using a 1/Z buffer)
  • projection and view calculations using quaternion and matrix ops - "DOF6 Camera Ready (tm)"
  • line and point rendering
  • wireframe rendering
  • loading, resizing, scrolling and displaying bitmaps (8bpp) with optional color keying
  • texture atlas support
  • double buffering

The executable is a set of pre-made tests that demonstrate each feature.

Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot

TODO

  • switch from floats and doubles to fixed point for stable precision
  • add proper polygon clipping
  • perspective texture mapping doesn't have to interpolate every pixel
  • ???

dos3d's People

Contributors

kondrak avatar

Watchers

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