Coder Social home page Coder Social logo

developerdenis / softwarerasterizer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 19.76 MB

A simple 3D software rasterizer written in C++ without any external libraries that runs on Windows and Linux.

Batchfile 9.88% Shell 1.70% C++ 82.89% C 5.53%

softwarerasterizer's Introduction

Sample Output Images

Sample Image 1 Sample Image 2 Sample Image 3

Features

A basic software 3D rasterizer written in C++ without any external libraries that runs on both Windows and Linux. You can swap between three different rendering modes, wire frame, flat shading, and phong shading by clicking the left mouse button.

To create the software rasterizer many different aspects of graphics programming were implemented, such as:

  • Bresenham's line drawing algorithm
  • Triangle rasterization using barycentric coordinates (earlier versions were made that used a simple scan line fill algorithm or cross products to rasterize the triangle).
  • Rotation, scale, and translation matrices
  • View matrix calculation (using the Look-At approach)
  • Perspective projection matrix calculation
  • Z-Buffers to make sure only the closest triangles are present in the final image
  • Various shading approaches (notably, flat shading and Phong shading, though earlier versions did use Gouraud shading)

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.