Giter VIP home page Giter VIP logo

andromeda's Introduction

Andromeda

license language

使用C++编写的基于光线追踪(路径追踪)的软件渲染器。

特性

  • 独立编译:C++ 11 标准库实现。
  • 渲染输出:输出到PPM文件,可以用PhotoShop等图像软件打开。
  • 坐标系标准:右手坐标系。
  • 内置材质:漫反射,玻璃和金属材质。
  • 内置模型:内置球体,正方体。
  • 模型加载:支持obj格式模型加载。
  • 纹理支持:支持jpg和png格式的图片作为纹理。
  • 搜索优化:包围层次盒(BVH)。
  • 光源:区域光源。
  • 天空盒:六面天空盒。
  • 性能优化:支持多线程。

使用方法

以下方法选择一种:

  • cmake构建: source目录下包含CMakeLists.txt文件,直接使用即可。
  • g++编译: g++ main.cpp -o raytracing -std=c++11 -O3 -pthread

演示

天空盒子

混合场景1

混合场景2

obj模型文件加载1

obj模型文件加载2

andromeda's People

Contributors

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