Giter VIP home page Giter VIP logo

softrenderer's Introduction

1、3采样器崩溃

基于DX11架构的软件光栅化渲染器

关于项目

在不借助任何图形库的情况下,从零开始构建这样一个3D渲染系统,初衷是为了彻底了解3D渲染过程。

image-20220403112302919

内置

使用以内第三方库来构建这个渲染器,包括:

  • Windows API
  • GLM
  • stb_image
  • asssimp
  • oneTBB

入门

先决条件

我在Windows平台上构建这个项目。请确保您的系统配备了以下软件。

  • cmake:至少3.5版本
  • visual studio 2017

安装

请为Win32平台编译项目。

1.克隆仓库

https://github.com/1398690148/SoftRenderer.git

2.使用cmake构建项目

mkdir build
cd build
cmake ..
cmake --build . --config Release

​ 或者使用cmake-gui也是可以的。

目前已将项目使用到的dll放置到output目录,若修改项目生成目录,需将extern/dll/*.dll复制到对应的示例执行目录(如build/Release)。

用法

更多详情请查看examples/示例图

功能

  • 基础渲染
  • 纹理加载
  • 模型文件加载
  • 深度测试
  • 平行光、点光源、聚光灯及Lambert和BlinnPhong光照模型
  • Alpha Blend
  • Alpha Test
  • TBB并行加速
  • MSAAMSAA

接触

[email protected]

softrenderer's People

Contributors

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