Code Monkey home page Code Monkey logo

softwarerenderer's Introduction

Quite a few years ago, I started working on a hobby project software rasterizer, which is still up on GitHub. I hit a point and lost interest in the project, leaving it abandoned.

I came back around to the subject and decided to rewrite from scratch with a greater emphasis on performance, coupled with a few more years of experience as a developer. This is still just a hobby and a very early WIP, but I am hoping to learn from it, and maybe get it to the point where it could be semi-useful... or at least as useful as a hobby software rasterizer can be in this say and age.

The primary magic happens in void SoftwareRenderer::draw_triangle_texture(Triangle3uv &t) with most other interesting stuff happening around it in the same class. Clipping is not clipping UV coordinates correctly, but is otherwise working. There is still the occasional seam between edges and I'm sure that there are more than a few pixels that get drawn more than once per edge, but it's getting there (and it's a damn site faster than my old project!)

The triangle draw function uses a scanline algorithm, so it's fairly oldschool... no SIMD instructions.

softwarerenderer's People

Contributors

damiangray77 avatar

Stargazers

 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.