Sampling & distribution · 7 / 10

Cosine-Weighted Hemisphere Sampling

法線に近い方向を多く選ぶ。

Compare in motion

表面からの反射光

Synchronized comparison
AReference
角度を一様に選ぶ

角度を一様に選ぶ

BCosine-Weighted Hemisphere Sampling100%
拡散反射の試料を効率よく選べる

拡散反射の試料を効率よく選べる

Loading demo…

Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.

Look for: 法線寄りの方向を多く選ぶ → 方向別の試料が出る。

A small visual example of a game use case. Games combine these techniques with assets and other effects.

Read the storyboard

例: 表面からの反射光

  1. 1. Start

    法線が決まる

  2. 2. Change

    法線寄りの方向を多く選ぶ

  3. 3. Result

    方向別の試料が出る

拡散反射の試料を効率よく選べる。時間変化を示す模式図です。実際の描画結果や処理速度を再現したものではありません。

How it works

  1. 1. Input

    表面法線と半球

  2. 2. Process

    余弦に比例する確率で選ぶ

  3. 3. Result

    法線寄りの方向

A schematic of Cosine-Weighted Hemisphere Sampling. It shows the relationship between input, process, and result; exact values and rendering depend on the implementation.

Further reading

Fast Poisson Disk Sampling in Arbitrary Dimensions ↗

A general reference for this subcategory.