Coder Social home page Coder Social logo

20160602's Introduction

Everyday One Motion - 20160602

"My First Raymarch Pathtracer"

JavaScript, WebGL, Raymarcher, Pathtracer

Everyday One Motion
Demo Page

今月のテーマ

今月のテーマは「Pathtracer」になりそうです。

Pathtracer

Raytracerは、カメラから光を逆探索し、光の物体との衝突点から再び光を進ませることにより、反射や屈折を表現しています。しかし、拡散反射については、光を再び進ませることはせず、法線の向きと光源の位置からだいたいで計算しています。
Pathtracer(∋ Raytracer)ではさらに、拡散反射光も光を衝突点から進ませて再現します。これにより、よりリアルな陰影表現が可能となります。

モンテカルロ法

それでは、Pathtracerではどのように拡散反射光を再現するでしょう?
なんと、衝突点からランダムな方向に光を進ませることにより、まさに「拡散」を再現しています。
「しかし、それではでたらめな計算結果が得られるのでは?」と思いますが、このランダムに光を進ませる試行を複数回繰り返せば、最終的に計算結果は正しい値に収束します。魔法のようですよね。

このへんわかりづらい

ので、来週あたりに2Dのわかりやすい絵で紹介します。

20160602's People

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.