Coder Social home page Coder Social logo

wiali / 3drasengine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alphamistral/3drasengine

0.0 1.0 0.0 3.3 MB

A Simple Rendering Engine using Rasterization implemented in C++ without using any third-party libraries. 3DRasEngine desmonstrates the basic theories behind a rasterizer and provides very easy setup steps.

License: MIT License

C++ 98.04% Makefile 1.96%

3drasengine's Introduction

3DRasEngine

Sample Image

Introduction

  • 3DRasEngine is an offline rendering engine developed based on rasterization.
  • In order to emphasize the process of how a rendering engine works, 3DRasEngine is not optimized.
  • Most of the ideas behind the engine could be found on https://www.scratchapixel.com

Features

  • Just a simple rendering engine. No BS.
  • Supports Shadow and Alpha Blending.

Installation and Setup

git clone https://github.com/AlphaMistral/3DRasEngine.git
cd 3DRasEngine
make
make clean
./RasEngine
  • After executing the above commands, the rendered results are stored at results/.
  • However currently the "makefile" in the RasEngine is ... as you can see, not created in a good way. You are more than welcomed to use "automake" yourself. This is to be revised in the future.

About Shadow.

  • The Shadow Function in 3DRasEngine now supports only ONE SINGLE POINT LIGHT.
  • The implementation of Shadow is achieved by ShadowMapping.
  • However currently the GenerateShadowMap in the Renderer Class is extremely performance-sensitive and meanwhile it breaks the design of the architecture of the whole engine. Hence it needs to be revised. Anyway it is up and running and please feel free to give it a shot :)

Trouble Shooting & Contact

  • Obviously the Engine is suffering from some hard-coding. I am working on that, do not worry!
  • If you detect any unexpected output or error, or have any questions regarding any part of the engine, please feel free to contact me at:
  • WeChat: yujingping95
  • E-mail: [email protected]

In the Future

  • The 3DRasEngine will fully support ShadowMap.
  • More Shader Effects are to be added!
  • If you wanna see anything else, please raise up an issue :)

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.