Giter Site home page Giter Site logo

ray-tracing's Introduction

Ray-Tracing

简单的光线追踪器

运行项目

mac/linux 环境下,控制台运行 build.sh

windows 环境下,通过git的命令行工具运行 build.sh

mac 环境运行项目示例

cd desktop/ray-tracing #进入项目文件
chmod +x build.sh      #获得权限
./build.sh             #执行build.sh

效果说明

程序输出的是.ppm格式的图片 因为markdown不能展示.ppm,所以效果图都转成了.png格式

0.1 Get A Image

0.1 effect

0.2 Ray Into Scene

0.2 effect

0.3 Add A Sphere

0.3 effect

0.4 Shading With Surface Normals

0.4 effect

0.5 Render Multiple Objects

0.5 effect

0.6 Antialiasing

宽: 711, 高: 400 每像素随机在周围采样100次, 时间花费: 7.8s

0.6 effect

0.7 Diffuse Materials

0.7.0 Simple Reflection

0.7.0 effect

0.7.1 True Lambertian Reflection

0.7.1 effect

0.7.2 Hemisphere Reflection

0.7.2 effect

参考

  1. Ray Tracing in One Weekend
  2. Games 101-现代计算机图形学入门-闫令琪
  3. Software Renderer

ray-tracing's People

Contributors

cnimpulse avatar

Watchers

 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.