Giter Site home page Giter Site logo

3drender's Introduction

3DRender

软件光栅渲染器

主要实现了以下功能:

使用说明

**Tab:**线框模型,光栅化模型,纹理模型切换

L:光照开关

相机变换:↑↓控制相机上下移动,←→控制相机左右移动,+-控制相机前后移动,鼠标控制相机角度

2D部分:

  • 光栅化2D点

  • 光栅化2D直线

  • 光栅化2D三角形 ##3D部分:

  • 把顶点从三维世界空间变换至二维屏幕空间,把顶点连线(如各种三维正多面体)光栅化成wire frame模型

  • 三角形光栅化

  • 使用深度缓冲

  • 实现简单的纹理映射,先做屏幕空间的插值,然后实现简单的透视纹理校正

  • 实现简单的顶点光照,使用顶点颜色插值实现Gouraud shading

像素绘制

像素绘制

三角形光栅化

三角形光栅化

相框模型

线框模型

光栅化cube

纹理模型带光照

3drender's People

Contributors

zhanghuanzj avatar

Stargazers

 avatar

Watchers

 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.